# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1048517 | IUA_Hasin | 식물 비교 (IOI20_plants) | C++17 | 0 ms | 348 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "plants.h"
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll a, n;
vector<ll> arr;
void init(int k, std::vector<int> r) {
a = k;
n = r.size();
for(int i=0; i<r.size(); i++){
arr.push_back(r[i]);
}
return;
}
int compare_plants(int x, int y) {
ll temp = arr[x];
if(x==n-1){
if(y==0){
if(temp>0){
return 1;
} else {
return -1;
}
} else {
return 0;
}
} else {
if(y==x+1){
if(temp>0){
return 1;
} else {
return -1;
}
} else {
return 0;
}
}
return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |