結果
| 問題 |
No.85 TVザッピング(1)
|
| コンテスト | |
| ユーザー |
沙耶花
|
| 提出日時 | 2021-10-22 19:55:24 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 414 bytes |
| コンパイル時間 | 4,739 ms |
| コンパイル使用メモリ | 249,372 KB |
| 最終ジャッジ日時 | 2025-01-25 02:56:52 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include <stdio.h>
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
using mint = modint1000000007;
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf 100000000000000000
int main(){
int n,m,c;
cin>>n>>m>>c;
bool f;
if((n==1||m==1)&&n*m>=3){
f = false;
}
else{
if(n*m%2==0)f = true;
else f = false;
}
cout<<(f?"YES":"NO")<<endl;
return 0;
}
沙耶花