結果
| 問題 |
No.314 ケンケンパ
|
| コンテスト | |
| ユーザー |
rocoder
|
| 提出日時 | 2017-08-11 15:48:27 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 204 bytes |
| コンパイル時間 | 83 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-12 20:37:51 |
| 合計ジャッジ時間 | 2,619 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 2 WA * 15 |
ソースコード
#kenkenpa
#your code goes here
N=int(input())
M=10
for i in range(8):
M*=10
M+=7
K1=1
K2=0
for i in range(N-1):
K3=K1+K2
K1=K2
K2=K3%M
K2*=2
K2%=M
if N==1:
print(1)
else:
print(K2)
rocoder