This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <iostream>
#include <vector>
#include <map>
using namespace std;
vector<int> paint(int n) {
vector<int> squares = vector<int>(n+1, 1);
squares[n] = n;
return squares;
}
int find_location(int n, vector<int> c) {
for (int i = 0; i < (int) c.size(); i++) {
if (c[i] == -1)
return n - i;
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |