Submission #319542

# Submission time Handle Problem Language Result Execution time Memory
319542 2020-11-05T13:38:09 Z ehdtjskaqhd Hotter Colder (IOI10_hottercolder) C++17
25 / 100
522 ms 262148 KB
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
int HC(int N)
{
    int i;
    vector<int> rt(N + 1);
    for (int i = 1; i <= N; i++) rt[i] = Guess(i);
    for (int i = 2; i <= N; i++) if (rt[i] == -1) return i - 1;
    return rt[2] < 0 ? 1 : N;
}

Compilation message

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:6:9: warning: unused variable 'i' [-Wunused-variable]
    6 |     int i;
      |         ^
# Verdict Execution time Memory Grader output
1 Correct 230 ms 1508 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 216 ms 1508 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 223 ms 1512 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Runtime error 522 ms 262148 KB Execution killed with signal 9 (could be triggered by violating memory limits)