結果

問題 No.143 豆
ユーザー CoohCooh
提出日時 2019-06-02 18:48:44
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 252 bytes
コンパイル時間 1,816 ms
コンパイル使用メモリ 55,036 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-17 23:04:49
合計ジャッジ時間 3,119 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 2 ms
4,348 KB
testcase_09 AC 2 ms
4,348 KB
testcase_10 AC 2 ms
4,348 KB
testcase_11 AC 3 ms
4,348 KB
testcase_12 AC 2 ms
4,348 KB
testcase_13 AC 2 ms
4,348 KB
testcase_14 AC 2 ms
4,348 KB
testcase_15 AC 2 ms
4,348 KB
testcase_16 AC 2 ms
4,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:17:15: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   17 |         system("pause");
      |         ~~~~~~^~~~~~~~~

ソースコード

diff #

#include<iostream>
#include<string>
using namespace std;

int main() {
	int K, N, F;
	cin >> K >> N >> F;

	int A;
	int sum = 0;
	for (int i = 0;i < F;i++) {
		cin >> A;
		sum = sum + A;
	}
	cout << (K*N) - sum << endl;

	system("pause");
	return 0;

}
0