Submission #1085698

# Submission time Handle Problem Language Result Execution time Memory
1085698 2024-09-08T15:16:24 Z vjudge1 Carnival (CEOI14_carnival) C++17
20 / 100
58 ms 344 KB
#include <bits/stdc++.h>
using namespace std;
vector<int>v(151);
int main()
{
    int n,cnt=1;
    cin>>n;
    for(int i=1;i<=n;i++)
    {
        if(v[i]!=0)continue;
        v[i]=cnt++;
        for(int j=i+1;j<=n;j++)
        {
            cout<<"2 "<<i<<" "<<j<<endl;
            int a;
            cin>>a;
            if(a==1)
            {
                v[j]=v[i];
            }
        }
    }
    cout<<"0 ";
    for(int i=1;i<=n;i++)
    {
        cout<<v[i]<<" ";
    }
    cout<<endl;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 4 ms 344 KB Output is correct
2 Partially correct 21 ms 344 KB Partially correct
3 Partially correct 43 ms 344 KB Partially correct
4 Partially correct 39 ms 344 KB Partially correct
5 Correct 2 ms 344 KB Output is correct
6 Correct 1 ms 344 KB Output is correct
7 Correct 10 ms 344 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 344 KB Output is correct
2 Correct 26 ms 344 KB Output is correct
3 Partially correct 14 ms 344 KB Partially correct
4 Partially correct 48 ms 340 KB Partially correct
5 Correct 3 ms 344 KB Output is correct
6 Correct 5 ms 344 KB Output is correct
7 Correct 7 ms 344 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 8 ms 344 KB Output is correct
3 Partially correct 26 ms 344 KB Partially correct
4 Partially correct 58 ms 344 KB Partially correct
5 Correct 6 ms 344 KB Output is correct
6 Correct 12 ms 344 KB Output is correct
7 Partially correct 18 ms 344 KB Partially correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 344 KB Output is correct
2 Correct 4 ms 344 KB Output is correct
3 Partially correct 49 ms 344 KB Partially correct
4 Partially correct 51 ms 344 KB Partially correct
5 Partially correct 16 ms 344 KB Partially correct
6 Partially correct 23 ms 344 KB Partially correct
7 Partially correct 17 ms 344 KB Partially correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 10 ms 344 KB Output is correct
3 Partially correct 42 ms 344 KB Partially correct
4 Partially correct 37 ms 344 KB Partially correct
5 Partially correct 28 ms 344 KB Partially correct
6 Partially correct 32 ms 344 KB Partially correct
7 Partially correct 53 ms 344 KB Partially correct