結果
問題 |
No.657 テトラナッチ数列 Easy
|
ユーザー |
![]() |
提出日時 | 2019-04-02 17:37:37 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 169 bytes |
コンパイル時間 | 206 ms |
コンパイル使用メモリ | 7,076 KB |
実行使用メモリ | 45,992 KB |
最終ジャッジ日時 | 2024-11-30 13:55:17 |
合計ジャッジ時間 | 6,275 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 4 WA * 9 |
ソースコード
lst = [0, 0, 0, 1] for i in range(4, 1000000): lst.append((lst[-1]+lst[-2]+lst[-3]+lst[-4])%17) Q = int(raw_input()) for i in range(0, Q): print lst[int(raw_input())]