結果
| 問題 | No.780 オフ会 | 
| コンテスト | |
| ユーザー |  SSRS | 
| 提出日時 | 2020-08-04 11:18:12 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 206 bytes | 
| コンパイル時間 | 620 ms | 
| コンパイル使用メモリ | 63,208 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-09-14 09:54:20 | 
| 合計ジャッジ時間 | 1,437 ms | 
| ジャッジサーバーID (参考情報) | judge6 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 WA * 11 | 
ソースコード
#include <iostream>
using namespace std;
int main(){
	int A, B;
	cin >> A >> B;
	if (A < B){
		cout << "YES" << endl;
		cout << 0 << endl;
	} else {
		cout << "NO" << endl;
		cout << A - B + 1 << endl;
	}
}
            
            
            
        