# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
159728 | 2019-10-24T08:24:32 Z | Doda | Tarifa (COCI16_tarifa) | C++14 | 6 ms | 376 KB |
#include <iostream> using namespace std; int main () { int x,n,p,a,b,y; cin >> y >> n ; x = y; for (int i = 0; i<n ; i++){ cin >> p; x = y; x+= a; a = 0; if (p<x){ a += x-p ; } } cout << a+y; return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 256 KB | Output isn't correct |
2 | Incorrect | 2 ms | 376 KB | Output isn't correct |
3 | Incorrect | 6 ms | 256 KB | Output isn't correct |
4 | Incorrect | 2 ms | 376 KB | Output isn't correct |
5 | Incorrect | 2 ms | 256 KB | Output isn't correct |
6 | Incorrect | 2 ms | 256 KB | Output isn't correct |
7 | Incorrect | 2 ms | 256 KB | Output isn't correct |
8 | Incorrect | 2 ms | 256 KB | Output isn't correct |
9 | Incorrect | 2 ms | 256 KB | Output isn't correct |
10 | Incorrect | 2 ms | 256 KB | Output isn't correct |