제출 #499746

#제출 시각아이디문제언어결과실행 시간메모리
499746sidon친구 (IOI14_friend)C++17
100 / 100
28 ms1408 KiB
int findSample(int i,int c[],int h[],int p[]){while(--i)p[i]?p[i]-1?c[i]>c[h[i]]?c[h[i]]=c[i]:0:c[h[i]]+=c[i]:(c[h[i]]-=c[i],p[0]+=c[i]),c[h[i]]<0?c[h[i]]=0:0;return c[0]+p[0];}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...