QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#397860#8540. Splitting HaybalesZ_301#31.818182 781ms16888kbC++176.5kb2024-04-24 18:05:182024-07-04 03:37:23

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 4.54545
Accepted
time: 1ms
memory: 9780kb

input:

2
3 1
15
1 1 -2
1 1 -1
1 1 0
1 1 1
1 1 2
1 2 -2
1 2 -1
1 2 0
1 2 1
1 2 2
2 2 -2
2 2 -1
2 2 0
2 2 1
2 2 2

output:

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

result:

ok 15 lines

Test #2:

score: 4.54545
Accepted
time: 1ms
memory: 9856kb

input:

5
4 4 3 1 1
7
1 1 20
1 2 20
1 5 20
1 1 0
1 5 0
1 4 0
3 5 2

output:

16
12
7
4
1
2
1

result:

ok 7 lines

Test #3:

score: 0
Runtime Error

input:

200000
199998 199997 199996 199995 199994 199994 199993 199992 199992 199991 199991 199990 199990 199988 199987 199986 199986 199985 199984 199983 199982 199980 199979 199979 199976 199976 199975 199974 199974 199974 199974 199972 199971 199970 199970 199970 199969 199968 199968 199967 199967 199967...

output:


result:


Test #4:

score: 0
Runtime Error

input:

200000
199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169 199169...

output:


result:


Test #5:

score: 4.54545
Accepted
time: 543ms
memory: 16780kb

input:

200000
196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702 196702...

output:

57359
611
-4892
-178757730
42877
-667
4884
1795
13188
6598
138304
31855
-931
10052
-1113
-133186
40165
58151
-3832
-59867
2297
2169
-93321
1299
153093
45569
1061
69503
-12063
-59018
-847
-202330620
69812
-46500
-80543
-63807
277
46255
18862
94952
68262
1698
26207
-3046
10112
-17839
-804419670
-25272...

result:

ok 200000 lines

Test #6:

score: 0
Runtime Error

input:

200000
200000 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 ...

output:


result:


Test #7:

score: 0
Runtime Error

input:

200000
200000 199999 199991 199988 199980 199971 199967 199959 199946 199936 199934 199934 199926 199924 199921 199910 199909 199905 199892 199892 199892 199888 199883 199882 199878 199877 199873 199872 199863 199859 199857 199855 199854 199853 199847 199844 199842 199838 199837 199833 199829 199828...

output:


result:


Test #8:

score: 0
Runtime Error

input:

200000
199988 199987 199985 199978 199976 199974 199962 199962 199960 199952 199950 199949 199946 199938 199931 199927 199920 199917 199914 199909 199907 199905 199901 199900 199897 199890 199885 199871 199850 199842 199840 199835 199835 199831 199829 199819 199818 199810 199809 199808 199807 199806...

output:


result:


Test #9:

score: 0
Runtime Error

input:

200000
199999 199999 199991 199990 199989 199986 199984 199983 199982 199981 199979 199977 199973 199973 199973 199972 199971 199969 199967 199964 199963 199962 199962 199961 199960 199959 199954 199953 199950 199950 199948 199947 199942 199938 199935 199934 199932 199931 199930 199925 199925 199922...

output:


result:


Test #10:

score: 0
Runtime Error

input:

200000
200000 199996 199994 199993 199991 199990 199990 199989 199981 199980 199979 199977 199973 199971 199968 199967 199967 199964 199963 199960 199958 199958 199955 199947 199946 199945 199945 199945 199945 199943 199940 199940 199940 199938 199936 199935 199934 199932 199932 199930 199926 199925...

output:


result:


Test #11:

score: 0
Runtime Error

input:

200000
199999 199999 199998 199998 199996 199996 199996 199993 199991 199991 199990 199990 199986 199985 199984 199984 199982 199981 199981 199976 199970 199968 199966 199965 199962 199960 199960 199957 199952 199951 199950 199945 199944 199942 199942 199941 199940 199938 199938 199935 199935 199934...

output:


result:


Test #12:

score: 0
Runtime Error

input:

200000
199999 199998 199998 199996 199994 199994 199993 199988 199986 199985 199983 199981 199981 199979 199977 199975 199973 199972 199972 199971 199970 199970 199967 199961 199961 199955 199952 199950 199947 199946 199943 199940 199938 199937 199933 199933 199933 199931 199928 199919 199915 199915...

output:


result:


Test #13:

score: 0
Runtime Error

input:

200000
199999 199999 199998 199998 199996 199996 199993 199992 199992 199992 199990 199989 199989 199989 199989 199988 199988 199986 199985 199982 199982 199981 199979 199978 199978 199978 199977 199977 199976 199975 199975 199972 199972 199971 199970 199969 199969 199967 199964 199964 199963 199963...

output:


result:


Test #14:

score: 4.54545
Accepted
time: 613ms
memory: 15348kb

input:

200000
199997 199993 199993 199993 199993 199992 199992 199991 199991 199990 199990 199990 199990 199986 199982 199982 199982 199980 199977 199977 199976 199974 199974 199974 199973 199973 199973 199971 199969 199968 199968 199966 199965 199965 199964 199963 199963 199962 199962 199962 199962 199961...

