結果
| 問題 | 
                            No.863 計算量
                             | 
                    
| コンテスト | |
| ユーザー | 
                             noisy_noimin
                         | 
                    
| 提出日時 | 2019-08-16 21:35:34 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 760 bytes | 
| コンパイル時間 | 871 ms | 
| コンパイル使用メモリ | 95,064 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-22 15:15:40 | 
| 合計ジャッジ時間 | 1,407 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 13 | 
ソースコード
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cassert>
#include <cstdint>
#include <iostream>
#include <iomanip>
#include <string>
#include <stack>
#include <queue>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <bitset>
using namespace std;
using ll =  long long;
using Pll = pair<ll, ll>;
using Pii = pair<int, int>;
constexpr ll MOD = 1000000007;
constexpr long double EPS = 1e-10;
constexpr int dyx[4][2] = {
    { 0, 1}, {-1, 0}, {0,-1}, {1, 0}
};
int main() {
    std::ios::sync_with_stdio(false); cin.tie(0);
    double a, b;
    cin >> a >> b;
    if(abs(40*a - b) < abs(1600*a - b)) {
        cout << 1 << endl;
    } else {
        cout << 2 << endl;
    }
}
            
            
            
        
            
noisy_noimin