結果

問題 No.550 夏休みの思い出(1)
ユーザー pekempeypekempey
提出日時 2017-07-29 01:59:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 282 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 336 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 75,904 KB
最終ジャッジ日時 2024-04-19 13:15:48
合計ジャッジ時間 17,043 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 261 ms
75,580 KB
testcase_01 AC 252 ms
75,388 KB
testcase_02 AC 253 ms
75,520 KB
testcase_03 AC 255 ms
75,520 KB
testcase_04 AC 251 ms
75,392 KB
testcase_05 AC 246 ms
75,008 KB
testcase_06 AC 254 ms
75,492 KB
testcase_07 AC 246 ms
75,264 KB
testcase_08 AC 250 ms
75,068 KB
testcase_09 AC 252 ms
75,432 KB
testcase_10 AC 257 ms
75,392 KB
testcase_11 AC 252 ms
75,236 KB
testcase_12 AC 255 ms
75,684 KB
testcase_13 AC 265 ms
75,648 KB
testcase_14 AC 261 ms
75,312 KB
testcase_15 AC 246 ms
75,420 KB
testcase_16 AC 257 ms
75,264 KB
testcase_17 AC 257 ms
75,392 KB
testcase_18 AC 264 ms
75,520 KB
testcase_19 AC 258 ms
75,588 KB
testcase_20 AC 257 ms
75,640 KB
testcase_21 AC 251 ms
75,776 KB
testcase_22 AC 268 ms
75,264 KB
testcase_23 AC 271 ms
75,648 KB
testcase_24 AC 282 ms
75,904 KB
testcase_25 AC 266 ms
75,520 KB
testcase_26 AC 266 ms
75,264 KB
testcase_27 AC 266 ms
75,520 KB
testcase_28 AC 262 ms
75,392 KB
testcase_29 AC 257 ms
75,648 KB
testcase_30 AC 262 ms
75,364 KB
testcase_31 AC 262 ms
75,136 KB
testcase_32 AC 251 ms
75,008 KB
testcase_33 AC 250 ms
75,392 KB
testcase_34 AC 267 ms
75,264 KB
testcase_35 AC 250 ms
75,384 KB
testcase_36 AC 251 ms
75,520 KB
testcase_37 AC 248 ms
75,520 KB
testcase_38 AC 259 ms
75,136 KB
testcase_39 AC 259 ms
75,008 KB
testcase_40 AC 271 ms
75,264 KB
testcase_41 AC 270 ms
75,392 KB
testcase_42 AC 272 ms
75,264 KB
testcase_43 AC 270 ms
75,264 KB
testcase_44 AC 261 ms
75,540 KB
testcase_45 AC 255 ms
75,008 KB
testcase_46 AC 252 ms
75,468 KB
testcase_47 AC 264 ms
75,648 KB
testcase_48 AC 257 ms
75,392 KB
testcase_49 AC 230 ms
75,232 KB
testcase_50 AC 236 ms
75,472 KB
testcase_51 AC 252 ms
75,520 KB
testcase_52 AC 256 ms
75,388 KB
testcase_53 AC 252 ms
75,008 KB
testcase_54 AC 253 ms
75,264 KB
testcase_55 AC 262 ms
75,264 KB
testcase_56 AC 257 ms
75,536 KB
testcase_57 AC 253 ms
75,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c = map(int, input().split())
MOD = 33331

f = lambda x: x**3 + a*x**2 + b*x + c
ans = set()
for i in (i for i in range(MOD) if f(i) % MOD == 0):
    ans |= set(j for j in range(i - MOD**2, MOD**2, MOD) if f(j) == 0)
print(*sorted(ans))
0