結果

問題 No.303 割れません
ユーザー latte0119latte0119
提出日時 2015-11-13 23:32:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 278 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 826,968 KB
最終ジャッジ日時 2023-10-11 16:51:48
合計ジャッジ時間 12,958 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,884 KB
testcase_01 AC 15 ms
7,740 KB
testcase_02 AC 15 ms
7,768 KB
testcase_03 MLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Here your code !

N=int(input())
print(N)
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])
0