結果
| 問題 |
No.338 アンケート機能
|
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-01-29 17:51:11 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 65 ms / 2,000 ms |
| コード長 | 501 bytes |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-09-16 01:45:29 |
| 合計ジャッジ時間 | 2,362 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
A,B = map(int,read().split())
def to_precent(num,den):
num *= 100
num = num + num + den
den += den
return num // den
answer = 1000
for a in range(301):
for b in range(301):
if a+b == 0:
continue
if a+b >= answer:
break
if A == to_precent(a,a+b) and B == to_precent(b,a+b):
answer = a + b
print(answer)
maspy