結果

問題 No.780 オフ会
ユーザー water
提出日時 2020-03-05 16:17:18
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 202 bytes
コンパイル時間 1,502 ms
コンパイル使用メモリ 164,548 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-14 01:18:57
合計ジャッジ時間 2,423 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define INF 990000000
//20
using namespace std;

int main() {

int a,b;

cin>>a>>b;

if(b-a>=1){
cout << "YES\n";
cout << 0;
}else{
cout << "NO\n";
cout << a-b+1;

}





}




0