結果

問題 No.780 オフ会
ユーザー 37zigen
提出日時 2019-08-12 19:24:56
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 505 ms
コンパイル使用メモリ 62,464 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-17 09:05:43
合計ジャッジ時間 1,297 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

int main() {
  int A, B;
  std::cin >> A >> B;
  if (A + 1 <= B) {
    std::cout << "YES" << std::endl;
  } else {
    std::cout << "NO" << std::endl;
  }
  std::cout << std::abs(A + 1 - B) << std::endl;
  return 0;
}
0