| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1328797 | model_code | Zombie (COCI26_zombie) | Pypy 3 | 160 ms | 50648 KiB |
n, m, k = map(int, input().split())
x, r, t = [], [], []
for _ in range(k):
xi, ri, ti = map(int, input().split())
x.append(xi)
r.append(ri)
t.append(ti)
br = 0
for i in range(1, m + 1):
prezivio = 1
for j in range(k):
lj = max(x[j] - r[j], 1)
rj = min(x[j] + r[j], n)
poz = t[j] - i + 1
if poz >= lj and poz <= rj:
prezivio = 0
if prezivio == 1:
br = br + 1;
print(br)
컴파일 시 표준 출력 (stdout) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
