QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#554408#7311. Welcome to ICPCCamp 2017ucup-team1005#WA 56ms7732kbC++201.4kb2024-09-09 11:06:382024-09-09 11:06:41

详细

Test #1:

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

input:

2 3
2 1 3
3 2 1 3
2 1 3
0 3
1 2 3

output:

5
4

result:

ok 2 number(s): "5 4"

Test #2:

score: 0
Accepted
time: 47ms
memory: 7720kb

input:

3 16
1 7
1 16
1 4
14 10 8 1 4 13 5 9 7 12 2 6 3 16 11 15
10 16
2 10 6
2 12 1
3 16 4 1
2 11 5
1 14
1 9
4 14 10 4 13
2 7 14
1 15
1 14
6 15 12 9 5 14 10 16 4 7 11 2 3 8 1 13
6 15
2 15 5
2 10 13
1 11
2 6 10
3 4 9 12
3 13 1 10
7 3 4 1 10 12 13 6 9 14 15 11 5 2 8
5 6
1 6
1 6
1 4
5 4 5 1 2 3
3 4 6 3
3 5 4 ...

output:

62
570
275
17
17
4658
38
49
964
208
37
69
2
4
32
26
15
133
42
26
68
19
4
35
32
2
4
24
33
13
2
36
4
97
20
41
2
22
35
32
22
24
10
21
31
187
39
5
18
17
90
64
39
18
57
6
37
79
64
56
61
7
64
38
32
26
7
16
78
4
13
13
34
16
68
12
8
95
124
87
4
2
34
4
35
13
8
128
79
23
59
37
27
9
149
84
8
13
152
8
32
36
16
...

result:

ok 20000 numbers

Test #3:

score: -100
Wrong Answer
time: 56ms
memory: 7732kb

input:

7 43
2 20 8
1 28
2 26 42
2 32 27
1 1
1 24
1 5
2 27 9 19 25 31 33 21 26 30 5 38 39 18 29 28 22 11 40 15 35 13 23 24 4 17 34 16 7 36 1 41 3 43 12 32 20 14 37 6 8 10 42
25 7
1 5
1 1
1 1
1 1
1 4
1 3
3 2 3 7
2 5 3
1 1
1 7
1 5
2 1 4
1 3
1 6
3 7 1 6
1 3
3 3 7 2
1 1
1 5
2 4 5
2 7 6
2 6 4
1 4
1 7
3 6 3 2
7 6...

output:

1631
128
2662023109
811
1220558
12237484
157
23
423317
533
6144
446
16
92
464
66
3717
335
269
143
1149
8
87
462
8
146
273
60
2750
3121
25730
8300
453
71
8
225
179
1024
2133
80
1869
210
5
520
145
6406
397
448
2
5385
374
2
1568
1340
625
2109
1906
15
134293
207
452
2
534
207
338
747
141
834
8183
396
61...

result:

wrong answer 3rd numbers differ - expected: '662023095', found: '2662023109'