Submission #263897

#TimeUsernameProblemLanguageResultExecution timeMemory
263897daniel920712Game (IOI14_game)C++14
15 / 100
1 ms384 KiB
#include "game.h"
int con=0,a,b,ok=0;
void initialize(int n) 
{
    return ;
}

int hasEdge(int u, int v) 
{
    con++;
    if(con==1)
    {
        a=u,b=v;
        return 1;
    }
    else if(con==6) return 1;
    else 
    {
        if(u!=a&&u!=b&&v!=a&&v!=b) 
        {
            ok=1;
            return 1;
        }
        else if(ok==0&&con==5) return 1;
        return 0;
    }
    
        
    
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...