結果

問題 No.780 オフ会
ユーザー kojirasedk
提出日時 2019-03-05 05:25:44
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 254 bytes
コンパイル時間 1,334 ms
コンパイル使用メモリ 159,244 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-23 14:08:24
合計ジャッジ時間 2,074 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main() {
    int A,B;
    cin >> A >> B;
    if(A<B){
        cout << "YES" <<endl;
        cout << B-A+1 << endl;
        }

    else{
        cout << "NO" << endl;
        cout << A-B+1 << endl;
    }
}
0