結果
問題 | No.657 テトラナッチ数列 Easy |
ユーザー |
|
提出日時 | 2022-03-03 01:07:03 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 148 ms / 2,000 ms |
コード長 | 178 bytes |
コンパイル時間 | 691 ms |
コンパイル使用メモリ | 82,300 KB |
実行使用メモリ | 152,472 KB |
最終ジャッジ日時 | 2024-07-16 15:06:59 |
合計ジャッジ時間 | 3,296 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
Q = int(input()) lsT = [0,0,0,0,1] for i in range(5,10**6+1): lsT.append((lsT[i-1]+lsT[i-2]+lsT[i-3]+lsT[i-4])%17) for i in range(Q): n = int(input()) print(lsT[n])