| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 877157 | Matjaz | 코끼리 (Dancing Elephants) (IOI11_elephants) | C++14 | 9024 ms | 8284 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "elephants.h"
#include <set>
#include <vector>
#include <algorithm>
using namespace std;
int N,L;
set<int> E;
vector<int> x;
void init(int _N, int _L, int X[]){
N = _N;
L = _L;
E.insert(X, X+N);
x.assign(X, X+N);
}
int update(int i, int y){
E.erase(x[i]);
E.insert(y);
x[i] = y;
set<int>::iterator it = E.begin();
int count = 0;
while (it != E.end()){
count++;
it = E.upper_bound(*it + L);
}
return count;
}| # | 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... | ||||
