結果
問題 | No.657 テトラナッチ数列 Easy |
ユーザー | ntuda |
提出日時 | 2022-10-31 18:55:45 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 193 bytes |
コンパイル時間 | 516 ms |
コンパイル使用メモリ | 87,236 KB |
実行使用メモリ | 79,264 KB |
最終ジャッジ日時 | 2023-09-22 15:46:26 |
合計ジャッジ時間 | 3,771 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 72 ms
71,376 KB |
testcase_01 | AC | 71 ms
71,280 KB |
testcase_02 | AC | 72 ms
71,352 KB |
testcase_03 | AC | 70 ms
71,388 KB |
testcase_04 | RE | - |
testcase_05 | AC | 121 ms
77,504 KB |
testcase_06 | AC | 70 ms
71,328 KB |
testcase_07 | AC | 71 ms
71,520 KB |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | RE | - |
testcase_15 | RE | - |
ソースコード
Q = int(input()) N = 10 T = [0] * (N + 1) T[4] = 1 tmp = sum(T[1:5]) for i in range(5, N+1): T[i] = tmp tmp += T[i] - T[i-4] tmp %= 17 for _ in range(Q): print(T[int(input())])