結果

問題 No.338 アンケート機能
ユーザー yomo3yomo3
提出日時 2020-04-07 17:29:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 8,008 KB
最終ジャッジ日時 2023-09-22 01:51:43
合計ジャッジ時間 2,164 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
7,824 KB
testcase_01 AC 28 ms
7,920 KB
testcase_02 AC 29 ms
7,768 KB
testcase_03 AC 29 ms
7,872 KB
testcase_04 WA -
testcase_05 AC 27 ms
7,904 KB
testcase_06 WA -
testcase_07 AC 25 ms
7,916 KB
testcase_08 AC 28 ms
7,804 KB
testcase_09 AC 26 ms
7,788 KB
testcase_10 AC 26 ms
7,812 KB
testcase_11 AC 28 ms
7,860 KB
testcase_12 AC 26 ms
7,820 KB
testcase_13 AC 30 ms
7,884 KB
testcase_14 AC 26 ms
7,804 KB
testcase_15 AC 25 ms
7,828 KB
testcase_16 AC 28 ms
7,784 KB
testcase_17 AC 26 ms
7,788 KB
testcase_18 AC 27 ms
7,856 KB
testcase_19 AC 26 ms
7,828 KB
testcase_20 AC 27 ms
7,856 KB
testcase_21 AC 29 ms
7,852 KB
testcase_22 AC 29 ms
7,916 KB
testcase_23 AC 28 ms
7,780 KB
testcase_24 AC 29 ms
7,768 KB
testcase_25 AC 26 ms
7,924 KB
testcase_26 AC 28 ms
7,916 KB
testcase_27 AC 28 ms
7,908 KB
testcase_28 AC 30 ms
7,816 KB
testcase_29 AC 28 ms
7,860 KB
testcase_30 AC 27 ms
7,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans = 10**5
for a in range(1, 201):
    for b in range(1, 201):
        s = a + b
        if s * (10 * A - 5) <= 1000 * a < s * (10 * A + 5):
            if s * (10 * B - 5) <= 1000 * b < s * (10 * B + 5):
                ans = min(ans, s)
print(ans)
0