結果
| 問題 | No.314 ケンケンパ |
| コンテスト | |
| ユーザー |
taba
|
| 提出日時 | 2016-04-15 01:14:03 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 128 ms / 1,000 ms |
| コード長 | 88 bytes |
| 記録 | |
| コンパイル時間 | 1,237 ms |
| コンパイル使用メモリ | 77,228 KB |
| 最終ジャッジ日時 | 2025-12-03 20:21:26 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
n=input() p=[1,1,1] for i in xrange(n-1): p.append((p[-3]+p[-2])%(10**9+7)) print p[-1]
taba