結果

問題 No.143 豆
ユーザー Cooh
提出日時 2019-06-02 18:48:44
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 252 bytes
コンパイル時間 415 ms
コンパイル使用メモリ 53,888 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-17 20:13:31
合計ジャッジ時間 1,323 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
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