Rezultati

Up. imeNalogaJezikRezultatČas oddaje
ocetje-interneta-2019 Kvadrati Python 3 0/100Napaka med izvajanjem / ob izhodu (RTE) 09. maj '19 @ 17:30

Test Točke Porabljen spomin Porabljen čas Status
#1 [več] 0/2 8,680 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#2 [več] 0/2 8,668 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#3 [več] 0/2 8,602 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#4 [več] 0/2 8,594 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#5 [več] 0/2 8,531 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#6 [več] 0/2 8,598 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#7 [več] 0/2 8,527 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#8 [več] 0/2 8,660 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#9 [več] 0/3 8,594 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#10 [več] 0/3 8,660 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#11 [več] 0/3 8,523 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#12 [več] 0/3 8,602 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#13 [več] 0/3 8,676 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#14 [več] 0/3 8,668 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#15 [več] 0/3 8,520 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#16 [več] 0/3 8,672 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#17 [več] 0/3 8,520 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#18 [več] 0/3 8,660 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#19 [več] 0/3 8,617 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#20 [več] 0/3 8,523 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#21 [več] 0/3 8,672 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#22 [več] 0/3 8,598 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#23 [več] 0/3 8,520 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#24 [več] 0/3 8,672 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#25 [več] 0/3 8,672 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#26 [več] 0/3 8,531 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#27 [več] 0/3 8,531 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#28 [več] 0/3 8,527 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#29 [več] 0/3 8,594 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#30 [več] 0/3 8,477 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#31 [več] 0/3 8,598 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#32 [več] 0/3 8,680 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#33 [več] 0/3 8,605 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#34 [več] 0/3 8,539 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#35 [več] 0/3 8,527 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)
#36 [več] 0/3 8,598 MiB 0,000 s Program je končal z neničelno kodo
Stderr:
Traceback (most recent call last):
  File "source.py3", line 1, in <module>
    w, h, n = map(int, input().split())
ValueError: not enough values to unpack (expected 3, got 1)

Ocenjevani program (b.py):
w, h, n = map(int, input().split())

arr = [[0 for _ in range(w+1)] for _ in range(h+1)]

pravokotnikov = 0

for i in range(n):
    a, b, c, d = map(int, input().split())

    if a > c:
        a, c = c, a


    if b > d:
        d, b = b, d

    if a > w:
        continue
    
    if b > h:
        continue
    
    if c < 0:
        continue
    
    if d < 0:
        continue
    
    pravokotnikov += 1

    a = max(a, 0)
    b = max(b, 0)
    c = min(c, w)
    d = min(d, h)

    for j in range(b, d+1):
        for k in range(a, c+1):
            arr[j-1][k-1] += 1

translate_map = {
    0: ' ',
    1: '.',
    2: ':',
    3: '-',
    4: '=',
    5: '+',
    6: '*',
    7: '$',
    8: '#',
    9: '%',
    10: '@',
}

from collections import defaultdict

translate = defaultdict(lambda: '@')
translate.update(translate_map)

for x in range(h + 2):
    if (x == 0 or x == h+1):
        print('+', end='')
        for y in range(w):
            print('-', end='')
        print('+')
        continue

    else:
        print('|', end='')
    
    for y in range(w):
        print(translate[arr[x-1][y]], end='')
    
    print('|')

print("{} pravokotnikov na belem".format(pravokotnikov))