結果

問題 No.657 テトラナッチ数列 Easy
ユーザー convexineqconvexineq
提出日時 2021-03-12 08:47:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 370 ms / 2,000 ms
コード長 130 bytes
コンパイル時間 403 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 145,292 KB
最終ジャッジ日時 2024-04-21 19:22:53
合計ジャッジ時間 6,903 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 306 ms
144,388 KB
testcase_01 AC 300 ms
144,264 KB
testcase_02 AC 297 ms
144,400 KB
testcase_03 AC 308 ms
144,152 KB
testcase_04 AC 306 ms
144,272 KB
testcase_05 AC 361 ms
145,036 KB
testcase_06 AC 300 ms
144,400 KB
testcase_07 AC 304 ms
144,140 KB
testcase_08 AC 295 ms
144,264 KB
testcase_09 AC 356 ms
145,292 KB
testcase_10 AC 351 ms
144,784 KB
testcase_11 AC 351 ms
145,020 KB
testcase_12 AC 359 ms
145,032 KB
testcase_13 AC 370 ms
145,036 KB
testcase_14 AC 354 ms
144,908 KB
testcase_15 AC 355 ms
144,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a = [0,0,0,0,1]
for _ in range(10**6):
    a.append(sum(a[-4:])%17)
Q = int(input())
for _ in range(Q):
    print(a[int(input())])
0