結果

問題 No.780 オフ会
ユーザー k_kiri
提出日時 2019-01-22 22:11:04
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 302 bytes
コンパイル時間 1,643 ms
コンパイル使用メモリ 164,884 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-16 04:19:15
合計ジャッジ時間 2,274 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
typedef long long ll;
const int INF = 1e9;
const ll LINF = 1e18;
const int MOD = 1e9+7;
using namespace std;

int main() {
  int a, b;
  cin >> a >> b;
  if (a - 1 == b) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
    cout << abs(a + 1 - b) << endl;
  }
}
0