Submission #32850

# Submission time Handle Problem Language Result Execution time Memory
32850 2017-10-16T06:05:27 Z 5ak0 Tarifa (COCI16_tarifa) C++14
0 / 50
0 ms 2176 KB
/*
ID: 5ak0
PROG:
LANG: C++11
*/

#include <bits/stdc++.h>
#define fr first
#define sc second
#define pb push_back
#define mpr make_pair

using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
const int INF = 1e9 + 7;

int x, n, a;
ll sum;

int main(){
    #ifndef SAKO
    //freopen(".in", "r", stdin);
    //freopen(".out", "w", stdout);
    #endif // SAKO
    ios_base::sync_with_stdio(0);

    cin >> x >> n;
    for (int i = 1; i <= n; ++i){
        cin >> a;
        sum += x - a;
    }
    cout << sum;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 2176 KB Output isn't correct
2 Incorrect 0 ms 2176 KB Output isn't correct
3 Incorrect 0 ms 2176 KB Output isn't correct
4 Incorrect 0 ms 2176 KB Output isn't correct
5 Incorrect 0 ms 2176 KB Output isn't correct
6 Incorrect 0 ms 2176 KB Output isn't correct
7 Incorrect 0 ms 2176 KB Output isn't correct
8 Incorrect 0 ms 2176 KB Output isn't correct
9 Incorrect 0 ms 2176 KB Output isn't correct
10 Incorrect 0 ms 2176 KB Output isn't correct