Constructing Roads In JGShining's Kingdom Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 27358 Accepted Submission(s): 7782 Problem Description JGShining's kingdom consists of 2n(n is no mor…
A group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, and at the mean time, provide the monkey with some blocks. If the monkey is clever enough, it shall be able to reach the…
var a,d:Array[-..]of longint; i,n,m,k,l:longint; function erfen(x:longint):longint; var mid,h,t:longint; begin h:=;t:=l; erfen:=; while h<=t do begin mid:=(h+t)shr ; if d[mid]<=x then ;end else t:=mid-; end; end; begin readln(n); to n do read(a[i]);…