답안 #525107

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
525107 2022-02-10T17:31:20 Z dron_rp Easter Eggs (info1cup17_eastereggs) C++14
6 / 100
2 ms 456 KB
#include <bits/stdc++.h>
#include "grader.h"

using namespace std;

int findEgg (int N, vector < pair < int, int > > bridges)
{
    for (int i = 1; i<=N;i++){
        if (query({i}) == 1){
            return i;
        }
    }
}

Compilation message

eastereggs.cpp: In function 'int findEgg(int, std::vector<std::pair<int, int> >)':
eastereggs.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
   13 | }
      | ^
# 결과 실행 시간 메모리 Grader output
1 Partially correct 1 ms 284 KB Number of queries: 16
2 Partially correct 2 ms 200 KB Number of queries: 16
3 Partially correct 1 ms 200 KB Number of queries: 16
4 Partially correct 2 ms 200 KB Number of queries: 16
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 456 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 2 ms 456 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -