結果
問題 | No.85 TVザッピング(1) |
ユーザー |
|
提出日時 | 2016-12-28 00:23:38 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 582 bytes |
コンパイル時間 | 923 ms |
コンパイル使用メモリ | 80,728 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-15 04:59:56 |
合計ジャッジ時間 | 1,591 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 21 WA * 6 |
ソースコード
#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&&b>1) || (a%2&&a>1&&b % 2 == 0))cout << "YES" << endl;else if(a*2==b)cout << "YES" << endl;else if (a == b&&a == 1)cout << "YES" << endl;else cout << "NO" << endl;return 0;}