結果

問題 No.338 アンケート機能
ユーザー gorugo30gorugo30
提出日時 2021-03-20 13:18:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 296 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 59,520 KB
最終ジャッジ日時 2024-11-20 22:18:03
合計ジャッジ時間 2,751 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

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