Submission #23222538


Source Code Expand

#include<iostream>
#include<vector>
#include<cmath>
#include<string>
#include<algorithm>
#include<map>
#include<utility>
#include<cstdio>
#include<bits/stdc++.h>

using namespace std;
using ll = long long;
const long long INF = 1LL<<60;

typedef pair<ll,ll> Pair;
int main(){

    ll N;

    cin >> N;

    vector<ll> A(N);

    ll ans = 0;

    for (ll i = 0; i < N;++i)
    {
        cin >> A[i];
        if(A[i]>10){
            ans += (A[i] - 10);
        }
    }

    cout << ans << endl;

    return 0;

}

Submission Info

Submission Time
Task B - Nuts
User MurATa25
Language C++ (GCC 9.2.1)
Score 200
Code Size 550 Byte
Status AC
Exec Time 8 ms
Memory 3632 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 10
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
random_01.txt AC 8 ms 3508 KiB
random_02.txt AC 2 ms 3440 KiB
random_03.txt AC 2 ms 3476 KiB
random_04.txt AC 5 ms 3564 KiB
random_05.txt AC 2 ms 3504 KiB
random_06.txt AC 2 ms 3480 KiB
random_07.txt AC 2 ms 3604 KiB
random_08.txt AC 2 ms 3440 KiB
sample_01.txt AC 2 ms 3420 KiB
sample_02.txt AC 2 ms 3632 KiB