結果
| 問題 |
No.1027 U+1F4A0
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-17 21:26:28 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 490 bytes |
| コンパイル時間 | 1,071 ms |
| コンパイル使用メモリ | 94,796 KB |
| 最終ジャッジ日時 | 2025-01-09 19:44:16 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <math.h>
#include <set>
#include <map>
#include <queue>
#include <numeric>
#include <deque>
using namespace std;
typedef long long int ll;
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
int a,b; cin >> a >> b;
if(2*b==4*a){
printf("4\n");
}
else if(2*b<4*a&&b>a){
printf("8\n");
}
else if(b==a){
printf("4\n");
}else{
printf("0\n");
}
}