結果
問題 | No.338 アンケート機能 |
ユーザー |
|
提出日時 | 2016-03-06 08:29:56 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 17 ms / 2,000 ms |
コード長 | 430 bytes |
コンパイル時間 | 135 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2024-11-08 03:04:32 |
合計ジャッジ時間 | 1,479 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
#!/usr/bin/env python #coding:utf8 def read(): return map(int, raw_input().split()) def work((A, B)): total = 1 while 1: for a in range(total + 1): b = total - a if int ((100.0 * a) / (a + b) + 0.5) == A and \ int ((100.0 * b) / (a + b) + 0.5) == B: print total return total += 1 if __name__ == "__main__": work(read())