제출 #922490

#제출 시각아이디문제언어결과실행 시간메모리
922490thunopro홀-짝 수열 (IZhO11_oddeven)Pypy 2
100 / 100
25 ms19712 KiB
n=int(input())
l=1; r=10**51; best=100
while l<=r:
	mid=(l+r)//2
	if mid*(mid+1)//2>=n:
		best=mid
		r=mid-1
	else:
		l=mid+1
print(2*n-best)	
#Verdict Execution timeMemoryGrader output
Fetching results...