結果
| 問題 | No.780 オフ会 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-06-03 15:57:47 | 
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 131 bytes | 
| コンパイル時間 | 685 ms | 
| コンパイル使用メモリ | 77,900 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-21 02:19:14 | 
| 合計ジャッジ時間 | 1,553 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 23 | 
ソースコード
#include<iostream>
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	cout<<(a<b?"YES":"NO")<<endl;
	cout<<abs(a+1-b)<<endl;
}
            
            
            
        