結果
| 問題 | No.338 アンケート機能 |
| コンテスト | |
| ユーザー |
r_ishida
|
| 提出日時 | 2025-08-02 08:20:34 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 715 bytes |
| コンパイル時間 | 341 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,368 KB |
| 最終ジャッジ日時 | 2025-08-02 08:20:37 |
| 合計ジャッジ時間 | 3,040 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
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, number2):
number *= 10
number = number // number2 // 10 * 10 + number // number2 % 10 // 5 * 10
number //= 10
return number
a, b = MI()
ans = 200
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)
r_ishida