跳到正文

题解

题解:P16306 [蓝桥杯 2026 省 Java/Python 研究生组] 读书计划

CDSuperDuo约 2 分钟
原文
文章信息与版本

文章信息

收录
2026年5月31日
更新
2026年8月11日
篇幅
约 2 分钟
获赞
1
题目
P16306

版本

  1. v1当前

前言

大号被封了,但题解还是要写的!

研究生组就这?

解题思路

一周最多可以读 5×5+15×2=555 \times 5 + 15 \times 2 = 55 页。

2026÷55=36 周⋯46 页2026 \div 55 = 36 \text{ 周} \cdots 46 \text{ 页}

3636 周 = 252252 天。

剩余 4646 页从周一开始读,每天上限为 5,5,5,5,5,15,155,5,5,5,5,15,15。

累计:5,10,15,20,25,40,555,10,15,20,25,40,55

4646 页在第 77 天才能读完,需要 77 天。

总天数:252+7=259252 + 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++。

C++
#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;
}
原文