結果
問題 | No.780 オフ会 |
ユーザー |
![]() |
提出日時 | 2019-01-11 21:27:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 582 bytes |
コンパイル時間 | 807 ms |
コンパイル使用メモリ | 98,436 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-30 03:06:32 |
合計ジャッジ時間 | 1,613 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include<iostream>#include<vector>#include<algorithm>#include<functional>#include<queue>#include<stack>#include<set>#include<map>#include<unordered_map>#include<climits>#include<cstdlib>#include<cmath>#include<string>#include<iomanip>#include<bitset>using namespace std;#define ll long long intll const MOD = 1000000007;ll const INF = (long long int)1 << 61;int main(){cin.tie(0);ios::sync_with_stdio(false);ll m,f;cin >> m >> f;cout << (m+1 <= f ? "YES" : "NO") << endl;cout << abs(f - (m+1)) << endl;return 0;}