180232025-09-25 14:06:32algoproDNS szakaszok száma (75 pont)pypy3Wrong answer 11/75301ms22248 KiB
# UUID: 03d89df6-d831-42dc-a401-6bd478e1c172
n = int(input())
dns = input()
output = 0

for a in range(len(dns)):
    if dns[a] == "A":
        for g in range(a, len(dns)):
            if dns[g] == "G":
                for t in range(g, len(dns)):
                    if dns[t] == "T":
                        output += 1

print(output)
SubtaskSumTestVerdictTimeMemory
base11/75
1Wrong answer0/039ms19432 KiB
2Time limit exceeded0/0282ms21476 KiB
3Accepted3/343ms19424 KiB
4Wrong answer0/443ms19392 KiB
5Wrong answer0/446ms19436 KiB
6Accepted4/441ms19436 KiB
7Accepted4/437ms19420 KiB
8Wrong answer0/354ms21476 KiB
9Wrong answer0/359ms21640 KiB
10Wrong answer0/461ms21688 KiB
11Wrong answer0/4130ms21824 KiB
12Wrong answer0/454ms21476 KiB
13Wrong answer0/4162ms21668 KiB
14Wrong answer0/4133ms21736 KiB
15Time limit exceeded0/3301ms21516 KiB
16Time limit exceeded0/4284ms21480 KiB
17Time limit exceeded0/4282ms21480 KiB
18Time limit exceeded0/4282ms21480 KiB
19Time limit exceeded0/4280ms21480 KiB
20Time limit exceeded0/4287ms21480 KiB
21Time limit exceeded0/3280ms22248 KiB
22Time limit exceeded0/4289ms21620 KiB