結果
| 問題 | No.338 アンケート機能 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-27 09:10:35 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 303 ms / 2,000 ms |
| コード長 | 350 bytes |
| 記録 | |
| コンパイル時間 | 457 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-03-26 15:57:30 |
| 合計ジャッジ時間 | 8,421 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
import itertools
def round_check(N, div, round):
return div * (2 * round - 1) <= 2 * N < div * (2 * round + 1)
A, B = map(int, input().split())
it = itertools.product(range(500), repeat=2)
next(it)
ans = 2000
for a, b in it:
if round_check(100 * a, a + b, A) and round_check(100 * b, a + b, B):
ans = min(ans, a + b)
print(ans)