結果
| 問題 | No.3388 Sum of Function |
| コンテスト | |
| ユーザー |
yt142857
|
| 提出日時 | 2025-11-20 15:29:14 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 227 bytes |
| コンパイル時間 | 276 ms |
| コンパイル使用メモリ | 82,772 KB |
| 実行使用メモリ | 58,084 KB |
| 最終ジャッジ日時 | 2025-11-28 20:54:43 |
| 合計ジャッジ時間 | 2,225 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 WA * 3 |
ソースコード
def f(x):
return x**3-x**2+x+1
def Is_Prime(x):
for i in range(2,x):
if x%i==0:
return False
return True
a,b = map(int,input().split())
ans = 0
for i in range(a,b+1):
if Is_Prime(i):
ans += f(i)
print(ans)
yt142857