結果

問題 No.780 オフ会
ユーザー Manuel1024
提出日時 2023-08-25 23:47:57
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 536 ms
コンパイル使用メモリ 62,848 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 11:51:31
合計ジャッジ時間 1,637 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

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