結果

問題 No.338 アンケート機能
ユーザー nebukuro09nebukuro09
提出日時 2016-11-01 11:40:18
言語 Python2
(2.7.18)
結果
AC  
実行時間 951 ms / 2,000 ms
コード長 307 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 6,552 KB
実行使用メモリ 6,084 KB
最終ジャッジ日時 2023-08-16 12:11:16
合計ジャッジ時間 32,012 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 935 ms
5,972 KB
testcase_01 AC 939 ms
5,868 KB
testcase_02 AC 936 ms
5,872 KB
testcase_03 AC 943 ms
5,924 KB
testcase_04 AC 930 ms
5,944 KB
testcase_05 AC 930 ms
5,940 KB
testcase_06 AC 913 ms
5,892 KB
testcase_07 AC 929 ms
5,820 KB
testcase_08 AC 930 ms
5,896 KB
testcase_09 AC 902 ms
5,900 KB
testcase_10 AC 951 ms
6,068 KB
testcase_11 AC 932 ms
5,864 KB
testcase_12 AC 935 ms
5,876 KB
testcase_13 AC 938 ms
6,008 KB
testcase_14 AC 904 ms
5,940 KB
testcase_15 AC 937 ms
5,904 KB
testcase_16 AC 936 ms
5,820 KB
testcase_17 AC 940 ms
5,984 KB
testcase_18 AC 907 ms
6,004 KB
testcase_19 AC 929 ms
5,996 KB
testcase_20 AC 924 ms
5,996 KB
testcase_21 AC 905 ms
6,060 KB
testcase_22 AC 934 ms
5,864 KB
testcase_23 AC 936 ms
5,936 KB
testcase_24 AC 940 ms
5,888 KB
testcase_25 AC 942 ms
5,872 KB
testcase_26 AC 941 ms
5,888 KB
testcase_27 AC 945 ms
6,084 KB
testcase_28 AC 938 ms
5,864 KB
testcase_29 AC 912 ms
5,824 KB
testcase_30 AC 921 ms
6,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int, raw_input().split())
ans = float('inf')
for a in xrange(1000):
    for b in xrange(1000):
        if a == b == 0:
            continue
        Aa = round(float((100*a))/(a+b))
        Bb = round(float((100*b))/(a+b))
        if Aa == A and Bb == B:
            ans = min(ans, a+b)
print ans
0