結果
問題 |
No.657 テトラナッチ数列 Easy
|
ユーザー |
|
提出日時 | 2018-03-03 10:41:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 273 bytes |
コンパイル時間 | 106 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 18,208 KB |
最終ジャッジ日時 | 2024-06-23 19:13:44 |
合計ジャッジ時間 | 7,143 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 TLE * 1 -- * 3 |
ソースコード
def t(n): d=dict() for i in range(1,5):d[i]=i//4 t=[0]*3+[1] if n<5:return d for i in range(5,n+1): s=sum(t)%17 t+=[s] t.pop(0) if i in N: d[i]=s return d q=int(input()) N=[int(input()) for i in'.'*q] d=t(max(N)) for i in N: print(d[i])