結果
| 問題 | No.338 アンケート機能 |
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-01-29 17:49:31 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 501 bytes |
| 記録 | |
| コンパイル時間 | 376 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-09-16 01:45:21 |
| 合計ジャッジ時間 | 2,244 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 9 |
ソースコード
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(101):
for b in range(101):
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