結果
| 問題 | No.3388 Sum of Function |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-02-09 08:07:21 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 201 bytes |
| 記録 | |
| コンパイル時間 | 412 ms |
| コンパイル使用メモリ | 82,380 KB |
| 実行使用メモリ | 59,332 KB |
| 最終ジャッジ日時 | 2026-02-09 08:07:25 |
| 合計ジャッジ時間 | 3,199 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 WA * 3 |
ソースコード
def f(x): return x*x*x-x*x+x+1
def prime(a):
for i in range(2,a):
if a%i == 0: return False
return True
x,y = map(int,input().split())
print(sum(f(a) for a in range(x,y+1) if prime(a)))