# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
558820 | mosiashvililuka | 코끼리 (Dancing Elephants) (IOI11_elephants) | C++14 | 5256 ms | 20860 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "elephants.h"
#include<bits/stdc++.h>
using namespace std;
//int T=2,B=150000/T+3;
int T=387,B=150000/T+3;
int a,b,c,d,e,i,j,ii,jj,zx,xc,L,lef,rig,mid,k[150009],f[150009],C,D,cnt,II,JJ,pas;
vector <int> v[150009],vv;
vector <pair <int, int> > dp[150009];
void REBL(int q){
int lef,rig,mid,h=q,hh;
dp[h].resize(v[h].size());
if(v[h].size()==0) return;
for(hh=v[h].size()-1; hh>=0; hh--){
lef=hh;rig=v[h].size();
while(lef+1<rig){
mid=((lef+rig)>>1);
if(v[h][mid]>v[h][hh]+L){
rig=mid;
}else{
lef=mid;
}
}
if(rig==v[h].size()){
dp[h][hh]={1,v[h][hh]+L};
}else{
dp[h][hh]=dp[h][rig];dp[h][hh].first++;
}
}
}
void REDO(){
컴파일 시 표준 에러 (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... |