結果
| 問題 |
No.780 オフ会
|
| コンテスト | |
| ユーザー |
appren
|
| 提出日時 | 2019-06-22 12:48:24 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 227 bytes |
| コンパイル時間 | 1,158 ms |
| コンパイル使用メモリ | 158,328 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-26 08:44:35 |
| 合計ジャッジ時間 | 2,121 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 11 |
ソースコード
#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<<0<<endl;
}
appren