結果
| 問題 |
No.1027 U+1F4A0
|
| コンテスト | |
| ユーザー |
ysystem7
|
| 提出日時 | 2020-04-17 22:32:52 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 1,034 bytes |
| コンパイル時間 | 3,148 ms |
| コンパイル使用メモリ | 208,956 KB |
| 最終ジャッジ日時 | 2025-01-09 20:20:16 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
#define cinf(n,x) for(int i=0;i<(n);i++)cin>>x[i];
#define ft first
#define sc second
#define pb push_back
#define lb lower_bound
#define ub upper_bound
#define all(v) (v).begin(),(v).end()
#define mod 1000000007
#define FS fixed<<setprecision(15)
using namespace std;
typedef long long ll;
template<class T> using V=vector<T>;
using Graph = vector<vector<int>>;
using P=pair<ll,ll>;
typedef unsigned long long ull;
typedef long double ldouble;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
const ll INF=1e18;
int main(){
cin.tie(0);ios::sync_with_stdio(false);
V<int> d(2);
rep(i,2) cin>>d[i];
if(d[1]>2*d[0]) cout<<0<<endl;
else if(d[1]==2*d[0]) cout<<4<<endl;
else if(d[1]>d[0]) cout<<8<<endl;
else if(d[1]==d[0]) cout<<4<<endl;
else cout<<0<<endl;
}
ysystem7