結果
| 問題 |
No.85 TVザッピング(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-28 00:20:30 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 524 bytes |
| コンパイル時間 | 846 ms |
| コンパイル使用メモリ | 80,360 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-15 04:58:46 |
| 合計ジャッジ時間 | 1,808 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 16 WA * 11 |
ソースコード
#define _USE_MATH_DEFINES
#include<stdio.h>
#include<string>
#include<iostream>
#include<cctype>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include <algorithm>
#include<math.h>
#include<set>
#include<map>
#include<iomanip>
//#include<bits/stdc++.h>
using namespace std;
int main() {
long a, b, c;
cin >> a >> b >> c;
if (a > b)swap(a, b);
if ((a % 2 == 0&&b%2) || (a%2&&b % 2 == 0))cout << "YES" << endl;
else if(a*2==b)cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}