結果
| 問題 | No.338 アンケート機能 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2016-02-19 21:54:20 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 926 bytes | 
| コンパイル時間 | 644 ms | 
| コンパイル使用メモリ | 83,940 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-08 03:03:41 | 
| 合計ジャッジ時間 | 1,626 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 28 | 
ソースコード
#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <numeric>
#include <functional>
#include <cmath>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <sstream>
#include <string>
#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
#define var auto
#define mod 1000000007
#define inf 2147483647
#define mp make_pair
#define pb push_back
typedef long long ll;
// end of template
int main() {
    using namespace std;
    cin.tie(0);
    ios::sync_with_stdio(0);
    // source code
    int A, B;
    cin >> A >> B;
    repd(i, 1, 201){
        rep(j, i + 1){
            double a = (double)j * 100.0 / (double)i;
            double b = (double)(i - j) * 100.0 / (double)i;
            if ((int)(a + 0.5) == A && (int)(b + 0.5) == B) {
                cout << i << endl;
                return 0;
            }
        }
    }
    
    return 0;
}
            
            
            
        