結果
| 問題 | No.338 アンケート機能 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-27 09:10:35 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 150 ms / 2,000 ms |
| コード長 | 350 bytes |
| コンパイル時間 | 92 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-05 08:53:01 |
| 合計ジャッジ時間 | 5,480 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)