# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
311469 | 2020-10-10T11:11:07 Z | tevdore | K blocks (IZhO14_blocks) | C++14 | 0 ms | 0 KB |
#include<bits/stdc++.h> using namespace std; int n, k, ans; int main() { cin >> n >> k; for(int i = 1; i < k; i++) ans += a[i]; ans += a[n]; cout << ans << "\n"; }