QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#879609#7654. Cosmic Commuteucup-team5957#WA 187ms24660kbC++202.2kb2025-02-02 07:50:372025-02-02 07:50:38

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 7740kb

input:

5 5 3
2 3 4
1 2
1 3
2 4
3 4
4 5

output:

5/2

result:

ok single line: '5/2'

Test #2:

score: 0
Accepted
time: 1ms
memory: 5856kb

input:

5 6 3
2 3 4
1 2
1 3
2 4
3 4
4 5
1 4

output:

2/1

result:

ok single line: '2/1'

Test #3:

score: 0
Accepted
time: 0ms
memory: 5864kb

input:

9 8 3
3 4 8
1 2
2 3
1 4
4 5
5 6
6 7
7 8
8 9

output:

5/1

result:

ok single line: '5/1'

Test #4:

score: 0
Accepted
time: 1ms
memory: 5860kb

input:

5 4 2
1 5
1 2
2 3
3 4
4 5

output:

0/1

result:

ok single line: '0/1'

Test #5:

score: 0
Accepted
time: 0ms
memory: 5860kb

input:

29 29 3
8 23 29
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 29
1 19
19 20
20 21
21 22
22 23
23 24
24 25
25 26
26 27
27 28
28 29

output:

10/1

result:

ok single line: '10/1'

Test #6:

score: 0
Accepted
time: 0ms
memory: 7904kb

input:

10 15 3
10 8 4
6 9
5 3
10 1
7 9
4 9
3 7
3 1
7 2
10 7
3 6
5 10
1 9
9 5
2 8
1 2

output:

1/1

result:

ok single line: '1/1'

Test #7:

score: 0
Accepted
time: 0ms
memory: 7904kb

input:

100 148 30
41 26 93 86 31 61 8 91 19 50 80 29 100 12 34 44 72 78 4 95 2 25 42 9 97 82 21 53 11 90
10 3
31 5
90 93
30 82
92 30
69 75
69 66
68 25
66 2
76 25
67 45
65 55
69 53
5 88
81 91
4 65
42 89
19 32
53 37
80 76
73 28
46 62
2 25
89 23
74 11
5 70
45 65
49 52
82 49
13 63
96 68
39 29
78 26
57 10
60 7
...

output:

7/1

result:

ok single line: '7/1'

Test #8:

score: 0
Accepted
time: 1ms
memory: 8052kb

input:

1000 14986 300
324 602 296 29 727 459 626 440 113 16 235 348 468 565 716 814 765 832 635 771 534 220 2 922 302 435 420 672 946 1 471 572 447 636 540 148 566 167 884 687 217 400 795 21 564 707 427 941 366 537 615 20 759 289 535 679 270 323 99 663 746 101 438 304 260 924 165 37 876 282 261 465 391 914...

output:

737/299

result:

ok single line: '737/299'

Test #9:

score: 0
Accepted
time: 22ms
memory: 8904kb

input:

10000 149976 3000
344 856 1652 7515 4744 6780 8430 7729 278 4795 2511 5201 1762 3987 6864 7339 1990 8906 6334 3955 695 6246 3822 5418 359 1921 7912 6485 9111 1856 1737 8136 7068 920 1192 7047 5875 6161 6290 4503 2671 4628 6324 3230 2083 5257 6000 7040 3385 3026 1443 3309 6150 7586 950 145 9970 623 7...

output:

2/1

result:

ok single line: '2/1'

Test #10:

score: 0
Accepted
time: 167ms
memory: 21924kb

input:

100000 999979 30000
33146 97822 56252 94152 18153 77780 22531 82733 79575 17781 19440 17289 33774 12640 86365 16423 3280 42147 87042 86193 66643 44985 15574 38787 41314 22300 52724 57811 78760 90794 631 79670 6491 43373 15357 24492 97908 67604 22753 5145 74945 18857 67934 43814 18143 35579 9799 8296...

output:

4/1

result:

ok single line: '4/1'

Test #11:

score: 0
Accepted
time: 187ms
memory: 24660kb

input:

200000 999990 60000
5242 59947 81698 89167 116633 159544 119108 186314 134684 148809 37533 38293 2845 54485 143594 133388 10815 10311 57424 186052 22632 80520 6654 123143 40968 12200 109455 185609 175036 94888 32984 140643 81671 35035 129147 47436 104806 171393 30646 74744 156765 20446 42849 36760 7...

output:

6/1

result:

ok single line: '6/1'

Test #12:

score: 0
Accepted
time: 0ms
memory: 5856kb

input:

100 150 30
77 65 91 97 75 63 96 43 46 92 78 67 79 5 66 49 87 35 100 71 19 39 40 61 47 11 20 82 69 34
37 9
58 39
61 49
51 21
30 68
29 38
17 65
12 36
52 6
100 83
48 63
4 86
40 19
20 92
6 39
5 97
23 60
82 81
24 98
98 16
33 49
25 75
92 3
53 42
68 89
44 52
62 64
66 89
90 11
26 68
55 18
31 2
22 90
16 91
4...

output:

156/29

result:

ok single line: '156/29'

Test #13:

score: 0
Accepted
time: 0ms
memory: 5728kb

input:

10 15 3
2 3 6
1 8
6 8
8 7
8 5
10 5
1 6
3 8
1 9
4 10
4 6
10 9
3 7
9 4
9 7
2 7

output:

2/1

result:

ok single line: '2/1'

Test #14:

score: -100
Wrong Answer
time: 0ms
memory: 7916kb

input:

1000 1605 200
601 586 983 659 765 37 273 396 262 663 776 16 936 899 921 537 73 746 705 733 233 516 276 164 873 573 529 905 786 270 788 203 308 2 717 861 969 699 488 656 693 157 703 280 512 283 967 804 946 750 860 382 129 792 647 196 521 855 653 793 820 532 835 697 457 31 172 781 300 643 92 215 550 9...

output:

2933/199

result:

wrong answer 1st lines differ - expected: '2932/199', found: '2933/199'