結果

問題 No.338 アンケート機能
ユーザー 👑 KazunKazun
提出日時 2021-01-08 03:53:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 82,312 KB
実行使用メモリ 60,228 KB
最終ジャッジ日時 2024-04-26 23:21:05
合計ジャッジ時間 2,578 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,484 KB
testcase_01 AC 40 ms
57,608 KB
testcase_02 AC 37 ms
51,696 KB
testcase_03 AC 37 ms
53,720 KB
testcase_04 AC 38 ms
52,548 KB
testcase_05 AC 42 ms
58,308 KB
testcase_06 AC 37 ms
53,036 KB
testcase_07 AC 45 ms
57,560 KB
testcase_08 AC 37 ms
52,516 KB
testcase_09 AC 42 ms
58,592 KB
testcase_10 AC 37 ms
52,500 KB
testcase_11 AC 40 ms
52,420 KB
testcase_12 AC 38 ms
52,544 KB
testcase_13 AC 37 ms
52,140 KB
testcase_14 AC 36 ms
52,068 KB
testcase_15 AC 36 ms
52,076 KB
testcase_16 AC 36 ms
51,904 KB
testcase_17 AC 37 ms
52,436 KB
testcase_18 AC 37 ms
52,272 KB
testcase_19 AC 37 ms
53,312 KB
testcase_20 AC 42 ms
58,856 KB
testcase_21 AC 41 ms
58,780 KB
testcase_22 AC 42 ms
58,752 KB
testcase_23 AC 37 ms
51,748 KB
testcase_24 AC 36 ms
52,120 KB
testcase_25 AC 42 ms
60,228 KB
testcase_26 AC 40 ms
58,480 KB
testcase_27 AC 41 ms
59,084 KB
testcase_28 AC 37 ms
52,684 KB
testcase_29 AC 37 ms
52,700 KB
testcase_30 AC 38 ms
52,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve(A,B):
    k=1
    while True:
        for a in range(k+1):
            b=k-a

            if 200*a-k<2*A*k<=200*a+k and 200*b-k<2*B*k<=200*b+k:
                return  k
        k+=1

A,B=map(int,input().split())
print(solve(A,B))
0