結果
| 問題 |
No.303 割れません
|
| ユーザー |
latte0119
|
| 提出日時 | 2015-11-13 23:31:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 270 bytes |
| コンパイル時間 | 132 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 745,252 KB |
| 最終ジャッジ日時 | 2024-09-13 15:30:22 |
| 合計ジャッジ時間 | 11,828 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | MLE * 1 -- * 13 |
ソースコード
# coding: utf-8
# Here your code !
N=int(input())
F=[]
A=[]
for i in range(3):
F.append(1)
A.append(1)
for i in range(3,N+1):
F.append(F[i-1]+F[i-2])
if i%2==0:
A.append(F[i]-F[i//2]*F[i//2])
else:
A.append(F[i])
print(A[N])
latte0119