結果
| 問題 | No.780 オフ会 |
| コンテスト | |
| ユーザー |
appren
|
| 提出日時 | 2019-06-22 12:50:55 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 355µs | |
| コード長 | 231 bytes |
| 記録 | |
| コンパイル時間 | 814 ms |
| コンパイル使用メモリ | 177,948 KB |
| 実行使用メモリ | 9,868 KB |
| 最終ジャッジ日時 | 2026-10-08 05:59:37 |
| 合計ジャッジ時間 | 2,219 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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