結果
| 問題 | No.3388 Sum of Function |
| コンテスト | |
| ユーザー |
kidodesu
|
| 提出日時 | 2025-11-28 21:40:06 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 238 bytes |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 82,412 KB |
| 実行使用メモリ | 59,780 KB |
| 最終ジャッジ日時 | 2025-11-28 21:40:23 |
| 合計ジャッジ時間 | 2,208 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 WA * 3 |
ソースコード
a, b = map(int, input().split())
ans = 0
def p(t):
for i in range(2, t):
if t % i == 0:
return 0
return 1
def f(t):
return t*t*t-t*t+t+1
for i in range(a, b+1):
if p(i):
ans += f(i)
print(ans)
kidodesu