結果

問題 No.338 アンケート機能
ユーザー
提出日時 2016-01-29 23:04:01
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 257 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,528 KB
最終ジャッジ日時 2024-09-21 18:33:38
合計ジャッジ時間 1,643 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 RE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
def AorB():
  AAA,BBB = map(int,raw_input().split(" "))
  ans = []
  for i in range(1, 101):
    for j in range(1, 101):
      if round(100.0*i/(i+j), 0) == AAA and round(100.0*j/(i+j), 0) == BBB:
        ans.append(i+j)
  print min(ans)
AorB()
0