結果
| 問題 |
No.780 オフ会
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-12 19:24:22 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 242 bytes |
| コンパイル時間 | 480 ms |
| コンパイル使用メモリ | 64,064 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-17 09:05:01 |
| 合計ジャッジ時間 | 1,459 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 11 |
ソースコード
#include <iostream>
int main() {
int A, B;
std::cin >> A >> B;
if (A + 1 <= B) {
std::cout << "YES" << std::endl;
} else {
std::cout << "NO" << std::endl;
}
std::cout << std::max(0, A + 1 - B) << std::endl;
return 0;
}