結果
問題 | No.338 アンケート機能 |
ユーザー |
|
提出日時 | 2024-12-28 09:56:09 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 98 ms / 2,000 ms |
コード長 | 303 bytes |
コンパイル時間 | 402 ms |
コンパイル使用メモリ | 82,372 KB |
実行使用メモリ | 70,144 KB |
最終ジャッジ日時 | 2024-12-28 09:56:14 |
合計ジャッジ時間 | 4,240 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
def round(x): x = int(10*x) if x%10>=5: x += 10 return x//10 A,B = map(int,input().split()) ans = 5000 for a in range(1000+1): for b in range(1000+1): if a+b==0:continue if round(100*a/(a+b))==A and round(100*b/(a+b))==B: ans = min(ans,a+b) print(ans)