結果

問題 No.338 アンケート機能
ユーザー c-yanc-yan
提出日時 2020-12-14 00:10:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 891 ms / 2,000 ms
コード長 314 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 11,808 KB
実行使用メモリ 10,068 KB
最終ジャッジ日時 2023-10-20 04:34:09
合計ジャッジ時間 28,416 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 868 ms
10,068 KB
testcase_01 AC 840 ms
10,068 KB
testcase_02 AC 826 ms
10,068 KB
testcase_03 AC 834 ms
10,068 KB
testcase_04 AC 833 ms
10,068 KB
testcase_05 AC 835 ms
10,068 KB
testcase_06 AC 844 ms
10,068 KB
testcase_07 AC 837 ms
10,068 KB
testcase_08 AC 843 ms
10,068 KB
testcase_09 AC 829 ms
10,068 KB
testcase_10 AC 833 ms
10,068 KB
testcase_11 AC 866 ms
10,068 KB
testcase_12 AC 891 ms
10,068 KB
testcase_13 AC 818 ms
10,068 KB
testcase_14 AC 820 ms
10,068 KB
testcase_15 AC 814 ms
10,068 KB
testcase_16 AC 817 ms
10,068 KB
testcase_17 AC 829 ms
10,068 KB
testcase_18 AC 863 ms
10,068 KB
testcase_19 AC 842 ms
10,068 KB
testcase_20 AC 838 ms
10,068 KB
testcase_21 AC 822 ms
10,068 KB
testcase_22 AC 825 ms
10,068 KB
testcase_23 AC 836 ms
10,068 KB
testcase_24 AC 837 ms
10,068 KB
testcase_25 AC 836 ms
10,068 KB
testcase_26 AC 821 ms
10,068 KB
testcase_27 AC 832 ms
10,068 KB
testcase_28 AC 834 ms
10,068 KB
testcase_29 AC 823 ms
10,068 KB
testcase_30 AC 843 ms
10,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

result = 10 ** 12
for a in range(1000):
    for b in range(1000):
        if a + b == 0:
            continue
        x = int((100 * a) / (a + b) + 0.5)
        y = int((100 * b) / (a + b) + 0.5)
        if x == A and y == B:
            result = min(result, a + b)
print(result)
0