結果

問題 No.338 アンケート機能
ユーザー ああいいああいい
提出日時 2022-03-02 11:31:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 537 bytes
コンパイル時間 2,116 ms
コンパイル使用メモリ 86,804 KB
実行使用メモリ 76,684 KB
最終ジャッジ日時 2023-09-23 05:29:41
合計ジャッジ時間 4,667 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
76,300 KB
testcase_01 AC 86 ms
76,300 KB
testcase_02 AC 86 ms
76,472 KB
testcase_03 AC 85 ms
76,292 KB
testcase_04 AC 84 ms
76,416 KB
testcase_05 AC 84 ms
76,464 KB
testcase_06 AC 84 ms
76,364 KB
testcase_07 AC 90 ms
75,880 KB
testcase_08 AC 87 ms
76,380 KB
testcase_09 AC 91 ms
75,988 KB
testcase_10 AC 91 ms
76,336 KB
testcase_11 AC 86 ms
76,600 KB
testcase_12 AC 91 ms
76,480 KB
testcase_13 AC 87 ms
76,280 KB
testcase_14 AC 91 ms
76,416 KB
testcase_15 AC 91 ms
76,296 KB
testcase_16 AC 86 ms
76,304 KB
testcase_17 AC 90 ms
76,352 KB
testcase_18 AC 87 ms
76,484 KB
testcase_19 AC 93 ms
76,596 KB
testcase_20 AC 91 ms
76,212 KB
testcase_21 AC 84 ms
76,432 KB
testcase_22 AC 92 ms
76,684 KB
testcase_23 AC 90 ms
76,292 KB
testcase_24 AC 91 ms
76,424 KB
testcase_25 AC 91 ms
76,108 KB
testcase_26 AC 91 ms
76,444 KB
testcase_27 AC 94 ms
76,596 KB
testcase_28 AC 93 ms
76,568 KB
testcase_29 AC 87 ms
76,492 KB
testcase_30 AC 90 ms
76,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B = map(int,input().split())
a,b = 0,0
_min = 10000
for i in range(300):
    for j in range(300):
        if i == 0 and j == 0:
            continue
        t = 1000 * i // (i + j)
        s = 1000 * j // (i + j)
        if t % 10 >= 5:
            t = t // 10 + 1
        else:
            t = t // 10
        if s % 10 >= 5:
            s = s // 10 + 1
        else:
            s = s // 10
        if t == A and s == B:
            if i + j < _min:
                _min = i + j
                a = i
                b = j
print(a+b)
0