結果
問題 |
No.780 オフ会
|
ユーザー |
![]() |
提出日時 | 2020-06-02 21:58:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 672 ms |
コンパイル使用メモリ | 77,360 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-24 14:05:41 |
合計ジャッジ時間 | 1,475 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include <iostream> #include <string> #include <algorithm> #include <vector> #include <math.h> #include <iomanip> using namespace std; int main(){ int a,b; cin >> a >> b; a++; int ans=a-b; if(ans<=0){ cout << "YES" << endl << abs(ans) << endl; }else{ cout << "NO" << endl << abs(ans) << endl; } return 0; }