Submission #706569

#TimeUsernameProblemLanguageResultExecution timeMemory
706569YugiHackerTarifa (COCI16_tarifa)C++14
50 / 50
1 ms320 KiB
#include<bits/stdc++.h> #define el cout<<"\n" #define f0(i,n) for(int i=0;i<n;++i) #define f1(i,n) for(int i=1;i<=n;++i) #define maxn using namespace std; int x, n, s; main() { ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); cin >> x >> n; f1 (i, n) { int a; cin >> a; s += a; } cout << x * (n+1) - s; }

Compilation message (stderr)

tarifa.cpp:8:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    8 | main()
      | ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...