結果

問題 No.1010 折って重ねて
ユーザー syunsukesyunsuke
提出日時 2020-09-16 20:05:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 436 bytes
コンパイル時間 325 ms
コンパイル使用メモリ 86,912 KB
実行使用メモリ 75,204 KB
最終ジャッジ日時 2023-09-04 03:50:58
合計ジャッジ時間 5,756 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,428 KB
testcase_01 AC 71 ms
71,248 KB
testcase_02 AC 69 ms
71,380 KB
testcase_03 AC 73 ms
75,032 KB
testcase_04 AC 74 ms
74,868 KB
testcase_05 AC 73 ms
71,124 KB
testcase_06 AC 72 ms
71,376 KB
testcase_07 AC 72 ms
71,144 KB
testcase_08 AC 73 ms
71,252 KB
testcase_09 AC 71 ms
71,252 KB
testcase_10 AC 73 ms
71,176 KB
testcase_11 AC 73 ms
71,168 KB
testcase_12 AC 72 ms
71,388 KB
testcase_13 AC 73 ms
71,248 KB
testcase_14 AC 71 ms
71,144 KB
testcase_15 AC 75 ms
75,008 KB
testcase_16 AC 73 ms
75,092 KB
testcase_17 AC 73 ms
75,024 KB
testcase_18 AC 74 ms
74,796 KB
testcase_19 AC 76 ms
75,020 KB
testcase_20 AC 75 ms
75,012 KB
testcase_21 AC 74 ms
75,032 KB
testcase_22 AC 74 ms
75,136 KB
testcase_23 AC 73 ms
75,028 KB
testcase_24 AC 74 ms
74,944 KB
testcase_25 AC 72 ms
75,204 KB
testcase_26 AC 75 ms
74,944 KB
testcase_27 AC 76 ms
75,016 KB
testcase_28 AC 73 ms
74,948 KB
testcase_29 AC 74 ms
75,180 KB
testcase_30 AC 71 ms
71,068 KB
testcase_31 AC 73 ms
71,052 KB
testcase_32 AC 80 ms
71,380 KB
testcase_33 AC 76 ms
75,100 KB
testcase_34 AC 72 ms
71,396 KB
testcase_35 AC 72 ms
71,348 KB
testcase_36 AC 73 ms
71,432 KB
testcase_37 AC 71 ms
71,124 KB
testcase_38 AC 73 ms
75,160 KB
testcase_39 AC 72 ms
71,176 KB
testcase_40 AC 74 ms
75,040 KB
testcase_41 AC 73 ms
71,072 KB
testcase_42 AC 72 ms
71,364 KB
testcase_43 AC 75 ms
75,024 KB
testcase_44 AC 74 ms
74,952 KB
testcase_45 AC 71 ms
71,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x,y,h=map(int,input().split())
X=x*1000
Y=y*1000
DP=[{} for i in range(200)]
DP[0][(X,Y,h*1.0)]=1
#print(DP)
for i in range(1,len(DP)):
    for K,v in DP[i-1].items():
        a,b,c=K
        if a>c+0.000001:
            #print(i,a,b,c)
            DP[i][(a/2,b,c*2)]=1
        if b>c+0.000001:
            #print(i,a,b,c)
            DP[i][(a,b/2,c*2)]=1
for i in range(len(DP)):
    if len(DP[i])==0:
        print(i-1)
        exit()
0