結果
| 問題 | No.3388 Sum of Function |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-13 14:01:00 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 318 bytes |
| 記録 | |
| コンパイル時間 | 732 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 20,604 KB |
| 最終ジャッジ日時 | 2026-05-13 14:01:19 |
| 合計ジャッジ時間 | 8,306 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 23 |
ソースコード
A = int(input())
B = int(input())
sum = 0
L = []
M = range(A,B+1)
for n in M :
sushu = True
for b in range(2,n) :
if n % b == 0:
sushu = False
break
if sushu:
L.append(n)
print(L)
for x in L :
y = x ** 3 - x ** 2 + x + 1
sum = sum + y
print(sum)