| Task: | Data Packet Routing |
| Sender: | El Numero Uno |
| Submission time: | 2018-05-26 13:14:09 +0300 |
| Language: | Python3 |
| Status: | READY |
| Result: | WRONG ANSWER |
| test | verdict | time | |
|---|---|---|---|
| #1 | WRONG ANSWER | 0.05 s | details |
| #2 | TIME LIMIT EXCEEDED | -- | details |
| #3 | TIME LIMIT EXCEEDED | -- | details |
| #4 | TIME LIMIT EXCEEDED | -- | details |
| #5 | WRONG ANSWER | 0.30 s | details |
| #6 | WRONG ANSWER | 0.12 s | details |
| #7 | WRONG ANSWER | 0.05 s | details |
| #8 | WRONG ANSWER | 0.05 s | details |
| #9 | WRONG ANSWER | 0.04 s | details |
Code
n = int(input())
for i in range(n):
d = {}
c, r = map(int, input().split())
for j in range(r):
s = input()
if s in d:
d[s] += 1
else:
d[s] = 1
print(d)
print(max(d.values()))
Test details
Test 1
Verdict: WRONG ANSWER
| input |
|---|
| 2 10 3 1 2 2 1 3 4 ... |
| correct output |
|---|
| 1 2 |
| user output |
|---|
| {'1 2': 1, '2 1': 1, '3 4': 1} 1 {'1 2': 2, '3 4': 1} 2 |
Test 2
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
| 10 400 100000 292 392 33 131 61 254 ... |
| correct output |
|---|
| 2 2 2 2 2 ... |
| user output |
|---|
| (empty) |
Test 3
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
| 10 700 100000 603 318 570 280 374 589 ... |
| correct output |
|---|
| 2 2 2 2 2 ... |
| user output |
|---|
| (empty) |
Test 4
Verdict: TIME LIMIT EXCEEDED
| input |
|---|
| 10 1000 100000 612 150 630 797 925 44 ... |
| correct output |
|---|
| 2 2 2 2 2 ... |
| user output |
|---|
| (empty) |
Test 5
Verdict: WRONG ANSWER
| input |
|---|
| 10 1000 10000 25 713 450 653 659 325 ... |
| correct output |
|---|
| 2 2 2 2 2 ... |
| user output |
|---|
| {'25 713': 1, '450 653': 1, '6... |
Test 6
Verdict: WRONG ANSWER
| input |
|---|
| 10 1000 3000 804 754 634 483 331 476 ... |
| correct output |
|---|
| 2 2 2 2 2 ... |
| user output |
|---|
| {'804 754': 1, '634 483': 1, '... |
Test 7
Verdict: WRONG ANSWER
| input |
|---|
| 10 1000 1000 529 538 501 784 783 645 ... |
| correct output |
|---|
| 2 2 2 2 2 ... |
| user output |
|---|
| {'529 538': 1, '501 784': 1, '... |
Test 8
Verdict: WRONG ANSWER
| input |
|---|
| 10 1000 300 602 710 622 952 254 471 ... |
| correct output |
|---|
| 1 2 2 1 1 ... |
| user output |
|---|
| {'602 710': 1, '622 952': 1, '... |
Test 9
Verdict: WRONG ANSWER
| input |
|---|
| 10 1000 100 295 836 509 67 436 838 ... |
| correct output |
|---|
| 1 1 1 1 1 ... |
| user output |
|---|
| {'295 836': 1, '509 67': 1, '4... |
