Submission #438727

# Submission time Handle Problem Language Result Execution time Memory
438727 2021-06-28T14:27:18 Z shahriarkhan ICC (CEOI16_icc) C++14
7 / 100
480 ms 464 KB
#include<bits/stdc++.h>
#include "icc.h"
using namespace std ;

void run(int N)
{
    set<pair<int,int> > s ;
    while(1)
    {
        int siz = s.size() ;
        if(siz==(N-1)) break ;
        for(int i = 1 ; i <= N ; ++i)
        {
            int done = 0 ;
            for(int j = i + 1 ; j <= N ; ++j)
            {
                if(s.find({i,j})!=s.end()) continue ;
                int a[1] , b[1] ;
                a[0] = i , b[0] = j ;
                if(query(1,1,a,b))
                {
                    setRoad(i,j) ;
                    s.insert({i,j}) ;
                    done = 1 ;
                    break ;
                }
            }
            if(done) break ;
        }
    }
}
# Verdict Execution time Memory Grader output
1 Correct 65 ms 460 KB Ok! 1015 queries used.
2 Correct 66 ms 460 KB Ok! 1010 queries used.
# Verdict Execution time Memory Grader output
1 Incorrect 401 ms 464 KB Number of queries more than 5000 out of 2500
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 480 ms 460 KB Number of queries more than 4500 out of 2250
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 444 ms 464 KB Number of queries more than 4000 out of 2000
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 413 ms 460 KB Number of queries more than 3550 out of 1775
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 362 ms 460 KB Number of queries more than 3250 out of 1625
2 Halted 0 ms 0 KB -