結果
問題 | No.338 アンケート機能 |
ユーザー |
|
提出日時 | 2016-01-29 22:31:17 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 431 ms / 2,000 ms |
コード長 | 360 bytes |
コンパイル時間 | 372 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 8,320 KB |
最終ジャッジ日時 | 2024-11-08 02:47:17 |
合計ジャッジ時間 | 15,270 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
# -*- coding: utf-8 -*- import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll A, B = map(int, raw_input().split()) ans = 1e10 for a in xrange(1000): for b in xrange(1, 1000) if a == 0 else xrange(1000): if round(100.0*a/(a + b), 0) == A and round(100.0*b/(a + b), 0) == B: ans = min(ans, a + b) print ans