跳到正文

科技·工程

20260727 - 模拟总结

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

文章信息

收录
2026年7月28日
更新
2026年8月10日
篇幅
约 2 分钟

版本

  1. v1当前

T1

因为 a≤b≤ca \le b \le c,所以可以枚举前两个数,后面的个数就是 ⌊na×b⌋−b+1\lfloor \frac{n}{a \times b} \rfloor - b + 1。

T2

第 xx 小时的秒数可以写为:

∑i=0x(10×i+1)\displaystyle \sum_{i=0}^x (10 \times i + 1) =10∑i=1x+1×(x+1)= 10 \displaystyle \sum_{i=1}^x + 1 \times ( x + 1) =10×x×(x+1)2+(x+1)= 10 \times \frac{x \times (x + 1)}{2} + (x + 1) =5×x×(x+1)+(x+1)= 5 \times x \times (x + 1) + (x + 1) =(x+1)×(5×x+1)= (x + 1) \times (5 \times x + 1)

那么前 xx 小时的秒数就是:

∑i=0x(i+1)×(5×i+1)\displaystyle \sum_{i=0}^x (i + 1) \times (5 \times i + 1) =∑i=0x5×i2+6×i+1=\displaystyle \sum_{i=0}^x 5 \times i^2 + 6 \times i + 1 =5∑i=0xi2+6∑i=0xi+(x+1)=\displaystyle 5\sum_{i=0}^x i^2 + 6 \sum_{i=0}^x i + (x + 1) =5×x×(x+1)×(2×x+1)6+3×x×(x+1)+(x+1)= \frac{5 \times x \times (x + 1) \times (2 \times x + 1)}{6} + 3 \times x \times (x + 1) + (x + 1)

把这个展开即可其实是懒得打markdown了。

注意特判样例二的情况。

T3

大模拟题,需注意一下数字 5.00,13300,10070,6.605.00,13300,10070,6.60,等莫名其妙的 00 的出现。

T4

还在思考中。

原文