結果
問題 | No.338 アンケート機能 |
ユーザー |
![]() |
提出日時 | 2024-12-06 22:02:27 |
言語 | PyPy3 (7.3.15) |
結果 |
OLE
|
実行時間 | - |
コード長 | 250 bytes |
コンパイル時間 | 327 ms |
コンパイル使用メモリ | 82,304 KB |
最終ジャッジ日時 | 2024-12-06 22:03:16 |
合計ジャッジ時間 | 47,786 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | OLE * 3 |
other | OLE * 28 |
ソースコード
A,B=map(int,input().split())ans=10**10for a in range(1000):for b in range(1000):if a==b==0:continueprint(100*a/(a+b),((1000*a)//(a+b)+5)//10)if ((1000*a)//(a+b)+5)//10==A and ((1000*b)//(a+b)+5)//10==B:ans=min(ans,a+b)print(ans)