結果
| 問題 | No.314 ケンケンパ |
| コンテスト | |
| ユーザー |
todo_2mariko
|
| 提出日時 | 2019-03-13 15:19:04 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 192 bytes |
| 記録 | |
| コンパイル時間 | 470 ms |
| コンパイル使用メモリ | 20,952 KB |
| 実行使用メモリ | 22,088 KB |
| 最終ジャッジ日時 | 2026-03-08 13:05:55 |
| 合計ジャッジ時間 | 4,782 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 4 WA * 6 RE * 7 |
ソースコード
from functools import lru_cache
n = int(input())
@lru_cache(maxsize=1000000)
def kp(n):
if n< 3:
return n
else:
return kp(n-1) + kp(n-2)//2
print(kp(n)%(10**9+7))
todo_2mariko