Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

 
 
 
 
General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
144585411 Practice:
Igorfardoc
1632B - 22 PyPy 3 Accepted 421 ms 10720 KB 2022-01-30 20:19:04 2022-01-30 20:19:04
→ Source
for _ in range(int(input())):
	n = int(input())
	k = 1
	while 2 * k <= n - 1:
		k *= 2
	for i in range(k - 1, -1, -1):
		print(i, end=' ')
	for i in range(k, n):
		print(i, end=' ')
	print()
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details