Code Submission Evaluation System Login

Datatähti 2016 alku

Start:2015-09-28 00:00:00
End:2015-10-12 00:00:00
 

Tasks | Scoreboard | Statistics


CSES - Datatähti 2016 alku - Results
History
2015-10-11 15:47:3614
2015-10-11 15:40:160
2015-10-11 12:12:450
2015-10-11 12:08:580
2015-10-11 12:07:090
2015-10-11 12:04:440
2015-10-11 12:02:300
2015-10-11 11:56:110
2015-10-11 11:53:420
2015-10-11 11:35:210
2015-10-11 11:29:5314
2015-10-11 11:27:5214
2015-10-11 11:24:550
2015-10-11 11:23:080
2015-10-11 11:15:100
2015-10-01 19:04:2614
2015-10-01 19:03:250
2015-10-01 18:49:5114
Task:Tontti
Sender:felixbade
Submission time:2015-10-11 12:08:58
Language:Python3
Status:READY
Score:0

Feedback

groupverdictscore
#1TIME LIMIT EXCEEDED0
#2OUTPUT LIMIT EXCEEDED0
#3OUTPUT LIMIT EXCEEDED0

Test results

testverdicttime (s)group
#1TIME LIMIT EXCEEDED-- / 1.001details
#2TIME LIMIT EXCEEDED-- / 1.001details
#3TIME LIMIT EXCEEDED-- / 1.001details
#4TIME LIMIT EXCEEDED-- / 1.001details
#5TIME LIMIT EXCEEDED-- / 1.001details
#6OUTPUT LIMIT EXCEEDED0.00 / 1.002details
#7WRONG ANSWER0.10 / 1.002details
#8TIME LIMIT EXCEEDED-- / 1.002details
#9TIME LIMIT EXCEEDED-- / 1.002details
#10TIME LIMIT EXCEEDED-- / 1.002details
#11OUTPUT LIMIT EXCEEDED0.00 / 1.003details
#12WRONG ANSWER0.44 / 1.003details
#13TIME LIMIT EXCEEDED-- / 1.003details
#14TIME LIMIT EXCEEDED-- / 1.003details
#15TIME LIMIT EXCEEDED-- / 1.003details

Code

import math
from array import array

# Parse input
line = input().split()
height = int(line[0])
width = int(line[1])
desired_trees = int(line[2])

field = []
for y in range(height):
    line = input()
    field.extend([x == '*' for x in line])

# RUNTIME ERROR
def a():
    return 1/0
# OUTPUT LIMIT EXCEEDED
def b():
    a = 'h'*4096
    for i in range(1000000):
        print(a)
    exit(0)
# WRONG ANSWER
def c():
    print('wrong answer')
    exit(0)
# TIME LIMIT EXCEEDED
def d():
    while True:
        pass

x = field.count(True)
y = math.sqrt(math.sqrt(math.sqrt(width*height)))

if x < y:
    a()
elif x < y*y:
    b()
elif x < y*y*y:
    c()
else:
    d()

Test details

Test 1

Group: 1

Verdict: TIME LIMIT EXCEEDED

input
10 10 1
......*...
.......*..
*..*....*.
*....*....
...
view   save

correct output
94

view   save

user output
(empty)

Test 2

Group: 1

Verdict: TIME LIMIT EXCEEDED

input
10 10 5
**********
**********
**********
**********
...
view   save

correct output
0

view   save

user output
(empty)

Test 3

Group: 1

Verdict: TIME LIMIT EXCEEDED

input
10 10 10
**...*...*
*..*.**.*.
...**.*..*
*...**.*..
...
view   save

correct output
4

view   save

user output
(empty)

Test 4

Group: 1

Verdict: TIME LIMIT EXCEEDED

input
10 10 5
****......
*.*.**..**
....*.*..*
...*.***..
...
view   save

correct output
16

view   save

user output
(empty)

Test 5

Group: 1

Verdict: TIME LIMIT EXCEEDED

input
10 10 2
**.***..*.
...*.*....
.***.*...*
***.***..*
...
view   save

correct output
30

view   save

user output
(empty)

Test 6

Group: 2

Verdict: OUTPUT LIMIT EXCEEDED

input
500 500 1
.................................
view   save

correct output
9552040

view   save

user output
(empty)

Test 7

Group: 2

Verdict: WRONG ANSWER

input
500 500 5
.................................
view   save

correct output
1536063

view   save

user output
wrong answer

view   save

Test 8

Group: 2

Verdict: TIME LIMIT EXCEEDED

input
500 500 25000
**...*...**..*.*..*.**.*..*.*....
view   save

correct output
288

view   save

user output
(empty)

Test 9

Group: 2

Verdict: TIME LIMIT EXCEEDED

input
500 500 12500
**.**.*..*...*.**...*.***........
view   save

correct output
786

view   save

user output
(empty)

Test 10

Group: 2

Verdict: TIME LIMIT EXCEEDED

input
500 500 5000
.*.*.**..*.*.**.**..*..**...*....
view   save

correct output
1763

view   save

user output
(empty)

Test 11

Group: 3

Verdict: OUTPUT LIMIT EXCEEDED

input
2000 2000 1
.................................
view   save

correct output
489611392

view   save

user output
(empty)

Test 12

Group: 3

Verdict: WRONG ANSWER

input
2000 2000 5
.................................
view   save

correct output
120725884

view   save

user output
wrong answer

view   save

Test 13

Group: 3

Verdict: TIME LIMIT EXCEEDED

input
2000 2000 400000
..*..**.**.**.*.***...**.*..**...
view   save

correct output
1849

view   save

user output
(empty)

Test 14

Group: 3

Verdict: TIME LIMIT EXCEEDED

input
2000 2000 200000
***.*....*.*..*....**..*..*.*....
view   save

correct output
2665

view   save

user output
(empty)

Test 15

Group: 3

Verdict: TIME LIMIT EXCEEDED

input
2000 2000 80000
**.**...*.***.**....**.*....*....
view   save

correct output
5587

view   save

user output
(empty)