Submission details
Task:Hiitdromes
Sender:Casinosort
Submission time:2025-11-08 13:39:32 +0200
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.04 sdetails
#20.04 sdetails
#30.04 sdetails
#40.04 sdetails
#50.04 sdetails
#60.04 sdetails
#70.04 sdetails
#80.04 sdetails
#90.04 sdetails
#100.04 sdetails
#110.04 sdetails
#120.04 sdetails
#130.04 sdetails
#140.06 sdetails
#150.05 sdetails
#160.06 sdetails
#170.05 sdetails
#180.05 sdetails
#190.06 sdetails
#200.06 sdetails
#210.06 sdetails

Code

line1 = input().split()
line2 = input()
len1 = int(line1[0])
hit = ['H','I','T']
index = 0

even = len1%2==0
changes = 0
print(line2)
for x in line2:

    if index > len1/2:
        break
    else:
        a = x
        b = line2[len1-index-1]
        print(a,b)
        if a == b:
            if a in hit:
                continue
            else:
                changes +=2
        else:
            if a in hit:
                changes+=1
            elif b in hit:
                changes +=1
            else:
                changes +=2

    if even and index == len1/2-1:
        break

    index+=1

print(changes)

Test details

Test 1

Verdict:

input
6
HEITTO

correct output
3

user output
HEITTO
H O
E T
I T
3

Feedback: Output is longer than expected

Test 2

Verdict:

input
1
I

correct output
0

user output
I
I I
0

Feedback: Output is longer than expected

Test 3

Verdict:

input
1
A

correct output
1

user output
A
A A
2

Feedback: Output is longer than expected

Test 4

Verdict:

input
1
O

correct output
1

user output
O
O O
2

Feedback: Output is longer than expected

Test 5

Verdict:

input
1
Z

correct output
1

user output
Z
Z Z
2

Feedback: Output is longer than expected

Test 6

Verdict:

input
10
HHTTHITTIH

correct output
2

user output
HHTTHITTIH
H H
H H
T H
T I
...

Feedback: Output is longer than expected

Test 7

Verdict:

input
10
TTAHTHHAHT

correct output
3

user output
TTAHTHHAHT
T T
T T
A T
H H
...

Feedback: Output is longer than expected

Test 8

Verdict:

input
10
BFUJMZSMZJ

correct output
10

user output
BFUJMZSMZJ
B J
F Z
U M
J S
...

Feedback: Output is longer than expected

Test 9

Verdict:

input
10
WAZGWJNVGK

correct output
10

user output
WAZGWJNVGK
W K
A G
Z V
G N
...

Feedback: Output is longer than expected

Test 10

Verdict:

input
100
HIIIIHHHHHHTIHHHHIIIHHTITTHTTT...

correct output
24

user output
HIIIIHHHHHHTIHHHHIIIHHTITTHTTT...

Feedback: Output is longer than expected

Test 11

Verdict:

input
100
TAHAIAITAIHHHITAHAHHIITTHAITTH...

correct output
34

user output
TAHAIAITAIHHHITAHAHHIITTHAITTH...

Feedback: Output is longer than expected

Test 12

Verdict:

input
100
EBARMESYLCNFAXNWYCWXSSCNXVWPDS...

correct output
100

user output
EBARMESYLCNFAXNWYCWXSSCNXVWPDS...

Feedback: Output is longer than expected

Test 13

Verdict:

input
100
ELTWGCNSAJXAXHACYSDJHRPZYMWXAE...

correct output
87

user output
ELTWGCNSAJXAXHACYSDJHRPZYMWXAE...

Feedback: Output is longer than expected

Test 14

Verdict:

input
1000
TIHTTTTHTTITIITTIITIHIHTHTTIII...

correct output
222

user output
TIHTTTTHTTITIITTIITIHIHTHTTIII...

Feedback: Output is longer than expected

Test 15

Verdict:

input
1000
ITTITAHHAHTHIAAAIIHITIAHITHHIH...

correct output
342

user output
ITTITAHHAHTHIAAAIIHITIAHITHHIH...

Feedback: Output is longer than expected

Test 16

Verdict:

input
1000
WVEPBCKVGYOAJVJSCEFXYAGNSOWZVL...

correct output
1000

user output
WVEPBCKVGYOAJVJSCEFXYAGNSOWZVL...

Feedback: Output is longer than expected

Test 17

Verdict:

input
1000
FINBOIBDJSFERQEWBVYROECPSOESGJ...

correct output
888

user output
FINBOIBDJSFERQEWBVYROECPSOESGJ...

Feedback: Output is longer than expected

Test 18

Verdict:

input
1000
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

correct output
1000

user output
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

Feedback: Output is longer than expected

Test 19

Verdict:

input
1000
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHH...

correct output
0

user output
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHH...

Feedback: Output is longer than expected

Test 20

Verdict:

input
1000
IIIIIIIIIIIIIIIIIIIIIIIIIIIIII...

correct output
0

user output
IIIIIIIIIIIIIIIIIIIIIIIIIIIIII...

Feedback: Output is longer than expected

Test 21

Verdict:

input
1000
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTT...

correct output
0

user output
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTT...

Feedback: Output is longer than expected