結果
問題 | No.780 オフ会 |
ユーザー | k_kiri |
提出日時 | 2019-01-22 22:10:26 |
言語 | C++14 (gcc 13.2.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 1,440 ms |
コンパイル使用メモリ | 163,076 KB |
実行使用メモリ | 4,356 KB |
最終ジャッジ日時 | 2023-10-14 09:19:11 |
合計ジャッジ時間 | 2,459 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | AC | 2 ms
4,348 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
コンパイルメッセージ
main.cpp: 関数 ‘int main()’ 内: main.cpp:10:9: 警告: ‘a’ is used uninitialized [-Wuninitialized] 10 | if (a - 1 == b) { | ~~^~~ main.cpp:9:7: 備考: ‘a’ はここで定義されています 9 | int a, b; | ^ main.cpp:10:3: 警告: ‘b’ is used uninitialized [-Wuninitialized] 10 | if (a - 1 == b) { | ^~ main.cpp:9:10: 備考: ‘b’ はここで定義されています 9 | int a, b; | ^
ソースコード
#include <bits/stdc++.h> typedef long long ll; const int INF = 1e9; const ll LINF = 1e18; const int MOD = 1e9+7; using namespace std; int main() { int a, b; if (a - 1 == b) { cout << "YES" << endl; } else { cout << "NO" << endl; cout << abs(a + 1 - b) << endl; } }