結果
| 問題 |
No.780 オフ会
|
| コンテスト | |
| ユーザー |
appren
|
| 提出日時 | 2019-06-22 12:50:55 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 231 bytes |
| コンパイル時間 | 1,397 ms |
| コンパイル使用メモリ | 157,504 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-26 08:44:41 |
| 合計ジャッジ時間 | 1,983 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a-b==0)
cout<<"NO"<<endl<<1<<endl;
else if(a-b>0)
cout<<"NO"<<endl<<a-b+1<<endl;
else
cout<<"YES"<<endl<<b-a-1<<endl;
}
appren