結果
問題 |
No.657 テトラナッチ数列 Easy
|
ユーザー |
![]() |
提出日時 | 2019-04-02 17:36:19 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 161 bytes |
コンパイル時間 | 181 ms |
コンパイル使用メモリ | 6,948 KB |
実行使用メモリ | 46,048 KB |
最終ジャッジ日時 | 2024-11-30 13:51:49 |
合計ジャッジ時間 | 6,223 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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])%17) Q = int(raw_input()) for i in range(0, Q): print lst[int(raw_input())]