100 Accepted
foo.cc: In function 'int main()': foo.cc:27:73: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] 27 | for (int i = 1;i < n;i ++) mul(ans, qpow(k, a[i + 1].fi - a[i].fi << 1) - (k - 1ll) * qpow(k, a[i + 1].fi - a[i].fi - 1) % mod + mod); | ^ foo.cc:28:42: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] 28 | mul(ans, qpow(k, a[1].fi - 1 << 1)), mul(ans, qpow(k, m - a[n].fi << 1)); | ~~~~~~~~^~~ foo.cc:28:73: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] 28 | mul(ans, qpow(k, a[1].fi - 1 << 1)), mul(ans, qpow(k, m - a[n].fi << 1)); | ^
# | 状态 分数 | 耗时 | 内存占用 |
---|
#1 | Accepted 5 | 1ms | 404 KiB |
#2 | Accepted 5 | 1ms | 312 KiB |
#3 | Accepted 5 | 1ms | 404 KiB |
#4 | Accepted 5 | 1ms | 324 KiB |
#5 | Accepted 5 | 1ms | 404 KiB |
#6 | Accepted 5 | 1ms | 404 KiB |
#7 | Accepted 5 | 1ms | 404 KiB |
#8 | Accepted 5 | 1ms | 404 KiB |
#9 | Accepted 5 | 2ms | 340 KiB |
#10 | Accepted 5 | 3ms | 508 KiB |
#11 | Accepted 5 | 7ms | 404 KiB |
#12 | Accepted 5 | 87ms | 1.2 MiB |
#13 | Accepted 5 | 1ms | 404 KiB |
#14 | Accepted 5 | 4ms | 404 KiB |
#15 | Accepted 5 | 47ms | 1.1 MiB |
#16 | Accepted 5 | 20ms | 660 KiB |
#17 | Accepted 5 | 2ms | 404 KiB |
#18 | Accepted 5 | 4ms | 404 KiB |
#19 | Accepted 5 | 50ms | 1.1 MiB |
#20 | Accepted 5 | 25ms | 664 KiB |
代码
信息
- 递交者
- 题目
- NOIP2024BGF NOIP2024BGF
- 比赛
- 【官方数据 GD】 NOIP2024 批量测试
- 语言
- C++ 14(O2)
- 代码长度
- 1.1 KiB
- 递交时间
- 2024-12-6 16:30:03
- 评测时间
- 2024-12-6 16:41:17
- 分数
- 100
- 总耗时
- 261ms
- 峰值时间
- 87ms
- 峰值内存
- 1.2 MiB