結果
| 問題 |
No.240 ナイト散歩
|
| コンテスト | |
| ユーザー |
kurenai3110
|
| 提出日時 | 2016-08-23 21:40:02 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 630 bytes |
| コンパイル時間 | 494 ms |
| コンパイル使用メモリ | 63,608 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-08 00:39:35 |
| 合計ジャッジ時間 | 3,672 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 12 WA * 7 RE * 11 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define ll long long
bool Ans[10][10];
int main() {
Ans[0][0] = true; Ans[1][2] = true; Ans[2][1] = true;
Ans[0][4] = true; Ans[2][4] = true; Ans[3][3] = true; Ans[4][2] = true; Ans[4][0] = true;
Ans[1][6] = true; Ans[3][6] = true; Ans[4][5] = true; Ans[4][3] = true;
Ans[3][4] = true; Ans[5][4] = true; Ans[6][3] = true; Ans[6][1] = true;
int x, y;
cin >> x >> y;
if (Ans[(int)abs(x)][(int)abs(y)]) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
}
kurenai3110