QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#590773#5617. Height OrderingMaMengQi100 ✓2ms3816kbC++201.3kb2024-09-26 11:11:562024-09-26 11:11:58

Details

Tip: Click on the bar to expand more detailed information

Pretests


Final Tests

Test #1:

score: 100
Accepted
time: 2ms
memory: 3816kb

input:

1000
1 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919
2 919 918 917 916 915 914 913 912 911 910 909 908 907 906 905 904 903 902 901 900
3 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 900
4 918 917 916 915 914 913 912 911 910 909 908 907...

output:

1 0
2 190
3 19
4 171
5 86
6 69
7 70
8 123
9 103
10 92
11 96
12 81
13 102
14 70
15 99
16 116
17 106
18 95
19 79
20 100
21 101
22 73
23 94
24 106
25 104
26 76
27 95
28 89
29 106
30 95
31 84
32 91
33 99
34 102
35 111
36 98
37 94
38 101
39 100
40 89
41 76
42 87
43 123
44 80
45 92
46 51
47 96
48 95
49 92...

result:

ok 1000 lines