結果
| 問題 |
No.338 アンケート機能
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-02 11:31:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 63 ms / 2,000 ms |
| コード長 | 537 bytes |
| コンパイル時間 | 169 ms |
| コンパイル使用メモリ | 82,408 KB |
| 実行使用メモリ | 65,772 KB |
| 最終ジャッジ日時 | 2024-07-16 05:28:43 |
| 合計ジャッジ時間 | 3,020 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
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)