Code Submission Evaluation System Login

HIIT Open 2018

Start:2018-05-26 11:00:00
End:2018-05-26 16:00:00
 

Tasks | Messages | Scoreboard | Statistics


CSES - HIIT Open 2018 - Results
History
2018-05-26 14:01:02
2018-05-26 14:00:47
2018-05-26 14:00:33
2018-05-26 14:00:19
2018-05-26 14:00:04
2018-05-26 13:57:52
Task:Euclidean Geometry
Sender:TreamDeam
Submission time:2018-05-26 14:01:02
Language:Python3
Status:READY
Result:WRONG ANSWER

Test results

testverdicttime (s)
#1WRONG ANSWER0.24 / 1.00details
#2WRONG ANSWER0.23 / 1.00details
#3WRONG ANSWER0.25 / 1.00details
#4WRONG ANSWER0.24 / 1.00details
#5WRONG ANSWER0.29 / 1.00details
#6WRONG ANSWER0.25 / 1.00details
#7WRONG ANSWER0.27 / 1.00details
#8WRONG ANSWER0.24 / 1.00details

Code

t = int(input())

for _ in range(t):
  min_x = (1000, 1000)
  min_y = (1000, 1000)
  max_x = (-1000, -1000)
  max_y = (-1000, -1000) 
  res = 4
  for y in range(100):
    c = input()
    for x in range(100):
      if c[x] == "1":
        if x < min_x[1]:
          min_x = (y, x)
        if y < min_y[0]:
          min_y = (y, x)
        if x > max_x[1]:
          max_x = (y, x)
        if y > max_y[0]:
          max_y = (y, x)
  
  # print(min_x[1], min_y[0], max_x[1], max_y[0])
  # print(min_x, min_y, max_x, max_y)
  diff = 15

  if abs(min_x[0] - min_y[0]) <= diff or abs(min_x[0] - max_y[0]) <= diff:
    res = 3
  if abs(max_x[0] - min_y[0]) <= diff or abs(max_x[0] - max_y[0]) <= diff:
    res = 3
  if abs(min_y[1] - min_x[1]) <= diff or abs(min_y[1] - max_x[1]) <= diff:
    res = 3
  if abs(max_y[1] - min_x[1]) <= diff or abs(max_y[1] - max_x[1]) <= diff:
    res = 3

  print(res)


Test details

Test 1

Verdict: WRONG ANSWER

input
100
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
view   save

correct output
3
3
3
3
4
4
4
4
3
4
4
3
3
4
4
4
3
4
3
4
...
view   save

user output
3
3
3
3
3
3
3
4
3
3
3
3
3
3
4
3
3
4
3
3
...
view   save

Test 2

Verdict: WRONG ANSWER

input
100
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
view   save

correct output
3
4
4
4
3
3
3
4
3
4
4
4
3
3
3
4
4
4
3
4
...
view   save

user output
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
4
3
3
3
3
...
view   save

Test 3

Verdict: WRONG ANSWER

input
100
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
view   save

correct output
3
3
3
3
4
3
3
4
4
3
4
4
3
4
3
3
3
4
4
3
...
view   save

user output
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
...
view   save

Test 4

Verdict: WRONG ANSWER

input
100
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
view   save

correct output
3
3
3
4
3
4
4
4
3
3
3
4
4
4
4
3
3
3
4
3
...
view   save

user output
3
3
3
3
3
3
3
3
3
3
3
3
4
3
3
3
3
3
3
3
...
view   save

Test 5

Verdict: WRONG ANSWER

input
100
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
view   save

correct output
3
4
3
3
4
3
3
4
3
3
4
4
4
3
3
4
4
3
4
4
...
view   save

user output
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
4
3
3
3
...
view   save

Test 6

Verdict: WRONG ANSWER

input
100
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
view   save

correct output
4
3
4
4
4
3
4
4
3
3
4
3
3
4
4
3
4
3
4
3
...
view   save

user output
3
3
3
4
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
...
view   save

Test 7

Verdict: WRONG ANSWER

input
100
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000001000...
000000000000000000000000001110...
000000000000000000000000001111...
view   save

correct output
4
4
3
3
3
3
3
3
3
3
3
3
3
3
3
4
3
4
4
3
...
view   save

user output
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
4
3
3
3
3
...
view   save

Test 8

Verdict: WRONG ANSWER

input
100
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
000000000000000000000000000000...
view   save

correct output
3
3
3
3
3
4
3
4
4
4
3
3
3
4
3
3
4
3
3
3
...
view   save

user output
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
...
view   save