题解:P16306 [蓝桥杯 2026 省 Java/Python 研究生组] 读书计划
CDSuperDuo
·
·
题解
前言
大号被封了,但题解还是要写的!
研究生组就这?
解题思路
一周最多可以读 5 \times 5 + 15 \times 2 = 55 页。
2026 \div 55 = 36 \text{ 周} \cdots 46 \text{ 页}
剩余 $46$ 页从周一开始读,每天上限为 $5,5,5,5,5,15,15$。
累计:$5,10,15,20,25,40,55
总天数:$252 + 7 = 259$。
## AC Code
既然是 Python 和 Java 组的,那肯定就要尊重一下他们了。~~别问我提交咋用的C++~~。
Python
```python
print(259)
```
Java
```java
public class Main {
public static void main(String[] args) {
System.out.println(259);
}
}
```
C++~~不适,怎么会有C++~~。
```cpp
#include<bits/stdc++.h>
#define int long long
#define PII pair<int,int>
#define br break
#define ctn continue
using namespace std;
signed main()
{
ios::sync_with_stdio(false);
cin.tie(0);
cout<<259;
return 0;
}
```