| Task: | Binge watching |
| Sender: | aalto26bw_001 |
| Submission time: | 2026-09-09 16:33:10 +0300 |
| Language: | Python3 (PyPy3) |
| Status: | READY |
| Result: | WRONG ANSWER |
| test | verdict | time | |
|---|---|---|---|
| #1 | WRONG ANSWER | 0.04 s | details |
| #2 | WRONG ANSWER | 0.04 s | details |
| #3 | WRONG ANSWER | 0.04 s | details |
| #4 | TIME LIMIT EXCEEDED | -- | details |
| #5 | WRONG ANSWER | 0.40 s | details |
| #6 | TIME LIMIT EXCEEDED | -- | details |
| #7 | ACCEPTED | 0.04 s | details |
| #8 | WRONG ANSWER | 0.04 s | details |
| #9 | WRONG ANSWER | 0.04 s | details |
Code
import sys
def solve():
input = sys.stdin.read().split()
n = int(input[0])
events = []
i = 1
for _ in range(n) :
b = int(input[i])
e = int(input[i+1])
events.append((b,1))
events.append((e,-1))
i = i+2
events.sort()
max = 0
tmp = 0
for time, change in events:
tmp += change
if tmp>max :
max = tmp
return max
if __name__ == '__main__':
print(solve())Test details
Test 1
Verdict: WRONG ANSWER
| input |
|---|
| 10 6 7 4 5 8 9 2 3 ... |
| correct output |
|---|
| 10 |
| user output |
|---|
| 1 |
Feedback: Incorrect character on line 1 col 2: expected "10", got "1"
Test 2
Verdict: WRONG ANSWER
| input |
|---|
| 10 1 1000 1 1000 1 1000 1 1000 ... |
| correct output |
|---|
| 1 |
| user output |
|---|
| 10 |
Feedback: Incorrect character on line 1 col 2: expected "1", got "10"
Test 3
Verdict: WRONG ANSWER
| input |
|---|
| 10 404 882 690 974 201 255 800 933 ... |
| correct output |
|---|
| 4 |
| user output |
|---|
| 7 |
Feedback: Incorrect character on line 1 col 1: expected "4", got "7"
Test 4
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
| 200000 177494 177495 157029 157030 6030 6031 15209 15210 ... |
| correct output |
|---|
| 200000 |
| user output |
|---|
| (empty) |
Test 5
Verdict: WRONG ANSWER
| input |
|---|
| 200000 1 1000000000 1 1000000000 1 1000000000 1 1000000000 ... |
| correct output |
|---|
| 1 |
| user output |
|---|
| 200000 |
Feedback: Incorrect character on line 1 col 1: expected "1", got "200000"
Test 6
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
| 200000 82334756 323555178 958182284 981100325 649818003 678160906 801994655 889397498 ... |
| correct output |
|---|
| 725 |
| user output |
|---|
| (empty) |
Test 7
Verdict: ACCEPTED
| input |
|---|
| 3 1 1000 2 3 5 6 |
| correct output |
|---|
| 2 |
| user output |
|---|
| 2 |
Test 8
Verdict: WRONG ANSWER
| input |
|---|
| 3 3 4 5 6 7 8 |
| correct output |
|---|
| 3 |
| user output |
|---|
| 1 |
Feedback: Incorrect character on line 1 col 1: expected "3", got "1"
Test 9
Verdict: WRONG ANSWER
| input |
|---|
| 2 1 2 3 4 |
| correct output |
|---|
| 2 |
| user output |
|---|
| 1 |
Feedback: Incorrect character on line 1 col 1: expected "2", got "1"
