結果

問題 No.338 アンケート機能
コンテスト
ユーザー ああいい
提出日時 2022-03-02 11:28:08
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 537 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 409 ms
コンパイル使用メモリ 85,800 KB
実行使用メモリ 65,152 KB
最終ジャッジ日時 2026-03-30 19:33:22
合計ジャッジ時間 2,996 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 28
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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