Submission details
Task:Buzzwords
Sender:aalto26im_030
Submission time:2026-11-02 16:48:55 +0200
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.06 sdetails
#20.06 sdetails
#30.06 sdetails
#40.06 sdetails
#50.06 sdetails
#60.06 sdetails
#70.06 sdetails
#80.06 sdetails
#90.06 sdetails
#100.06 sdetails
#110.07 sdetails
#120.06 sdetails
#130.06 sdetails
#140.06 sdetails
#150.06 sdetails
#160.06 sdetails
#170.06 sdetails
#180.06 sdetails
#190.06 sdetails
#200.06 sdetails
#210.06 sdetails
#220.06 sdetails
#230.06 sdetails
#240.06 sdetails
#250.06 sdetails
#260.06 sdetails
#270.06 sdetails
#280.06 sdetails
#290.06 sdetails
#300.06 sdetails
#310.06 sdetails
#320.06 sdetails
#330.06 sdetails
#340.06 sdetails
#350.06 sdetails
#360.06 sdetails
#370.06 sdetails
#380.06 sdetails
#390.06 sdetails
#400.06 sdetails
#410.07 sdetails
#420.07 sdetails
#430.07 sdetails
#440.06 sdetails

Code

import sys

args = [x for x in sys.stdin.read().strip().split()]
n = 0
for i in range(len(args)):
    if '0' < args[i] <= 100000:
        n = i
        break
text  = args[:n]
words = args[n+2:]
count = 0
for word in words:
    for t in text:
        count += t.count(word)
print(count)

Test details

Test 1

Verdict:

input
g fhe
395
a
aa
aafh
...

correct output
10

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 2

Verdict:

input
s adh
372
a
ad
ae
...

correct output
6

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 3

Verdict:

input
adcdb
20
a
aa
ab
...

correct output
9

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 4

Verdict:

input
aaaaa
5
a
aa
aaa
...

correct output
15

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 5

Verdict:

input
o zws
759
a
ab
abw
...

correct output
8

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 6

Verdict:

input
aaaaa
5
a
aa
aaa
...

correct output
15

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 7

Verdict:

input
ifv b
649
a
aaw
ac
...

correct output
10

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 8

Verdict:

input
dbbdc
129
a
aa
aaab
...

correct output
15

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 9

Verdict:

input
aaaaa
5
a
aa
aaa
...

correct output
15

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 10

Verdict:

input
eeeab
9
a
b
c
...

correct output
5

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 11

Verdict:

input
ghfhe d fd
430
a
aa
aafa
...

correct output
22

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 12

Verdict:

input
syadhzdgck
275
a
ad
adh
...

correct output
53

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 13

Verdict:

input
adcdbbbbba
256
a
aa
aaa
...

correct output
49

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 14

Verdict:

input
aaaaaaaaaa
10
a
aa
aaa
...

correct output
55

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 15

Verdict:

input
o zwspspfd
468
a
adks
afhsrhvwxn
...

correct output
45

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 16

Verdict:

input
aaaaaaaaaa
10
a
aa
aaa
...

correct output
55

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 17

Verdict:

input
i vbbjczpc
703
a
aa
abou
...

correct output
29

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 18

Verdict:

input
d bdcbdbcb
128
a
aa
aab
...

correct output
42

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 19

Verdict:

input
aaaaaaaaaa
10
a
aa
aaa
...

correct output
55

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 20

Verdict:

input
eeeabcbabh
171
a
aac
aahg
...

correct output
34

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 21

Verdict:

input
ghfhehdf ddciaicdehheefdihadaf...

correct output
246

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 22

Verdict:

input
s adhzdgckekirkyowkirnflwfanrx...

correct output
52

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 23

Verdict:

input
adcdbbbbbaaccabbbccd cabccacdb...

correct output
178

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 24

Verdict:

input
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

correct output
2518

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 25

Verdict:

input
oezws spfdzfasgxlquafowjzpe pv...

correct output
284

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 26

Verdict:

input
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

correct output
1387

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 27

Verdict:

input
ifvbbjczpcnpknimqvlttkngpe szx...

correct output
258

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 28

Verdict:

input
dbbdcbdb bcaabb bccddbbbacbcdc...

correct output
36

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 29

Verdict:

input
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

correct output
3076

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 30

Verdict:

input
e eabcbabhdbcbaddebchdiga ggfb...

correct output
23

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 31

Verdict:

input
ghfhehdff dci icdehheefdih daf...

correct output
248

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 32

Verdict:

input
s a hzdgckekirkyo kirnflw anrx...

correct output
27

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 33

Verdict:

input
adcdbbb baac abbbcc c abccacd ...

correct output
433

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 34

Verdict:

input
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

correct output
3427

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 35

Verdict:

input
oezwsp pf z asgxlquafowjzpekpv...

correct output
359

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 36

Verdict:

input
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

correct output
2126

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 37

Verdict:

input
ifvbbjczpcnpk imqvlttkngpeqszx...

correct output
395

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 38

Verdict:

input
dbbdcbd cbcaabbabccddbb acbcdc...

correct output
242

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 39

Verdict:

input
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

correct output
4287

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 40

Verdict:

input
eeeabcbabhd cb ddebchdigaiggfb...

correct output
15

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 41

Verdict:

input
ghfhehdffdd i icdehheefd hadaf...

correct output
431

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 42

Verdict:

input
syadhzdgckekirkyow irnflwfanrx...

correct output
8039

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 43

Verdict:

input
adcdbbbbbaaccabb ccdccabcc cdb...

correct output
9409

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'

Test 44

Verdict:

input
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

correct output
168696

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 6, in <module>
    if '0' < args[i] <= 100000:
TypeError: '<=' not supported between instances of 'str' and 'int'