| Task: | Sanalista |
| Sender: | ov |
| Submission time: | 2020-10-06 22:08:02 +0300 |
| Language: | Python3 (CPython3) |
| Status: | READY |
| Result: | 0 |
| group | verdict | score |
|---|---|---|
| #1 | RUNTIME ERROR | 0 |
| test | verdict | time | |
|---|---|---|---|
| #1 | RUNTIME ERROR | 0.02 s | details |
| #2 | RUNTIME ERROR | 0.02 s | details |
| #3 | RUNTIME ERROR | 0.02 s | details |
Code
counter = 0
n = input()
for i in range(int(n)):
word = input()
samecharacters = 1
even = 0
compared = []
for j in range(len(word)):
samecharacters = 1
character = word[j]
for k in range(len(word)):
character2 = word[k]
if character == character2 and j != k and character not in compared:
samecharacters = samecharacters + 1
compared.append(character)
if (samecharacters % 2) == 0 and (k + 1) == len(word):
even = even + 1
compared = list(dict.fromkeys(compared))
if even == len(compared):
print(counter)Test details
Test 1
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 korvata sopimusaika nuhatartunta korttiautomaatti ... |
| correct output |
|---|
| 15 |
| user output |
|---|
| (empty) |
Error:
File "input/code.py", line 24
print(counter)
^
IndentationError: expected an ind...Test 2
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 pub hansikaslokero erikoisvalmisteinen unijukka ... |
| correct output |
|---|
| 42 |
| user output |
|---|
| (empty) |
Error:
File "input/code.py", line 24
print(counter)
^
IndentationError: expected an ind...Test 3
Verdict: RUNTIME ERROR
| input |
|---|
| 1000 haapalastu toipumisaika mustalaiskieli taidelainaamo ... |
| correct output |
|---|
| 70 |
| user output |
|---|
| (empty) |
Error:
File "input/code.py", line 24
print(counter)
^
IndentationError: expected an ind...