Submission #1011763

# Submission time Handle Problem Language Result Execution time Memory
1011763 2024-07-01T08:06:51 Z uranhishig Hotter Colder (IOI10_hottercolder) C++14
0 / 100
2744 ms 262144 KB
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;

int Guess(int G);

int HC(int n){
	int q = 0, i;
	int w[501];
	for(int i = 1; i<=500; i++){
		w[i] = Guess(i);
	}
   	for(int i = 1; i <= 500; i++){
   		if(w[i] == -1){
   			return i - 1;
		}
   	}
   	return 500;
}

Compilation message

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:8:6: warning: unused variable 'q' [-Wunused-variable]
    8 |  int q = 0, i;
      |      ^
hottercolder.cpp:8:13: warning: unused variable 'i' [-Wunused-variable]
    8 |  int q = 0, i;
      |             ^
# Verdict Execution time Memory Grader output
1 Runtime error 2434 ms 262144 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 2486 ms 262144 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 2463 ms 262144 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 2744 ms 262144 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -