結果
| 問題 |
No.2621 Fee Schedule
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-14 22:04:13 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 164 bytes |
| コンパイル時間 | 1,754 ms |
| コンパイル使用メモリ | 166,104 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-09-28 19:02:33 |
| 合計ジャッジ時間 | 1,935 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 9 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:6:15: warning: 'A' is used uninitialized [-Wuninitialized]
6 | if (A * C > B) {
| ~~^~~
main.cpp:5:13: note: 'A' was declared here
5 | int A, B, C;
| ^
main.cpp:6:15: warning: 'C' is used uninitialized [-Wuninitialized]
6 | if (A * C > B) {
| ~~^~~
main.cpp:5:19: note: 'C' was declared here
5 | int A, B, C;
| ^
main.cpp:6:9: warning: 'B' is used uninitialized [-Wuninitialized]
6 | if (A * C > B) {
| ^~
main.cpp:5:16: note: 'B' was declared here
5 | int A, B, C;
| ^
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
if (A * C > B) {
cout << B << endl;
}
else {
cout << A * C << endl;
}
return 0;
}