結果
問題 |
No.870 無敵囲い
|
ユーザー |
|
提出日時 | 2019-08-30 22:33:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 512 bytes |
コンパイル時間 | 504 ms |
コンパイル使用メモリ | 63,744 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-29 06:20:54 |
合計ジャッジ時間 | 1,053 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 WA * 2 |
ソースコード
#include <iostream> int a[100][100]; int main() { int N; std::cin >> N; for (int i = 0; i <= 9; ++i) { for (int j = 0; j <= 9; ++j) { a[i][j] = 0; } } a[2][8] = 1; a[3][9] = 2; a[7][9] = 3; for (int i = 0; i < N; ++i) { int x0, y0, x1, y1; std::cin >> x0 >> y0 >> x1 >> y1; a[x1][y1] = a[x0][y0]; a[x0][y0] = 0; } if ((a[5][8] = 1) && (a[4][8] == 2) && (a[6][8] == 3)) { std::cout << "YES" << std::endl; } else { std::cout << "NO" << std::endl; } }