結果
問題 |
No.780 オフ会
|
ユーザー |
![]() |
提出日時 | 2021-11-17 21:26:02 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 241 bytes |
コンパイル時間 | 1,425 ms |
コンパイル使用メモリ | 158,532 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-24 03:43:59 |
合計ジャッジ時間 | 2,460 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 WA * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if (a+1 <= b) { puts("YES"); puts("0"); } else { puts("NO"); cout << a+1-b << endl; } return 0; }