Submission #663411

# Submission time Handle Problem Language Result Execution time Memory
663411 2022-11-26T22:33:07 Z YENGOYAN Comparing Plants (IOI20_plants) C++14
0 / 100
0 ms 212 KB
#include "plants.h"

using namespace std;

int n, k;
vector<int> v;

void init(int K, std::vector<int> r) {
    // x, y
    //
    n = r.size(), k = K, v = r;
	return;
}

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