結果
問題 | No.657 テトラナッチ数列 Easy |
ユーザー |
![]() |
提出日時 | 2019-04-02 17:40:07 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 326 ms / 2,000 ms |
コード長 | 171 bytes |
コンパイル時間 | 48 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 46,080 KB |
最終ジャッジ日時 | 2024-11-30 13:55:32 |
合計ジャッジ時間 | 5,979 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
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())-1]