結果
| 問題 | No.85 TVザッピング(1) |
| コンテスト | |
| ユーザー |
沙耶花
|
| 提出日時 | 2021-10-22 19:55:24 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 414 bytes |
| 記録 | |
| コンパイル時間 | 2,936 ms |
| コンパイル使用メモリ | 272,804 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-23 10:23:40 |
| 合計ジャッジ時間 | 4,024 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
沙耶花