結果
問題 |
No.780 オフ会
|
ユーザー |
![]() |
提出日時 | 2019-03-30 12:50:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 750 ms |
コンパイル使用メモリ | 62,592 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-08 19:03:46 |
合計ジャッジ時間 | 1,630 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include <iostream> int main() { int a, b; std::cin >> a >> b; int w = a - b; if (w < 0) { w *= -1; w -= 1; std::cout << "YES" << std::endl << w << std::endl; } else if (w >= 0) { std::cout << "NO" << std::endl << w + 1 << std::endl; } }