結果

問題 No.143 豆
ユーザー woolteawooltea
提出日時 2017-04-29 18:13:09
言語 C
(gcc 12.3.0)
結果
RE  
実行時間 -
コード長 285 bytes
コンパイル時間 123 ms
コンパイル使用メモリ 27,780 KB
実行使用メモリ 4,480 KB
最終ジャッジ日時 2023-10-11 23:07:04
合計ジャッジ時間 2,899 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 WA -
testcase_06 AC 1 ms
4,348 KB
testcase_07 AC 1 ms
4,356 KB
testcase_08 AC 1 ms
4,348 KB
testcase_09 WA -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void) {
	int K, N, F,i;
	int A[101];
	scanf("%d%d%d", &K, &N, &F);
	N *= K;
	K = 0;
	for (i = 1; i <= N; i++) {
		scanf("%d", &A[i - 1]);
		K += A[i - 1];
	}
	if (N > K) {
		printf("%d", N);
	}
	else {
		printf("%d", -1);
	}
	//scanf("%d", K);
	return 0;
}
0