結果
問題 |
No.338 アンケート機能
|
ユーザー |
![]() |
提出日時 | 2025-08-02 08:09:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 615 bytes |
コンパイル時間 | 309 ms |
コンパイル使用メモリ | 12,032 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2025-08-02 08:09:45 |
合計ジャッジ時間 | 3,223 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 WA * 9 |
ソースコード
import math import sys def S(): return sys.stdin.readline().rstrip() def I(): return int(sys.stdin.readline().rstrip()) def MI(): return map(int, sys.stdin.readline().rstrip().split()) def LI(): return list(map(int, sys.stdin.readline().rstrip().split())) def LS(): return list(sys.stdin.readline().rstrip().split()) def round_int(number): return int((number * 2 + 1) // 2) a, b = MI() ans = 1000 for i in range(101): for j in range(101): if i + j == 0: continue if round_int(100*i / (i+j)) == a and round_int(100*j / (i+j)) == b: ans = min(ans, i + j) print(ans)