結果
| 問題 | No.3388 Sum of Function |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-19 16:04:37 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 200 bytes |
| 記録 | |
| コンパイル時間 | 222 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 57,216 KB |
| 最終ジャッジ日時 | 2026-05-19 16:04:40 |
| 合計ジャッジ時間 | 2,079 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
| 純コード判定待ち |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
def isprime(x): if x==1:return False for i in range(2,x): if x%i==0:return False return True a,b=map(int,input().split()) res=0 for i in range(a,b+1): if isprime(i):res+=i**3-i*i+i+1; print(res)