QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#860505#9975. Hitoshizukuucup-team4707#TL 1ms16416kbC++141.3kb2025-01-18 13:45:252025-01-18 13:45:26

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 16416kb

input:

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

output:

Yes
1 2 3
5 4 6
No

result:

ok >_< (2 test cases)

Test #2:

score: -100
Time Limit Exceeded

input:

100000
1
164154503 167959139
178382610 336470888
12298535 642802746
1
165064830 773386884
353585658 396628655
792066242 971207868
1
1607946 2087506
21674839 46761498
9518201 16843338
1
262361007 691952768
190585553 787375312
637191526 693319712
1
41970708 45277106
197619816 762263554
308360206 40724...

output:

NoNoNoYes
1 3 0
2 1 0
1 0 0
1 2 3
NoYes
1 3 0
2 1 0
1 0 0
1 2 3
1 0 0
2 1 3
NoNoNoNoNoYes
1 3 0
2 1 0
1 0 0
1 2 3
1 0 0
2 1 3
1 0 0
2 0 0
1 0 0
1 0 0
3 0 0
2 1 3
Yes
1 3 0
2 1 0
1 0 0
1 2 3
1 0 0
2 1 3
1 0 0
2 0 0
1 0 0
1 0 0
3 0 0
2 1 3
1 2 3
NoNoNoNoYes
1 3 0
2 1 0
1 0 0
1 2 3
1 0 0
2 1 3
1 0 0
2 ...

result: