Submission #438118

# Submission time Handle Problem Language Result Execution time Memory
438118 2021-06-27T15:46:06 Z shahriarkhan ICC (CEOI16_icc) C++14
0 / 100
452 ms 472 KB
#include<bits/stdc++.h>
#include "icc.h"
using namespace std ;

void run(int N)
{
    int cnt = 0 ;
    while(cnt!=(N-1))
    {
        for(int i = 1 ; i <= N ; ++i)
        {
            for(int j = i + 1 ; j <= N ; ++j)
            {
                int a[1] , b[1] ;
                a[0] = i , b[0] = j ;
                if(query(1,1,a,b))
                {
                    setRoad(i,j) ;
                    ++cnt ;
                }
            }
        }
    }
}
# Verdict Execution time Memory Grader output
1 Incorrect 13 ms 460 KB Wrong road!
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 169 ms 468 KB Wrong road!
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 452 ms 468 KB Number of queries more than 4500 out of 2250
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 424 ms 472 KB Number of queries more than 4000 out of 2000
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 383 ms 464 KB Number of queries more than 3550 out of 1775
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 399 ms 460 KB Number of queries more than 3250 out of 1625
2 Halted 0 ms 0 KB -