/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 584.0 KiB
#2 Wrong Answer 32ms 548.0 KiB
#3 Wrong Answer 32ms 552.0 KiB

Code



#include <bits/stdc++.h>
using namespace std;

int main()
{
    int tst;
    cin>>tst;
    while(tst--)
    {
        long long int x,sum=0;
        cin>>x;
        long long int y[x];
        for(int i=0;i<x;i++)
        {
            cin>>y[i];
            sum+=y[i];
        }
        cout<<sum<<endl;
    }

    return 0;
}

Information

Submit By
Type
Submission
Problem
P1152 Special Array
Contest
Happy New Year 2025
Language
C++17 (G++ 13.2.0)
Submit At
2025-01-02 15:00:49
Judged At
2025-01-02 15:00:49
Judged By
Score
1
Total Time
32ms
Peak Memory
584.0 KiB