結果
問題 |
No.657 テトラナッチ数列 Easy
|
ユーザー |
|
提出日時 | 2018-03-03 16:58:56 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 191 bytes |
コンパイル時間 | 222 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 14,956 KB |
最終ジャッジ日時 | 2024-06-30 04:43:38 |
合計ジャッジ時間 | 5,348 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 TLE * 1 -- * 5 |
ソースコード
#yuki657 def tet(x): t=[0,0,0,1] for i in xrange(x-4): t.append((t[-1]+t[-2]+t[-3]+t[-4])%17) return t[x-1]%17 q=int(raw_input()) for i in xrange(q): n=int(raw_input()) print tet(n)