output:

0
-55846
1
69239
-36699
-89105
-64140
1
159285
1
60636
844737905
37010
0
13449
-4421
-1
-47211
-949
1
0
36123
-5115
-152828
-8943
-8313
45681237
0
0
-73778
-21301
-108731
206073603
1
-1
0
-30342
-495313695
1
-52
-74334
-134419
3
-38873
-130330
-8926
-43877
0
0
-846233453
-52
-89790
-43584
2
-53863
0...

result:

ok 200000 lines

Test #15:

score: 4.54545
Accepted
time: 611ms
memory: 16768kb

input:

200000
199996 199996 199995 199992 199991 199989 199988 199988 199986 199986 199985 199984 199983 199982 199982 199980 199978 199978 199973 199972 199971 199969 199969 199969 199969 199968 199968 199967 199967 199967 199967 199964 199961 199961 199960 199959 199959 199959 199958 199957 199956 199955...

output:

-59946
-114824
3816
0
63907
-40803
113641
3
1
-9890
-31946
0
0
-2
2
29249
0
-68641
-4
-1
0
61574
-27020
0
19327
162384
-122833
81442
-4201
16292
26355
46749
1
2
-35174
-107528
55201
108750
37007
2
0
0
-11268
87578
42309
43487
-29928
109883
48378
1
-929
40502
-51047
-42843
-108333
-7190
119592
50361
...

result:

ok 200000 lines

Test #16:

score: 0
Runtime Error

input:

200000
200000 199998 199996 199995 199993 199989 199988 199986 199985 199985 199985 199984 199979 199978 199977 199976 199974 199970 199969 199968 199968 199968 199966 199965 199964 199963 199963 199963 199961 199961 199961 199959 199959 199958 199958 199957 199956 199956 199955 199954 199954 199952...

output:


result:


Test #17:

score: 4.54545
Accepted
time: 781ms
memory: 16888kb

input:

200000
200000 200000 200000 200000 200000 200000 199998 199998 199998 199998 199996 199996 199996 199996 199996 199996 199994 199994 199994 199994 199992 199992 199992 199992 199992 199992 199990 199990 199990 199990 199990 199990 199988 199988 199988 199988 199986 199986 199986 199986 199984 199984...

output:

25728
-138377
161886
-138451
112828
-1
-118026
1
1
-117133
1
3342
97795
4797
1
-8564
-8987
1
34498
-100174
133383
100715
186477
126889
135751
-158957
-23614
127911
-31065561
1
122439
-1
4858
0
-148417
-165821
-1
138951
153129
-30321
-35278
169513
78435
-144990
-86108
-479774210
-1
-1895
42827
121289...

result:

ok 200000 lines

Test #18:

score: 4.54545
Accepted
time: 769ms
memory: 16456kb

input:

200000
200000 200000 200000 200000 199998 199998 199998 199998 199998 199998 199996 199996 199996 199996 199996 199996 199994 199994 199994 199994 199994 199994 199992 199992 199992 199992 199990 199990 199990 199990 199988 199988 199988 199988 199988 199988 199986 199986 199986 199986 199984 199984...

output:

-1
-34250
-73957
47388
10685
-33900
-151347
1
-4349
1
-15611
-100171
-1
-150845
-1
1
-121137
156682
104147
-63443
-128799
-128019
-155671
-166893
-141287
1
128537
-43126
535923341
80015
133545
1
-137261
1
129149
16186
1
-95455
166718
-122052
-24309
-1
74662
-148883
133071
149941
-182781
121585
1
695...

result:

ok 200000 lines

Test #19:

score: 0
Runtime Error

input:

200000
199999 199998 199998 199997 199996 199996 199996 199996 199995 199995 199994 199994 199993 199990 199990 199989 199988 199986 199985 199985 199984 199984 199983 199980 199979 199979 199979 199979 199977 199977 199976 199976 199974 199973 199972 199971 199971 199970 199968 199966 199964 199960...

output:


result:


Test #20:

score: 0
Runtime Error

input:

200000
199998 199995 199994 199993 199993 199992 199992 199991 199988 199986 199985 199985 199982 199981 199979 199978 199978 199977 199977 199977 199975 199975 199973 199971 199971 199970 199969 199968 199968 199967 199967 199963 199963 199962 199960 199959 199958 199958 199957 199956 199956 199954...

output:


result:


Test #21:

score: 0
Runtime Error

input:

200000
200000 199999 199999 199998 199996 199995 199994 199994 199993 199991 199990 199989 199988 199988 199985 199985 199981 199980 199980 199980 199980 199979 199979 199978 199975 199973 199972 199970 199969 199969 199969 199968 199968 199966 199965 199965 199963 199961 199961 199961 199958 199958...

output:


result:


Test #22:

score: 0
Runtime Error

input:

200000
200000 200000 199999 199997 199997 199996 199996 199995 199992 199991 199990 199989 199988 199988 199987 199987 199987 199986 199984 199984 199983 199982 199982 199982 199979 199979 199979 199974 199973 199972 199972 199970 199969 199969 199969 199967 199967 199965 199964 199961 199960 199956...

output:


result: