結果

問題 No.658 テトラナッチ数列 Hard
ユーザー ebiyuu1121ebiyuu1121
提出日時 2018-03-05 22:24:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 151 bytes
コンパイル時間 229 ms
コンパイル使用メモリ 10,684 KB
実行使用メモリ 16,164 KB
最終ジャッジ日時 2023-10-11 20:34:31
合計ジャッジ時間 6,191 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 414 ms
16,048 KB
testcase_01 AC 416 ms
16,088 KB
testcase_02 RE -
testcase_03 AC 417 ms
16,048 KB
testcase_04 AC 461 ms
16,112 KB
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

Q=int(input())

T=[0,0,0,0,1]
for i in range(5,1000000):
    T.append((T[i-1]+T[i-2]+T[i-3]+T[i-4])%17)

for i in range(Q):
    print(T[int(input())])
0