QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505467#5872. Dire Straightsxiaowuc116 ✓13ms3752kbC++171.3kb2024-08-05 05:36:042024-08-05 05:36:05

详细

Subtask #1:

score: 4
Accepted

Test #1:

score: 4
Accepted
time: 0ms
memory: 3752kb

input:

100
10 1 2 3 4 5 10 9 8 7 6
8 101 102 103 104 105 106 103 104
0
5 1 2 3 4 9
9 6382 6381 6381 6382 6380 6382 6383 6383 6381
7 5407 5408 5408 5409 5410 5407 5408
10 107 107 100 108 108 100 101 110 102 103
10 3878 3885 3884 3878 3877 3879 3883 3880 3882 3879
9 5520 5521 5519 5525 5518 5519 5521 5522 55...

output:

Case #1: 10
Case #2: 4
Case #3: 0
Case #4: 1
Case #5: 3
Case #6: 2
Case #7: 1
Case #8: 3
Case #9: 2
Case #10: 3
Case #11: 5
Case #12: 4
Case #13: 2
Case #14: 2
Case #15: 3
Case #16: 2
Case #17: 3
Case #18: 3
Case #19: 3
Case #20: 3
Case #21: 2
Case #22: 2
Case #23: 3
Case #24: 5
Case #25: 5
Case #26...

result:

ok 100 lines

Subtask #2:

score: 12
Accepted

Test #2:

score: 12
Accepted
time: 13ms
memory: 3728kb

input:

100
10 1 2 3 4 5 10 9 8 7 6
8 101 102 103 104 105 106 103 104
0
5 1 2 3 4 9
990 4967 4964 4842 4921 4871 4943 4955 4852 4872 4883 4834 4948 4770 4872 4874 4875 4921 4772 4920 4873 4804 4857 4962 4861 4909 4831 4764 4986 4747 4946 4869 4866 4974 4929 4773 4957 4806 4910 4851 4763 4972 4820 4875 4811 ...

output:

Case #1: 10
Case #2: 4
Case #3: 0
Case #4: 1
Case #5: 10
Case #6: 3
Case #7: 2
Case #8: 1000
Case #9: 31
Case #10: 19
Case #11: 18
Case #12: 20
Case #13: 2
Case #14: 19
Case #15: 17
Case #16: 7
Case #17: 11
Case #18: 5
Case #19: 28
Case #20: 10
Case #21: 3
Case #22: 8
Case #23: 12
Case #24: 21
Case ...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed