結果
問題 | No.687 E869120 and Constructing Array 1 |
ユーザー | cowgirl |
提出日時 | 2018-09-15 14:50:06 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 225 bytes |
コンパイル時間 | 1,405 ms |
コンパイル使用メモリ | 163,680 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-25 01:32:42 |
合計ジャッジ時間 | 3,127 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
コンパイルメッセージ
main.cpp: 関数 ‘int main()’ 内: main.cpp:6:11: 警告: ‘n’ is used uninitialized [-Wuninitialized] 6 | b = n - a; | ~~^~~~~~~ main.cpp:4:9: 備考: ‘n’ はここで定義されています 4 | int n,b; | ^
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int n,b; for(int a=1; a <= 10; a++){ b = n - a; if(n == a + b){ cout << a << " " << b << endl; break; } } }