/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Wrong Answer 11ms 580.0 KiB
#3 Wrong Answer 13ms 532.0 KiB

Code

#include <bits/stdc++.h>
#define fast() ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0)
#define lli long long int
#define endl "\n"

using namespace std;
 
void solve(){
    lli n,sum=0;
    cin >> n;
    lli a[n];
    for(lli i = 0; i < n; i++){
        cin >> a[i];
        sum += a[i];
    }
    cout <<sum<<endl;

}
 
signed main() {
    fast();
    int t;
    cin >> t;
    while (t--)
        solve();
    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 16:07:46
Judged At
2025-01-02 16:07:46
Judged By
Score
1
Total Time
13ms
Peak Memory
580.0 KiB