結果
問題 |
No.314 ケンケンパ
|
ユーザー |
![]() |
提出日時 | 2016-02-21 17:29:53 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 255 bytes |
コンパイル時間 | 65 ms |
コンパイル使用メモリ | 6,944 KB |
実行使用メモリ | 51,656 KB |
最終ジャッジ日時 | 2024-09-22 12:34:35 |
合計ジャッジ時間 | 4,475 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 1 -- * 16 |
ソースコード
# -*- coding: utf-8 -*- N = input() temp = [0, 0, 0] memo = [1, 0, 0] for i in range(1, N): temp[0] = memo[2] temp[1] = memo[0] temp[2] = memo[0] + memo[1] for k in range(0, 3): memo[k] = temp[k] print int(sum(memo) % (10E+9 + 7))