結果
問題 |
No.780 オフ会
|
ユーザー |
|
提出日時 | 2019-03-18 20:39:19 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 375 bytes |
コンパイル時間 | 2,020 ms |
コンパイル使用メモリ | 162,864 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-30 13:46:24 |
合計ジャッジ時間 | 2,919 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) #define ll long long #define endl '\n' using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int a, b; cin >> a >> b; if (a < b) { cout << "YES" << endl; } else { cout << "NO" << endl; } cout << abs(a + 1 - b) << endl; return 0; }