CSES - Putka Open 2020 – 5/5 - Results
Submission details
Task:HQ9+
Sender:Metabolix
Submission time:2020-11-27 18:24:02 +0200
Language:Python3 (CPython3)
Status:READY
Result:100
Feedback
groupverdictscore
#1ACCEPTED15
#2ACCEPTED85
Test results
testverdicttimegroup
#1ACCEPTED0.02 s1, 2details
#2ACCEPTED0.02 s2details

Code

#!/usr/bin/python
t = int(input())
for i in range(t):
	n = int(input())
	s = "9" * (n // 494) + "H" * (n % 494)
	print(s)

Test details

Test 1

Group: 1, 2

Verdict: ACCEPTED

input
100
10
96
42
77
...

correct output
HHHHHHHHHH
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHH...

user output
HHHHHHHHHH
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHH...
Truncated

Test 2

Group: 2

Verdict: ACCEPTED

input
100
76364
26254
35192
92572
...

correct output
999999999999999999999999999999...

user output
999999999999999999999999999999...
Truncated