結果
問題 |
No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
|
ユーザー |
![]() |
提出日時 | 2019-09-12 00:41:03 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 39 ms / 3,000 ms |
コード長 | 234 bytes |
コンパイル時間 | 142 ms |
コンパイル使用メモリ | 28,032 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-02 16:56:32 |
合計ジャッジ時間 | 1,222 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 15 |
コンパイルメッセージ
main.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int] 3 | main() { | ^~~~
ソースコード
#include <stdio.h> main() { int count; long sum = 0; scanf("%d", &count); for (int i=0; i<count; i++) { long num; scanf("%ld", &num); sum += num; } printf("%ld\n", sum); }