結果
問題 |
No.240 ナイト散歩
|
ユーザー |
![]() |
提出日時 | 2016-01-11 12:54:22 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 329 bytes |
コンパイル時間 | 1,212 ms |
コンパイル使用メモリ | 158,988 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-19 18:46:16 |
合計ジャッジ時間 | 2,178 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 20 WA * 10 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ long long int x,y; cin >> x >> y; x = fabs(x); y = fabs(y); for(int i = 0; i < 3; i++){ if(x > y){ x -= 2; y -= 1; }else{ x -= 1; y -= 2; } if(x == 0 and y == 0){ cout << "YES" << endl; return 0; } } cout << "NO" << endl; return 0; }