QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505419#5811. Wi-fi Towersxiaowuc128 ✓8ms3844kbC++173.0kb2024-08-05 05:15:032024-08-05 05:15:04

詳細信息

Subtask #1:

score: 3
Accepted

Test #1:

score: 3
Accepted
time: 1ms
memory: 3844kb

input:

55
15
10 12 45 -1
9 5 50 1
5 20 41 1
11 8 50 1
20 13 44 1
2 0 45 -1
5 4 47 -1
14 13 42 -1
19 1 47 -1
8 0 41 -1
8 16 40 -1
15 11 42 1
8 8 42 1
2 9 50 1
0 10 44 1
15
872 2191 2 -386
-2071 -3796 1 -568
4237 -5305 6742 275
-2307 -6269 1 -148
6875 -19 461 -519
-9871 -3500 64 -306
-2576 -5709 25 686
431 8...

output:

Case #1: 1
Case #2: 3091
Case #3: 923
Case #4: 651
Case #5: 1387
Case #6: 1319
Case #7: 1
Case #8: 747
Case #9: 0
Case #10: 1443
Case #11: 2
Case #12: 0
Case #13: 1746
Case #14: 1533
Case #15: 687
Case #16: 1851
Case #17: 2140
Case #18: 886
Case #19: 673
Case #20: 0
Case #21: 1772
Case #22: 0
Case #...

result:

ok 55 lines

Subtask #2:

score: 25
Accepted

Test #2:

score: 25
Accepted
time: 8ms
memory: 3780kb

input:

55
5
0 -1 7 10
0 1 7 10
5 0 1 -15
10 0 6 10
15 1 2 -20
171
46 50 3 3
30 6 8 2
14 30 8 2
10 10 8 4
48 28 1 -2
18 18 9 3
52 12 1 -2
54 6 10 4
26 54 10 4
24 36 1 -1
30 14 3 1
4 36 1 -1
40 4 1 -2
14 14 9 4
52 40 1 -3
20 48 1 -2
50 6 8 3
16 16 1 -3
10 42 3 2
50 38 7 3
44 52 1 -2
4 48 1 -2
16 52 1 -1
32 5...

output:

Case #1: 5
Case #2: 24
Case #3: 18455
Case #4: 46
Case #5: 34885
Case #6: 12211
Case #7: 4653
Case #8: 3560
Case #9: 16236
Case #10: 64
Case #11: 12885
Case #12: 18102
Case #13: 17
Case #14: 10
Case #15: 3824
Case #16: 2589
Case #17: 3949
Case #18: 1
Case #19: 0
Case #20: 28
Case #21: 40141
Case #22...

result:

ok 55 lines

Extra Test:

score: 0
Extra Test Passed