結果
問題 |
No.657 テトラナッチ数列 Easy
|
ユーザー |
|
提出日時 | 2018-03-03 09:29:30 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 188 bytes |
コンパイル時間 | 295 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 18,204 KB |
最終ジャッジ日時 | 2024-06-23 17:14:33 |
合計ジャッジ時間 | 6,611 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 TLE * 1 -- * 5 |
ソースコード
def t(n): t=[0]*3+[1] if n<5:return(t[n-1]) for i in range(4,n): t+=[sum(t)%17] t.pop(0) return t.pop() q=int(input()) n=[int(input()) for i in'.'*q] for i in n:print(t(i))