結果
問題 | No.1714 Tag on Grid |
ユーザー |
![]() |
提出日時 | 2021-10-23 18:30:10 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 692 bytes |
コンパイル時間 | 960 ms |
コンパイル使用メモリ | 93,356 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-25 09:54:50 |
合計ジャッジ時間 | 1,675 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
/* -*- coding: utf-8 -*- * * 1714.cc: No.1714 Tag on Grid - yukicoder */ #include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<iostream> #include<string> #include<vector> #include<map> #include<set> #include<stack> #include<list> #include<queue> #include<deque> #include<algorithm> #include<numeric> #include<utility> #include<complex> #include<functional> using namespace std; /* constant */ /* typedef */ /* global variables */ /* subroutines */ /* main */ int main() { int h, w, y0, x0, y1, x1; scanf("%d%d%d%d%d%d", &h, &w, &y0, &x0, &y1, &x1); int d = (abs(y1 - y0) + abs(x1 - x0)) & 1; if (d) puts("Yes"); else puts("No"); return 0; }