結果

問題 No.657 テトラナッチ数列 Easy
ユーザー aaaaaaaaaa
提出日時 2018-03-06 00:12:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 549 ms / 2,000 ms
コード長 108 bytes
コンパイル時間 631 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 16,172 KB
最終ジャッジ日時 2023-10-12 00:06:02
合計ジャッジ時間 10,742 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 489 ms
15,964 KB
testcase_01 AC 494 ms
16,156 KB
testcase_02 AC 491 ms
16,092 KB
testcase_03 AC 489 ms
16,076 KB
testcase_04 AC 489 ms
16,072 KB
testcase_05 AC 536 ms
16,136 KB
testcase_06 AC 491 ms
16,156 KB
testcase_07 AC 489 ms
16,136 KB
testcase_08 AC 492 ms
16,068 KB
testcase_09 AC 543 ms
16,032 KB
testcase_10 AC 542 ms
15,760 KB
testcase_11 AC 537 ms
15,884 KB
testcase_12 AC 549 ms
15,820 KB
testcase_13 AC 541 ms
16,100 KB
testcase_14 AC 538 ms
16,172 KB
testcase_15 AC 543 ms
16,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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