結果
問題 |
No.338 アンケート機能
|
ユーザー |
![]() |
提出日時 | 2016-02-18 14:08:45 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 332 bytes |
コンパイル時間 | 1,228 ms |
コンパイル使用メモリ | 159,204 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 11:56:39 |
合計ジャッジ時間 | 2,141 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 WA * 9 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int a, b; cin >> a >> b; int ans = 10000000; for(int i = 0; i < 101; i++){ for(int j = 0; j < 101; j++){ if(a == round(100.0 * i / (i + j)) and b == round(100.0 * j / (i + j))){ ans = min(ans, i + j); } } } cout << ans << endl; return 0; }