# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
84495 | 2018-11-15T16:53:57 Z | memetkagan44 | Nadan (COCI18_nadan) | C++11 | 3 ms | 516 KB |
#include<bits/stdc++.h> using namespace std; int main(){ int a,n; scanf("%d %d",&a,&n); for(int i=1;i<n;i++) printf("%d\n",i); printf("%d\n",a-(n*(n-1))/2); return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 256 KB | Output is correct |
2 | Correct | 2 ms | 372 KB | Output is correct |
3 | Correct | 2 ms | 408 KB | Output is correct |
4 | Correct | 2 ms | 456 KB | Output is correct |
5 | Correct | 2 ms | 516 KB | Output is correct |
6 | Correct | 2 ms | 516 KB | Output is correct |
7 | Correct | 3 ms | 516 KB | Output is correct |
8 | Correct | 2 ms | 516 KB | Output is correct |
9 | Correct | 2 ms | 516 KB | Output is correct |
10 | Correct | 2 ms | 516 KB | Output is correct |