結果
問題 | No.657 テトラナッチ数列 Easy |
ユーザー |
![]() |
提出日時 | 2018-03-02 22:50:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 317 bytes |
コンパイル時間 | 212 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 22,016 KB |
最終ジャッジ日時 | 2024-06-22 04:42:46 |
合計ジャッジ時間 | 7,678 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 TLE * 2 -- * 5 |
ソースコード
N = int(input()) t=[int(input()) for i in range(N)] for j in range(len(t)): if 1<=t[j]<=3: print(0) elif t[j]==4: print(1) else: s=[0,0,0,1] for i in range(t[j]-4): tt=2 tt=s[0+i]+s[1+i]+s[2+i]+s[3+i] s.append(tt%17) print(tt%17)