結果
| 問題 | No.3388 Sum of Function |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-28 22:43:59 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 2,000 ms |
| コード長 | 222 bytes |
| コンパイル時間 | 262 ms |
| コンパイル使用メモリ | 11,904 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2025-11-28 22:44:11 |
| 合計ジャッジ時間 | 2,015 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
l, r = map(int, input().split()) ans = 0 def f(x) : return x ** 3 - x ** 2 + x + 1 for i in range(l, r+1) : isSosu = i >= 2 for j in range(2, i) : isSosu = isSosu and (i % j != 0) if isSosu : ans += f(i) print(ans)