Submission #100380

#TimeUsernameProblemLanguageResultExecution timeMemory
100380cveleNadan (COCI18_nadan)C++14
50 / 50
3 ms384 KiB
#include <iostream> #include <sstream> #include <cstdio> #include <cstdlib> #include <cmath> #include <cctype> #include <cstring> #include <iomanip> #include <bitset> #include <algorithm> #include <vector> #include <stack> #include <queue> #include <deque> #include <set> #include <list> #include <map> using namespace std; int main() { int a, n; cin >> a >> n; for (int i = 1; i < n; i++) cout << i << " "; cout << a - 1ll * (n - 1) * n / 2 << endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...