Submission #90831

# Submission time Handle Problem Language Result Execution time Memory
90831 2018-12-24T17:39:45 Z zzee Unija (COCI17_unija) Python 3
0 / 100
1000 ms 7944 KB
n = int(input())
L = []
L1 = []
p = 0
for i in range(850):
    for j in range(850):
        L1 = L1 + [0]
    L = L + [L1]
    L1 = []
for m in range(n):
    x,y = map(int, input().split())
    xk = x // 2
    yk = y // 2
    for i in range(yk):
        for j in range(xk):
            L[i][j] = 1
for i in range(10):
    for j in range(10):
        if L[i][j] == 1:
            p = p + 1
print(p*4)
# Verdict Execution time Memory Grader output
1 Execution timed out 1080 ms 7212 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1082 ms 7376 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1068 ms 7376 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1073 ms 7436 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1088 ms 7632 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1085 ms 7684 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1082 ms 7684 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1093 ms 7944 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1079 ms 7944 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1075 ms 7944 KB Time limit exceeded
2 Halted 0 ms 0 KB -