結果

問題 No.1027 U+1F4A0
ユーザー chacoder1
提出日時 2021-06-21 23:47:07
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 330 bytes
コンパイル時間 1,799 ms
コンパイル使用メモリ 192,884 KB
最終ジャッジ日時 2025-01-22 11:03:32
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)
#define int long long

signed main(){
  int d1,d2;
  cin>>d1>>d2;
  int ans=0;
  if(d1==d2) ans=4;
  if(d2==d1*2) ans=4;
  if(d1*2<d2) ans=0;
  if(d1>d2) ans=0;
  if(d1*2>d2 && d2>d1) ans=8;
  cout<<ans<<endl;
  return 0;
}
0