結果
問題 | No.780 オフ会 |
ユーザー |
|
提出日時 | 2023-06-08 01:51:02 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 252 bytes |
コンパイル時間 | 1,831 ms |
コンパイル使用メモリ | 164,880 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-30 07:36:33 |
合計ジャッジ時間 | 2,859 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin >> a>>b; if(a+1<=b){ cout << "YES" << endl; cout << b-a-1 << endl; }else{ cout << "NO" << endl; cout << a+1-b << endl; } }