結果

問題 No.657 テトラナッチ数列 Easy
ユーザー Mr.FukuMr.Fuku
提出日時 2018-08-09 20:55:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 497 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 11,768 KB
実行使用メモリ 18,476 KB
最終ジャッジ日時 2023-10-24 12:45:45
合計ジャッジ時間 8,734 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 441 ms
17,800 KB
testcase_01 AC 453 ms
17,800 KB
testcase_02 AC 444 ms
17,800 KB
testcase_03 AC 443 ms
17,800 KB
testcase_04 AC 449 ms
17,800 KB
testcase_05 AC 466 ms
18,200 KB
testcase_06 AC 452 ms
17,800 KB
testcase_07 AC 464 ms
17,800 KB
testcase_08 AC 443 ms
17,800 KB
testcase_09 AC 473 ms
18,400 KB
testcase_10 AC 477 ms
18,468 KB
testcase_11 AC 468 ms
18,468 KB
testcase_12 AC 497 ms
18,476 KB
testcase_13 AC 466 ms
18,460 KB
testcase_14 AC 468 ms
18,460 KB
testcase_15 AC 474 ms
18,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
lst = [int(input()) for i in range(n)]
t = [0,0,0,0,1]
for i in range(1000000):
    t.append(sum(t[-4:])%17)
for i in lst:
    print(t[i])
0