CSES - HIIT Open 2018 - Results
Submission details
Task:Inversions
Sender:El Numero Uno
Submission time:2018-05-26 11:37:23
Language:Python3
Status:READY
Result:
Test results
testverdicttime
#10.04 sdetails
#2--details
#3--details
#4--details
#5--details

Code

s = "HIIT"
f = "HIIT"

n = int(input())
for i in range(n):
	f = f.replace(input(), s)

print(f)

Test details

Test 1

Verdict:

input
000000000000000000000000000000...

correct output
500000

user output
HIIT

Test 2

Verdict:

input
111111111111111111111111111111...

correct output
500000

user output
(empty)

Test 3

Verdict:

input
010101010101010101010101010101...

correct output
0

user output
(empty)

Test 4

Verdict:

input
101010101010101010101010101010...

correct output
0

user output
(empty)

Test 5

Verdict:

input
110101011010110100100111110110...

correct output
499476

user output
(empty)