結果
問題 | No.780 オフ会 |
ユーザー |
![]() |
提出日時 | 2019-01-11 21:27:30 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 739 bytes |
コンパイル時間 | 2,087 ms |
コンパイル使用メモリ | 161,964 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-30 13:18:08 |
合計ジャッジ時間 | 2,998 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include <bits/stdc++.h>using namespace std;static const int INF = 1e9 + 7;template<typename T>using Vec = vector<T>;template<typename T, typename T2>using P = pair<T, T2>;template<typename... Args>using Tup = tuple<Args...>;template<typename T>using qp = priority_queue<T, Vec<T>, greater<T> >;template<typename T>using pq = priority_queue<T>;using llong = long long;using ullong = unsigned long long;using uint = unsigned int;template<typename T>T gcd(T x, T y){return y ? gcd(y, x % y) : x;}void hawawa(){int a, b;cin >> a >> b;if (a < b) {cout << "YES\n";}else {cout << "NO\n";}cout << abs(a + 1 - b) << "\n";}int main(){ios::sync_with_stdio(false);cin.tie(0);hawawa();}