結果

問題 No.320 眠れない夜に
ユーザー TawaraTawara
提出日時 2015-12-13 09:05:34
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 168 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 6,704 KB
実行使用メモリ 6,912 KB
最終ジャッジ日時 2023-10-13 14:48:58
合計ジャッジ時間 1,937 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
6,824 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 15 ms
6,776 KB
testcase_04 AC 15 ms
6,732 KB
testcase_05 AC 13 ms
6,428 KB
testcase_06 AC 15 ms
6,656 KB
testcase_07 AC 15 ms
6,660 KB
testcase_08 AC 14 ms
6,356 KB
testcase_09 AC 15 ms
6,716 KB
testcase_10 AC 14 ms
6,460 KB
testcase_11 AC 14 ms
6,752 KB
testcase_12 AC 15 ms
6,768 KB
testcase_13 AC 14 ms
6,516 KB
testcase_14 AC 14 ms
6,832 KB
testcase_15 AC 13 ms
6,196 KB
testcase_16 AC 15 ms
6,380 KB
testcase_17 AC 13 ms
6,168 KB
testcase_18 AC 12 ms
5,992 KB
testcase_19 AC 11 ms
6,136 KB
testcase_20 AC 14 ms
6,520 KB
testcase_21 AC 13 ms
6,132 KB
testcase_22 AC 12 ms
6,232 KB
testcase_23 WA -
testcase_24 AC 12 ms
6,136 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 11 ms
6,172 KB
testcase_29 AC 12 ms
6,080 KB
testcase_30 AC 11 ms
6,112 KB
testcase_31 AC 12 ms
6,120 KB
testcase_32 AC 12 ms
6,040 KB
testcase_33 AC 15 ms
6,860 KB
testcase_34 AC 11 ms
6,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int,raw_input().split());F=[0]*N;i=F[0]=F[1]=1;N-=2
exec("F[i+1]=F[i]+F[i-1];i+=1;"*N);D=F[-1]-M;C=0
exec("i-=1\nif D>=F[i]:D-=F[i];C+=1\n"*N);print[-1,C][D==0]
0