結果

問題 No.338 アンケート機能
ユーザー soupesuteakasoupesuteaka
提出日時 2016-03-07 16:03:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 425 bytes
コンパイル時間 256 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-25 15:56:27
合計ジャッジ時間 2,545 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
10,752 KB
testcase_01 AC 46 ms
10,752 KB
testcase_02 AC 47 ms
10,752 KB
testcase_03 AC 48 ms
10,752 KB
testcase_04 AC 47 ms
10,880 KB
testcase_05 AC 47 ms
10,752 KB
testcase_06 AC 47 ms
10,880 KB
testcase_07 AC 48 ms
10,752 KB
testcase_08 AC 48 ms
10,880 KB
testcase_09 AC 47 ms
10,752 KB
testcase_10 AC 47 ms
10,752 KB
testcase_11 AC 46 ms
10,752 KB
testcase_12 AC 47 ms
10,752 KB
testcase_13 AC 46 ms
10,880 KB
testcase_14 AC 49 ms
10,880 KB
testcase_15 AC 47 ms
10,752 KB
testcase_16 AC 47 ms
10,880 KB
testcase_17 AC 46 ms
10,752 KB
testcase_18 AC 47 ms
10,880 KB
testcase_19 AC 45 ms
10,880 KB
testcase_20 AC 47 ms
10,880 KB
testcase_21 AC 47 ms
10,752 KB
testcase_22 AC 46 ms
10,880 KB
testcase_23 AC 47 ms
10,880 KB
testcase_24 AC 48 ms
10,752 KB
testcase_25 AC 45 ms
10,752 KB
testcase_26 AC 47 ms
10,752 KB
testcase_27 AC 47 ms
10,752 KB
testcase_28 AC 47 ms
10,880 KB
testcase_29 AC 47 ms
10,880 KB
testcase_30 AC 47 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: UTF-8

import sys
from math import log
from collections import deque
from functools import reduce

### defs ###

### main ###
A,B = map(int,sys.stdin.readline().split())
if (A > B):
	A = A ^ B
	B = A ^ B
	A = A ^ B
ans = 400
for a in range(0,200):
	for b in range(a,200):
		if(b==0):
			continue
		tmpa = int(100*a/(a+b)+0.5)
		tmpb = int(100*b/(a+b)+0.5)
		if (tmpa==A and tmpb==B):
			ans = min(ans,a+b)
print(ans)
0