結果
問題 |
No.780 オフ会
|
ユーザー |
![]() |
提出日時 | 2019-03-27 20:52:06 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 261 bytes |
コンパイル時間 | 447 ms |
コンパイル使用メモリ | 56,440 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 06:13:14 |
合計ジャッジ時間 | 1,228 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 WA * 11 |
ソースコード
#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){ cout<<"YES"<<endl; }else{ cout<<"NO"<<endl; } cout<<ans<<endl; }