結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー sso19sso19
提出日時 2018-05-02 13:23:19
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 28,368 KB
実行使用メモリ 8,768 KB
最終ジャッジ日時 2023-09-10 08:52:56
合計ジャッジ時間 3,952 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>

int main()
{
    long long int n, i;
    long long int sum[n];
    long long int total;
    
    scanf("%lld", &n);
    
    for(i=0;i<n;i++)
        scanf("%lld", &sum[i]);
    
    for(i=0;i<n;i++)
        total+=sum[i];
    
    printf("%lld", total);
    
    return 0;

}
0