結果

問題 No.773 コンテスト
ユーザー leaf+leaf+
提出日時 2019-04-13 01:32:04
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 230 bytes
コンパイル時間 370 ms
コンパイル使用メモリ 51,096 KB
実行使用メモリ 4,476 KB
最終ジャッジ日時 2023-10-13 09:26:25
合計ジャッジ時間 3,272 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
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 AC 2 ms
4,352 KB
testcase_15 WA -
testcase_16 AC 2 ms
4,352 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 2 ms
4,352 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:12: warning: ‘a’ is used uninitialized in this function [-Wuninitialized]
     for (i = a; i <= b; i++) {
          ~~^~~
main.cpp:5:19: warning: ‘b’ is used uninitialized in this function [-Wuninitialized]
     for (i = a; i <= b; i++) {
                 ~~^~~~

ソースコード

diff #

#include <iostream>

int main() {
    int a, b, i, n = 3;
    for (i = a; i <= b; i++) {
        if (i == 23) n -= 1;
        if (i == 24) n -= 1;
        if (i == 25) n -= 1;
    }
    std::cout << n << std::endl;
    return 0;
}
0