結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー Mcpu3
提出日時 2018-04-15 22:36:13
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 198 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 27,904 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-27 00:09:40
合計ジャッジ時間 1,238 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 8 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void)
{
	int n;
	scanf("%d", &n);
	int a;
	int sum = 0;
	for (int i = 0; i < n; i++) {
		scanf("%d", &a);
		sum += a;
	}
	printf("%d\n", sum);
	return 0;
}
0