Submission #102065

# Submission time Handle Problem Language Result Execution time Memory
102065 2019-03-22T01:43:33 Z daniel920712 The Big Prize (IOI17_prize) C++14
0 / 100
72 ms 384 KB
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include "prize.h"

using namespace std;

int find_best(int n)
{
    vector < int > t;
    int i;
    for(i=0;i<n;i++)
    {
        t=ask(i);
        if(t[0]==0&&t[1]==0) return i;
    }
}

Compilation message

prize.cpp: In function 'int find_best(int)':
prize.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# Verdict Execution time Memory Grader output
1 Incorrect 72 ms 384 KB Incorrect
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 60 ms 256 KB Incorrect
2 Halted 0 ms 0 KB -