結果
| 問題 | No.657 テトラナッチ数列 Easy |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-04 08:52:02 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 213 bytes |
| 記録 | |
| コンパイル時間 | 93 ms |
| コンパイル使用メモリ | 81,152 KB |
| 実行使用メモリ | 308,704 KB |
| 最終ジャッジ日時 | 2026-07-18 17:26:22 |
| 合計ジャッジ時間 | 6,945 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 TLE * 1 -- * 3 |
ソースコード
#yuki657 def tet(x): t=[0,0,0,1] for i in xrange(5,x+1): t+=[((t[-1]+t[-2]+t[-3]+t[-4])%17)] return t q=int(raw_input()) for i in xrange(q): n=int(raw_input()) if n<4: print 0 else: print tet(n)[-1]