結果

問題 No.338 アンケート機能
ユーザー brthyyjpbrthyyjp
提出日時 2021-07-28 18:21:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 335 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 87,076 KB
実行使用メモリ 75,836 KB
最終ジャッジ日時 2023-10-11 16:06:48
合計ジャッジ時間 4,446 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
75,784 KB
testcase_01 AC 80 ms
75,528 KB
testcase_02 AC 79 ms
75,560 KB
testcase_03 AC 81 ms
75,744 KB
testcase_04 AC 79 ms
75,528 KB
testcase_05 AC 79 ms
75,560 KB
testcase_06 AC 79 ms
75,524 KB
testcase_07 AC 80 ms
75,524 KB
testcase_08 AC 80 ms
75,476 KB
testcase_09 AC 80 ms
75,652 KB
testcase_10 AC 80 ms
75,672 KB
testcase_11 AC 80 ms
75,700 KB
testcase_12 AC 82 ms
75,704 KB
testcase_13 AC 79 ms
75,536 KB
testcase_14 AC 80 ms
75,660 KB
testcase_15 AC 83 ms
75,516 KB
testcase_16 AC 79 ms
75,732 KB
testcase_17 AC 82 ms
75,808 KB
testcase_18 AC 79 ms
75,736 KB
testcase_19 AC 83 ms
75,704 KB
testcase_20 AC 83 ms
75,704 KB
testcase_21 AC 78 ms
75,552 KB
testcase_22 AC 82 ms
75,800 KB
testcase_23 AC 83 ms
75,780 KB
testcase_24 AC 83 ms
75,836 KB
testcase_25 AC 82 ms
75,460 KB
testcase_26 AC 81 ms
75,632 KB
testcase_27 AC 83 ms
75,776 KB
testcase_28 AC 83 ms
75,768 KB
testcase_29 AC 83 ms
75,640 KB
testcase_30 AC 81 ms
75,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int, input().split())
m = 10**18
ans = -1
for a in range(0, 201):
    for b in range(0, 201):
        if a+b == 0:
            continue
        X = (100*a+(a+b)//2)//(a+b)
        Y = (100*b+(a+b)//2)//(a+b)
        if X == A and Y == B:
            if a+b < m:
                ans = [a, b]
                m = a+b
print(m)
0