結果
| 問題 | No.338 アンケート機能 |
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2023-01-14 12:14:16 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 431 bytes |
| 記録 | |
| コンパイル時間 | 178 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 100,864 KB |
| 最終ジャッジ日時 | 2026-05-31 12:03:38 |
| 合計ジャッジ時間 | 6,986 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 -- * 2 |
| other | -- * 28 |
ソースコード
from decimal import *
A, B = map(int, input().split())
ans = 10**18
for a in range(1005):
for b in range(1005):
if a + b == 0:
continue
x = Decimal(100 * a)/(a + b)
x = x.quantize(Decimal('0'), rounding=ROUND_HALF_UP)
y = Decimal(100 * b)/(a + b)
y = y.quantize(Decimal('0'), rounding=ROUND_HALF_UP)
if x == A and y == B:
ans = min(ans, a + b)
print(ans)
rlangevin