Task: | Sanalista |
Sender: | osmo |
Submission time: | 2020-09-29 20:18:40 +0300 |
Language: | Python3 (CPython3) |
Status: | READY |
Result: | 100 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 100 |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.06 s | details |
#2 | ACCEPTED | 0.06 s | details |
#3 | ACCEPTED | 0.06 s | details |
Code
iterateNum = int(input()) character_amount = "" finished_amount = 0 for _ in range(iterateNum): even_check = 0 character_list = [] string = str(input()) for string_index in range(len(string)): character_check = 0 for character_check_index in range(len(string)): if string[string_index] == string[character_check_index]: character_amount = character_amount + string[character_check_index] for similar_check_index in range(len(character_list)): if character_list[similar_check_index] == character_amount: character_check = 1 if character_check == 0: character_list.append(character_amount) character_amount = "" for even_check_index in range(len(character_list)): if len(character_list[even_check_index]) % 2 == 1: even_check = 1 if even_check == 0: finished_amount += 1 print(finished_amount)
Test details
Test 1
Verdict: ACCEPTED
input |
---|
1000 korvata sopimusaika nuhatartunta korttiautomaatti ... |
correct output |
---|
15 |
user output |
---|
15 |
Test 2
Verdict: ACCEPTED
input |
---|
1000 pub hansikaslokero erikoisvalmisteinen unijukka ... |
correct output |
---|
42 |
user output |
---|
42 |
Test 3
Verdict: ACCEPTED
input |
---|
1000 haapalastu toipumisaika mustalaiskieli taidelainaamo ... |
correct output |
---|
70 |
user output |
---|
70 |