結果

問題 No.338 アンケート機能
ユーザー convexineqconvexineq
提出日時 2021-01-14 07:42:41
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 526 ms
コンパイル使用メモリ 87,340 KB
実行使用メモリ 76,960 KB
最終ジャッジ日時 2023-08-15 12:34:40
合計ジャッジ時間 4,773 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
76,612 KB
testcase_01 AC 79 ms
76,456 KB
testcase_02 AC 80 ms
76,916 KB
testcase_03 AC 82 ms
76,808 KB
testcase_04 AC 79 ms
76,460 KB
testcase_05 AC 80 ms
76,816 KB
testcase_06 AC 80 ms
76,604 KB
testcase_07 AC 80 ms
76,172 KB
testcase_08 AC 83 ms
76,788 KB
testcase_09 AC 80 ms
76,172 KB
testcase_10 AC 85 ms
76,620 KB
testcase_11 AC 83 ms
76,812 KB
testcase_12 AC 86 ms
76,764 KB
testcase_13 AC 83 ms
76,644 KB
testcase_14 AC 85 ms
76,960 KB
testcase_15 AC 85 ms
76,876 KB
testcase_16 AC 85 ms
76,760 KB
testcase_17 AC 87 ms
76,828 KB
testcase_18 AC 82 ms
76,836 KB
testcase_19 AC 84 ms
76,756 KB
testcase_20 AC 84 ms
76,444 KB
testcase_21 AC 76 ms
76,860 KB
testcase_22 AC 86 ms
76,756 KB
testcase_23 AC 83 ms
76,852 KB
testcase_24 AC 84 ms
76,484 KB
testcase_25 AC 87 ms
76,508 KB
testcase_26 AC 83 ms
76,892 KB
testcase_27 AC 87 ms
76,904 KB
testcase_28 AC 85 ms
76,780 KB
testcase_29 AC 83 ms
76,840 KB
testcase_30 AC 87 ms
76,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int,input().split())
ans = 10**7
for x in range(300):
    for y in range(300):
        if x==y==0: continue
        if a-0.5 <= 100*x/(x+y) < a+0.5 and b-0.5 <= 100*y/(x+y) < b+0.5:
            ans = min(ans,x+y)
print(ans)
0