# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
731063 | ogibogi2004 | 코끼리 (Dancing Elephants) (IOI11_elephants) | C++14 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "elephants.h"
#include<bits/stdc++.h>
using namespace std;
const int MAXN=7e4+6;
const int K=280;
int dp1[MAXN];
int dp2[MAXN];
int where[MAXN];
int cam;
struct bucket
{
set<pair<int,int> >s;
void compute()
{
auto it=s.end();
//auto ptr=it;
//ptr--;
for(;;)
{
if(it==s.begin())
{
break;
}
--it;
int t=(*it).first+cam+1;
auto it1=s.lower_bound({t,-1});
/*while((*ptr).first>=t)
{
if(ptr==s.begin())