結果

問題 No.780 オフ会
ユーザー mmn15277198
提出日時 2020-06-02 21:56:06
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 328 bytes
コンパイル時間 857 ms
コンパイル使用メモリ 77,364 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-24 14:05:29
合計ジャッジ時間 1,848 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <math.h>
#include <iomanip>

using namespace std;

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