結果
| 問題 |
No.314 ケンケンパ
|
| コンテスト | |
| ユーザー |
rocoder
|
| 提出日時 | 2017-08-11 14:51:03 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 787 ms / 1,000 ms |
| コード長 | 256 bytes |
| コンパイル時間 | 162 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 65,440 KB |
| 最終ジャッジ日時 | 2024-10-12 20:36:13 |
| 合計ジャッジ時間 | 4,095 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
# your code goes here
N=int(input())
M=10
for i in range(8):
M*=10
M+=7
K1=[1]
K2=[0]
P=[0]
for i in range(1,N):
K1.append(P[i-1])
K2.append(K1[i-1])
P.append(K1[i-1]+K2[i-1])
P[i]%=M
# print(P)
A=K1[N-1]+K2[N-1]+P[N-1]
A%=M
print(A)
rocoder