結果
| 問題 | 
                            No.1027 U+1F4A0
                             | 
                    
| コンテスト | |
| ユーザー | 
                             minato
                         | 
                    
| 提出日時 | 2020-04-24 19:01:17 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 1,008 bytes | 
| コンパイル時間 | 1,888 ms | 
| コンパイル使用メモリ | 173,516 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-15 02:05:14 | 
| 合計ジャッジ時間 | 2,816 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 22 | 
ソースコード
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long; 
using pii =  pair<int, int>;
using pll =  pair<long long, long long>;
#define rep(i, n) for(int i = 0; i < (n); ++i)
#define all(x) (x).begin(),(x).end()
constexpr char ln =  '\n';
constexpr long long MOD = 1000000007LL;
//constexpr long long MOD = 998244353LL;
template<class T, class U> inline bool chmax(T &a, U b) { if (a < b) { a = b; return true;} return false; }
template<class T, class U> inline bool chmin(T &a, U b) { if (a > b) { a = b; return true;} return false; }
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
int main() {
    ios::sync_with_stdio(false); cin.tie(nullptr);
    int D1,D2; cin >> D1 >> D2;
    int ans = 0;
    if (D1*2 < D2) ans = 0;
    else if (D1*2==D2) ans = 4;
    else if (D1 < D2) ans = 8;
    else if (D1==D2) ans = 4;
    else ans = 0;
    cout << ans << ln;
}
            
            
            
        
            
minato