結果
問題 | No.338 アンケート機能 |
ユーザー |
|
提出日時 | 2016-01-29 23:31:39 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 355 bytes |
コンパイル時間 | 145 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-08 02:53:49 |
合計ジャッジ時間 | 2,203 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
def solve(A, B):for total in range(1, 1000):for a in range(0, total + 1):b = total - aAA = int(100*a/total+0.5)BB = int(100*b/total+0.5)if AA == A and BB == B:return totalraise RuntimeError('something is wrong')A, B = map(int, input().split())print(solve(A, B))