/ SeriousOJ /

Record Detail

Time Exceeded


  
# Status Time Cost Memory Cost
#1 Time Exceeded ≥1099ms ≥8.027 MiB
#2 Time Exceeded ≥1096ms ≥3.762 MiB

Code

t=int(input())
for i in range(t):
	pattern=""
	k=int(input())
	aCount=1
	for j in range(k):
		pattern+="a"*aCount
		pattern+="b"
		aCount+=1
	print(pattern[k])

Information

Submit By
Type
Submission
Problem
P1223 C. Infinity Sequence
Contest
Happy New Year 2026
Language
Python 3 (Python 3.12.3)
Submit At
2026-01-06 15:17:12
Judged At
2026-01-06 15:17:12
Judged By
Score
0
Total Time
≥1099ms
Peak Memory
≥8.027 MiB