# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
42495 | iletavcioski | Carnival (CEOI14_carnival) | C++14 | 34 ms | 2020 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 <iostream>
#include <vector>
using namespace std;
int main()
{
int n;
cin>>n;
vector<int> v;
v.push_back(1);
vector<int> vkraj(n+1,0);
vkraj[1]=1;
for(int i=2;i<=n;i++)
{
int k=v.size();
cout<<k+1<<endl;
for(int j=0;j<v.size();j++)
{
cout<<v[j]<<endl;
}
cout<<i<<endl;
int b;
cin>>b;
if(b>k)
{
v.push_back(i);
vkraj[i]=v.size();
}
else
{
for(int j=0;j<v.size();j++)
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |