結果
| 問題 |
No.338 アンケート機能
|
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2023-12-02 00:43:58 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 2,000 ms |
| コード長 | 277 bytes |
| コンパイル時間 | 258 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 60,288 KB |
| 最終ジャッジ日時 | 2024-09-26 16:07:25 |
| 合計ジャッジ時間 | 2,896 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
from itertools import count
A, B = map(int, input().split())
for i in count(1):
for a in range(i+1):
b = i - a
x = int(100 * a / (a + b) + 0.5)
y = int(100 * b / (a + b) + 0.5)
if x == A and y == B:
print(i)
exit()
norioc