CSES - Datatähti 2023 alku - Results
Submission details
Task:Lehmät
Sender:UsernameNotValid
Submission time:2022-11-10 17:39:52 +0200
Language:Python3 (PyPy3)
Status:READY
Result:0
Feedback
groupverdictscore
#10
#20
Test results
testverdicttimegroup
#1ACCEPTED0.04 s1, 2details
#2ACCEPTED0.04 s1, 2details
#30.04 s1, 2details
#40.06 s1, 2details
#50.06 s1, 2details
#60.04 s2details
#70.04 s2details
#80.04 s2details
#90.04 s2details

Code

y = tuple(input(""))
n = int(y[0])
m = int(y[2])
l = 0
for i in range(n) :
    x = input("")
    if "*" in x :
        z = 0
        for b in x :
            if z == 1 :
                if b == "@" :
                    l += 1
            elif b == "*" :
                z += 1
print(l)

Test details

Test 1

Group: 1, 2

Verdict: ACCEPTED

input
3 3
***
*.*
***

correct output
0

user output
0

Test 2

Group: 1, 2

Verdict: ACCEPTED

input
3 3
***
*@*
***

correct output
1

user output
1

Test 3

Group: 1, 2

Verdict:

input
5 10
...@......
..******..
@.*@@@@*.@
..******..
...

correct output
4

user output
5

Test 4

Group: 1, 2

Verdict:

input
10 10
@@...@.@@@
..@@.@@..@
@.*******@
..*@....*.
...

correct output
11

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    m = int...

Test 5

Group: 1, 2

Verdict:

input
10 10
**********
*@@@@@@@@*
*@@@@@@@@*
*@@@@@@@@*
...

correct output
64

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 3, in <module>
    m = int...

Test 6

Group: 2

Verdict:

input
100 100
.........................@.......

correct output
60

user output
0

Test 7

Group: 2

Verdict:

input
100 100
..@@..........@......@....@@.....

correct output
1507

user output
0

Test 8

Group: 2

Verdict:

input
100 100
.@..@@..@@.@..@..@..@@..@..@.....

correct output
3348

user output
0

Test 9

Group: 2

Verdict:

input
100 100
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...

correct output
7225

user output
0