Submission #331968

# Submission time Handle Problem Language Result Execution time Memory
331968 2020-11-30T21:11:43 Z pggp Comparing Plants (IOI20_plants) C++14
0 / 100
1 ms 364 KB
#include <bits/stdc++.h>

using namespace std;

int K;
vector < int > R;

void init(int k, vector < int > r){
	K = k;
	R = r;
}

int compare_plants(int x, int y){
	if(R[x] > R[y]){
		return 1;
	}
	if(R[y] > R[x]){
		return -1;
	}
	return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 364 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 364 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 364 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 364 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 364 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 364 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 364 KB Output isn't correct
2 Halted 0 ms 0 KB -