QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#577500#9141. Array SpreadNailongGroup#WA 3ms5684kbC++234.7kb2024-09-20 11:58:592024-09-20 11:58:59

詳細信息

Test #1:

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

input:

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

output:

1
2
499122178

result:

ok 3 number(s): "1 2 499122178"

Test #2:

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

input:

2000
1000000000 1
259923446 367011266
1000000000 1
882434225 971573327
1000000000 1
41585677 470369580
1000000000 1
371902212 947250194
1000000000 1
787209148 924205796
1000000000 1
259074809 960876164
1000000000 1
148079314 188254573
1000000000 1
940091047 948318624
1000000000 1
40636497 743979446
...

output:

1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
...

result:

ok 2000 numbers

Test #3:

score: -100
Wrong Answer
time: 3ms
memory: 3508kb

input:

1000
1000000000 5
575330909 661595447
708422488 913945134
658050911 930246647
786571892 904549453
851755566 969150871
1000000000 2
198072104 844159589
8876188 644559580
1000000000 2
740802634 976972118
783909534 898449184
1000000000 2
871819537 941611957
465883854 640988372
1000000000 1
99458969 462...

output:

1
1
1
12
1
1
13
1
1
1
1
1
1
1
12
1
1
12
13
2
1
1
12
1
1
14
15
1
14
1
1
1
13
1
1
1
1
13
1
1
1
1
1
12
12
1
1
1
1
13
1
1
1
13
12
12
1
13
1
13
1
12
1
1
1
1
1
1
1
1
12
1
1
1
1
1
1
1
12
1
1
1
12
12
13
1
1
12
1
14
1
12
1
1
1
1
1
13
1
1
1
13
1
13
14
13
15
1
1
1
1
1
12
1
1
1
1
1
15
1
12
1
13
1
1
1
12
1
1
1
1...

result:

wrong answer 4th numbers differ - expected: '1', found: '12'