結果

問題 No.1223 I hate Golf
ユーザー rei564219rei564219
提出日時 2020-11-24 14:01:25
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 1,429 ms
コンパイル使用メモリ 163,564 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-10-01 01:01:33
合計ジャッジ時間 2,267 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 2 ms
4,380 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 1 ms
4,380 KB
testcase_14 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: 関数 ‘int main()’ 内:
main.cpp:5:11: 警告: ‘a’ is used uninitialized [-Wuninitialized]
    5 |     if(abs(a) <= b*c)
      |        ~~~^~~
main.cpp:4:9: 備考: ‘a’ はここで定義されています
    4 |     int a,b,c;
      |         ^
main.cpp:5:19: 警告: ‘b’ is used uninitialized [-Wuninitialized]
    5 |     if(abs(a) <= b*c)
      |                  ~^~
main.cpp:4:11: 備考: ‘b’ はここで定義されています
    4 |     int a,b,c;
      |           ^
main.cpp:5:19: 警告: ‘c’ is used uninitialized [-Wuninitialized]
    5 |     if(abs(a) <= b*c)
      |                  ~^~
main.cpp:4:13: 備考: ‘c’ はここで定義されています
    4 |     int a,b,c;
      |             ^

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(void){
    int a,b,c;
    if(abs(a) <= b*c)
    {
        cout<< "Yes"<< endl;
    }
    else if(abs(a) > b*c)
    {
        cout <<"No" << endl;
    }
}

0