結果
問題 | No.1714 Tag on Grid |
ユーザー |
|
提出日時 | 2021-10-28 17:09:51 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 565 bytes |
コンパイル時間 | 1,984 ms |
コンパイル使用メモリ | 191,948 KB |
最終ジャッジ日時 | 2025-01-25 08:02:10 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
#include<bits/stdc++.h>using namespace std;using ll = long long int;using ull = unsigned long long int;using ld = long double;constexpr ll MAX = 2000000000000000000;constexpr ld PI = 3.14159265358979;constexpr ll MOD = 0;//2024948111;ld dotorad(ld K){return PI * K / 180.0;}ld radtodo(ld K){return K * 180.0 / PI;}mt19937 mt;void randinit(){srand((unsigned)time(NULL));mt = mt19937(rand());}int main(){ll H,W,a,b,c,d;cin >> H >> W >> a >> b >> c >> d;if((a + b) % 2 == (c + d) % 2) cout << "No" << endl;else cout << "Yes" << endl;}