結果

問題 No.780 オフ会
ユーザー leaf_1415
提出日時 2019-01-11 21:29:38
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 204 bytes
コンパイル時間 391 ms
コンパイル使用メモリ 55,384 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-30 03:15:58
合計ジャッジ時間 1,151 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int A, B;

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