結果

問題 No.338 アンケート機能
ユーザー wearchywearchy
提出日時 2020-02-04 20:31:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 310 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 81,640 KB
実行使用メモリ 64,316 KB
最終ジャッジ日時 2023-10-21 06:32:45
合計ジャッジ時間 3,864 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
62,248 KB
testcase_01 AC 77 ms
62,248 KB
testcase_02 AC 77 ms
62,244 KB
testcase_03 AC 79 ms
62,256 KB
testcase_04 AC 92 ms
62,248 KB
testcase_05 AC 83 ms
62,244 KB
testcase_06 AC 78 ms
62,248 KB
testcase_07 AC 84 ms
64,316 KB
testcase_08 AC 76 ms
62,248 KB
testcase_09 AC 80 ms
64,304 KB
testcase_10 AC 80 ms
62,248 KB
testcase_11 AC 78 ms
62,248 KB
testcase_12 AC 84 ms
64,304 KB
testcase_13 AC 82 ms
62,248 KB
testcase_14 AC 77 ms
62,256 KB
testcase_15 AC 79 ms
62,248 KB
testcase_16 AC 80 ms
62,256 KB
testcase_17 AC 78 ms
62,248 KB
testcase_18 AC 83 ms
62,256 KB
testcase_19 AC 78 ms
62,256 KB
testcase_20 AC 79 ms
64,304 KB
testcase_21 AC 75 ms
62,244 KB
testcase_22 AC 76 ms
64,304 KB
testcase_23 AC 76 ms
62,256 KB
testcase_24 AC 82 ms
62,256 KB
testcase_25 AC 86 ms
64,304 KB
testcase_26 AC 82 ms
64,304 KB
testcase_27 AC 78 ms
64,304 KB
testcase_28 AC 79 ms
62,256 KB
testcase_29 AC 84 ms
62,248 KB
testcase_30 AC 83 ms
64,316 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

answer = 10 ** 15

for a in range(0, 2001):
    for b in range(0, 2001):
        if a + b == 0:
            continue
        if A == int(100 * a / (a + b) + 0.5) and B == int(100 * b / (a + b) + 0.5):
            if a + b < answer:
                answer = a + b
print(answer)
0