結果

問題 No.926 休日の平均
ユーザー miraissanmiraissan
提出日時 2023-11-30 13:15:09
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 180 bytes
コンパイル時間 1,574 ms
コンパイル使用メモリ 166,240 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2023-11-30 13:15:13
合計ジャッジ時間 2,453 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 2 ms
6,676 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 AC 2 ms
6,676 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 2 ms
6,676 KB
testcase_23 AC 2 ms
6,676 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:7:14: warning: 'A' is used uninitialized [-Wuninitialized]
    7 |          int X = A*B;
      |              ^
main.cpp:6:13: note: 'A' was declared here
    6 |         int A,B,C;
      |             ^
main.cpp:7:14: warning: 'B' is used uninitialized [-Wuninitialized]
    7 |          int X = A*B;
      |              ^
main.cpp:6:15: note: 'B' was declared here
    6 |         int A,B,C;
      |               ^
main.cpp:8:25: warning: 'C' is used uninitialized [-Wuninitialized]
    8 |          double num = X / C;
      |                       ~~^~~
main.cpp:6:17: note: 'C' was declared here
    6 |         int A,B,C;
      |                 ^

ソースコード

diff #

using namespace std;
#include <bits/stdc++.h>
#include <iomanip>

int main(){
	int A,B,C;
	 int X = A*B;
	 double num = X / C;
	 cout << fixed << setprecision(20) << num << endl;
}
0