結果

問題 No.338 アンケート機能
ユーザー FromBooskaFromBooska
提出日時 2023-03-10 11:44:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 427 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 81,480 KB
実行使用メモリ 59,992 KB
最終ジャッジ日時 2023-10-18 06:37:58
合計ジャッジ時間 3,196 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,356 KB
testcase_01 AC 42 ms
59,568 KB
testcase_02 AC 38 ms
53,356 KB
testcase_03 AC 38 ms
53,356 KB
testcase_04 AC 38 ms
53,356 KB
testcase_05 AC 43 ms
59,992 KB
testcase_06 WA -
testcase_07 AC 42 ms
59,568 KB
testcase_08 AC 38 ms
53,356 KB
testcase_09 AC 43 ms
59,568 KB
testcase_10 AC 38 ms
53,356 KB
testcase_11 AC 38 ms
53,356 KB
testcase_12 AC 39 ms
53,356 KB
testcase_13 AC 38 ms
53,356 KB
testcase_14 AC 39 ms
53,356 KB
testcase_15 AC 38 ms
53,356 KB
testcase_16 AC 38 ms
53,356 KB
testcase_17 AC 38 ms
53,356 KB
testcase_18 AC 38 ms
53,356 KB
testcase_19 AC 38 ms
53,356 KB
testcase_20 AC 44 ms
59,572 KB
testcase_21 AC 44 ms
59,992 KB
testcase_22 AC 44 ms
59,572 KB
testcase_23 AC 38 ms
53,356 KB
testcase_24 AC 38 ms
53,356 KB
testcase_25 AC 44 ms
59,572 KB
testcase_26 AC 44 ms
59,572 KB
testcase_27 AC 45 ms
59,572 KB
testcase_28 AC 39 ms
53,356 KB
testcase_29 AC 39 ms
53,356 KB
testcase_30 AC 38 ms
53,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# 苦手なタイプかなも
# 周期を探すのか、式変形なのか
# まず実験してみよう

A, B = map(float, input().split())
for ab in range(1, 10**4):
    for a in range(ab):
        b = ab-a
        #print(ab, a, b, round(100*a/(a+b)), round(100*b/(a+b)))
        if (A-0.5)*ab <= 100*a < (A+0.5)*ab and (B-0.5)*ab <= 100*b < (B+0.5)*ab:
            #print(ab, a, b)
            print(ab)
            exit()

0