CSES - Datatähti 2023 alku - Results
Submission details
Task:Lehmät
Sender:hongbo_zhang
Submission time:2022-11-05 00:42:42 +0200
Language:PyPy3
Status:READY
Result:0
Feedback
groupverdictscore
#10
#20
Test results
testverdicttimegroup
#10.07 s1, 2details
#20.07 s1, 2details
#30.07 s1, 2details
#40.07 s1, 2details
#50.07 s1, 2details
#60.07 s2details
#70.07 s2details
#80.07 s2details
#90.07 s2details

Code

import random
w = int(input("enter width:"))
h = int(input("enter hight:"))
pen_s = random.randint(3,w)
cow = random.randint(5,10)
a = "." * w
for i in range(0,h,1):
    print(a)
A = a.replace(".","@",cow)
print(cow)

Test details

Test 1

Group: 1, 2

Verdict:

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

correct output
0

user output
enter width:

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

Test 2

Group: 1, 2

Verdict:

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

correct output
1

user output
enter width:

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

Test 3

Group: 1, 2

Verdict:

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

correct output
4

user output
enter width:

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

Test 4

Group: 1, 2

Verdict:

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

correct output
11

user output
enter width:

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

Test 5

Group: 1, 2

Verdict:

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

correct output
64

user output
enter width:

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

Test 6

Group: 2

Verdict:

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

correct output
60

user output
enter width:

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

Test 7

Group: 2

Verdict:

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

correct output
1507

user output
enter width:

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

Test 8

Group: 2

Verdict:

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

correct output
3348

user output
enter width:

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

Test 9

Group: 2

Verdict:

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

correct output
7225

user output
enter width:

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