結果

問題 No.1027 U+1F4A0
ユーザー 沙耶花沙耶花
提出日時 2020-04-17 21:24:38
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 438 bytes
コンパイル時間 2,745 ms
コンパイル使用メモリ 190,972 KB
最終ジャッジ日時 2025-01-09 19:42:53
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define modulo 1000000007
#define mod(mod_x) ((((long long)mod_x)+modulo)%modulo)
#define Inf 1000000000


int main() {
	
	int D1,D2;
	cin>>D1>>D2;
	
	if(D1==D2){
		cout<<4<<endl;
		return 0;
	}
	
	if(D1>D2){
		cout<<0<<endl;
		return 0;
	}
	else{
		if(D2==D1*2){
			cout<<4<<endl;
			return 0;
		}
		else if(D2>D1*2){
			cout<<0<<endl;
		}
		else{
			cout<<8<<endl;
		}
	}
	
    return 0;
}
0