# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
61182 | SpaimaCarpatilor | Zalmoxis (BOI18_zalmoxis) | C++17 | 359 ms | 11592 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
int N, K, M, nr, ans[1000009], a[1000009], stk[1000009];
bool type[1000009];
void print (int val, int &needToAdd)
{
if (needToAdd == 0 || val == 0)
{
printf ("%d ", val);
return ;
}
needToAdd --;
print (val - 1, needToAdd);
print (val - 1, needToAdd);
}
int main ()
{
//freopen ("input", "r", stdin);
//freopen ("output", "w", stdout);
scanf ("%d %d", &N, &K);
for (int i=1; i<=N; i++)
scanf ("%d", &a[i]);
ans[1] = a[1], type[1] = 1;
stk[1] = a[1], nr = 1, M = 1;
for (int i=2; i<=N; i++)
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |