結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー UzikiPUzikiP
提出日時 2019-07-05 20:56:28
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 221 bytes
コンパイル時間 451 ms
コンパイル使用メモリ 55,652 KB
実行使用メモリ 5,804 KB
最終ジャッジ日時 2023-10-22 05:16:16
合計ジャッジ時間 3,405 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 100 ms
5,412 KB
testcase_11 AC 104 ms
5,452 KB
testcase_12 AC 105 ms
5,492 KB
testcase_13 AC 108 ms
5,532 KB
testcase_14 AC 111 ms
5,568 KB
testcase_15 AC 113 ms
5,608 KB
testcase_16 AC 125 ms
5,804 KB
testcase_17 AC 2 ms
4,348 KB
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>

int main()
{
    int N;
    std::cin>>N;
    
    float v[N];
    float sum=0;
    
    for(int i=0;i<N;i++)
    {
        std::cin>>v[i];
        sum+=v[i];
    }
    
    std::cout<<sum<<std::endl;
}
0