Submission #342533

# Submission time Handle Problem Language Result Execution time Memory
342533 2021-01-02T10:35:35 Z blue ICC (CEOI16_icc) C++11
0 / 100
450 ms 620 KB
#include "icc.h"
#include <set>
using namespace std;

void run(int N)
{
    set<int> edge[N+1];
    int a[1], b[1];

    for(int i = 1; i <= N-1; i++)
    {
        for(int p = 1; p <= N; p++)
        {
            for(int q = p+1; q <= N; q++)
            {
                if(edge[p].find(q) != edge[p].end()) continue;
                a[0] = p;
                b[0] = q;
                if(query(1, 1, a, b) == 0) continue;
                edge[p].insert(q);
                edge[q].insert(p);
                setRoad(p, q);
            }
        }
    }
}
# Verdict Execution time Memory Grader output
1 Correct 77 ms 492 KB Ok! 1301 queries used.
2 Incorrect 13 ms 492 KB Wrong road!
# Verdict Execution time Memory Grader output
1 Incorrect 254 ms 492 KB Wrong road!
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 450 ms 492 KB Number of queries more than 4500 out of 2250
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 412 ms 572 KB Number of queries more than 4000 out of 2000
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 375 ms 620 KB Number of queries more than 3550 out of 1775
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 348 ms 492 KB Number of queries more than 3250 out of 1625
2 Halted 0 ms 0 KB -