結果
問題 |
No.752 mod数列
|
ユーザー |
![]() |
提出日時 | 2018-11-14 15:49:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 261 bytes |
コンパイル時間 | 104 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-24 13:42:09 |
合計ジャッジ時間 | 3,744 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 31 |
ソースコード
# coding: utf-8 def main(): d = [None] * pow(10,9) P, Q = list(map(int, input().split(' '))) l = [list(map(int, input().split(' '))) for _ in range(Q)] for L, R in l: for i in range(L, R+1): if d[i] is None: d[i] = P % i print(sum(d[L:R+1])) main()