結果

問題 No.338 アンケート機能
ユーザー gorugo30gorugo30
提出日時 2021-03-20 13:18:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 296 bytes
コンパイル時間 367 ms
コンパイル使用メモリ 82,408 KB
実行使用メモリ 61,172 KB
最終ジャッジ日時 2024-04-30 23:37:14
合計ジャッジ時間 2,499 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,208 KB
testcase_01 AC 40 ms
59,176 KB
testcase_02 AC 35 ms
53,572 KB
testcase_03 AC 35 ms
52,208 KB
testcase_04 AC 34 ms
52,384 KB
testcase_05 AC 55 ms
59,824 KB
testcase_06 AC 35 ms
53,292 KB
testcase_07 AC 38 ms
58,716 KB
testcase_08 AC 35 ms
53,300 KB
testcase_09 AC 40 ms
58,640 KB
testcase_10 AC 35 ms
53,364 KB
testcase_11 AC 35 ms
53,136 KB
testcase_12 AC 34 ms
52,632 KB
testcase_13 AC 34 ms
53,616 KB
testcase_14 AC 35 ms
52,272 KB
testcase_15 AC 34 ms
52,392 KB
testcase_16 AC 34 ms
52,332 KB
testcase_17 AC 34 ms
53,440 KB
testcase_18 AC 33 ms
52,748 KB
testcase_19 AC 34 ms
53,004 KB
testcase_20 AC 40 ms
60,264 KB
testcase_21 AC 40 ms
60,000 KB
testcase_22 AC 41 ms
59,880 KB
testcase_23 AC 35 ms
52,700 KB
testcase_24 AC 35 ms
52,004 KB
testcase_25 AC 40 ms
61,172 KB
testcase_26 AC 39 ms
59,684 KB
testcase_27 AC 41 ms
60,256 KB
testcase_28 AC 35 ms
52,880 KB
testcase_29 AC 36 ms
52,792 KB
testcase_30 AC 37 ms
52,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int, input().split())

apb = 1
while 1:
    for a in range(apb + 1):
        b = apb - a
        if A * apb - 0.5 * apb <= 100 * a < A * apb + 0.5 * apb:
            if B * apb - 0.5 * apb <= 100 * b < B * apb + 0.5 * apb:
                print(apb)
                exit()
    apb += 1
0