結果
| 問題 |
No.780 オフ会
|
| コンテスト | |
| ユーザー |
Athena2911
|
| 提出日時 | 2019-03-27 20:57:32 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 269 bytes |
| コンパイル時間 | 475 ms |
| コンパイル使用メモリ | 56,664 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-11 06:13:15 |
| 合計ジャッジ時間 | 1,293 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(void){
int a,b,ans;
cin>>a>>b;
a=a+1;
ans=abs(a-b);
if(ans==0 || a<=b){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
cout<<ans<<endl;
}
Athena2911