Submission #680994

#TimeUsernameProblemLanguageResultExecution timeMemory
680994adilet_321Intercastellar (JOI22_ho_t1)Cpython 3
0 / 100
2068 ms5460 KiB
a=int(input()) s=[1] for i in range (a): d=int(input()) s.append(d) x=int(input()) z=a while(z!=-1): if(s[z]%2==0): c=s[z]//2 s.pop(z) if z!=a: s.insert(z,c) s.insert(z,c) else : s.append(c) s.append(c) z+=2 a+=1 z-=1 #print(s) for i in range(x): v=int(input()) print(s[v])
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...