QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#131369#2639. High ScoreZhangYiDeAC ✓1ms3616kbC++725b2023-07-27 00:33:502023-07-27 00:33:53

詳細信息

Test #1:

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

input:

7
5 0 5 0
9 7 2 0
6 9 1 0
5 0 1 0
1 3 1 0
8 4 9 0
4 0 6 0

output:

50
148
125
26
18
189
52

result:

ok 7 lines

Test #2:

score: 0
Accepted
time: 1ms
memory: 3400kb

input:

7
8 2 8 1
5 3 6 1
6 8 9 1
1 3 8 1
3 9 5 1
1 3 7 1
1 5 1 1

output:

163
105
243
98
155
81
45

result:

ok 7 lines

Test #3:

score: 0
Accepted
time: 1ms
memory: 3512kb

input:

7
5 4 9 2
5 7 0 2
8 3 6 2
4 8 1 2
0 6 9 2
8 0 3 2
7 7 6 2

output:

190
106
166
124
157
109
211

result:

ok 7 lines

Test #4:

score: 0
Accepted
time: 1ms
memory: 3424kb

input:

7
3 3 2 3
8 9 8 3
2 5 5 3
9 2 2 3
2 4 4 3
2 3 6 3
0 9 1 3

output:

64
328
110
166
85
108
145

result:

ok 7 lines

Test #5:

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

input:

7
9 1 1 4
0 7 5 4
8 9 4 4
2 1 5 4
0 4 1 4
2 6 2 4
8 2 8 4

output:

178
146
277
93
65
122
226

result:

ok 7 lines

Test #6:

score: 0
Accepted
time: 1ms
memory: 3440kb

input:

7
1 0 7 5
7 6 8 5
9 5 1 5
1 2 5 5
7 6 9 5
4 5 7 5
1 6 7 5

output:

145
296
229
112
323
213
188

result:

ok 7 lines

Test #7:

score: 0
Accepted
time: 1ms
memory: 3436kb

input:

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

output:

305
259
239
168
324
242
283

result:

ok 7 lines

Test #8:

score: 0
Accepted
time: 1ms
memory: 3396kb

input:

7
7 3 3 7
1 0 8 7
9 9 5 7
6 2 7 7
1 1 7 7
4 8 9 7
5 5 2 7

output:

235
226
397
250
205
364
187

result:

ok 7 lines

Test #9:

score: 0
Accepted
time: 1ms
memory: 3420kb

input:

7
12 3 3 10
6 0 13 10
14 14 10 10
1 12 12 10
11 1 2 10
4 8 4 10
10 5 2 10

output:

523
565
942
636
453
384
443

result:

ok 7 lines

Test #10:

score: 0
Accepted
time: 1ms
memory: 3616kb

input:

7
7 13 3 30
1 10 8 30
9 9 15 30
16 2 7 30
1 11 17 30
14 8 19 30
15 15 2 30

output:

1928
1672
2250
2183
2338
2717
2268

result:

ok 7 lines

Test #11:

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

input:

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

output:

26
21
18

result:

ok 3 lines

Test #12:

score: 0
Accepted
time: 1ms
memory: 3424kb

input:

7
27 3 3 50
21 0 28 50
29 29 25 50
16 12 27 50
11 1 17 50
4 8 19 50
25 5 2 50

output:

5968
6525
7882
6413
4618
4869
5668

result:

ok 7 lines

Test #13:

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

input:

7
383574 416782 880911 0
952666 422334 356554 0
813068 799283 259003 0
487102 426269 757645 0
729453 678430 186370 0
383508 587244 41633 0
72039 166282 741301 0

output:

1096843123939
1213071765906
1367017253743
993002548673
1027104025599
493667499720
582366997919

result:

ok 7 lines

Test #14:

score: 0
Accepted
time: 1ms
memory: 3444kb

input:

7
321071 780787 744059 100
698048 361699 693927 100
286028 32527 915597 100
534101 739399 823274 100
573643 922779 835897 100
304878 443829 221824 100
589167 700104 727876 100

output:

1266497136788
1099774009727
921371246011
1509923241985
1879499750200
339230991669
1367216545450

result:

ok 7 lines

Test #15:

score: 0
Accepted
time: 1ms
memory: 3404kb

input:

7
128581 570648 936269 10000
681630 543078 806240 10000
139674 932735 573551 10000
864383 941506 445610 10000
789799 677802 45152 10000
30632 769726 355990 10000
435301 757606 169156 10000

output:

1237598133893
1425804710130
1237219833820
1851093030095
1101133010773
735640049024
807320868265

result:

ok 7 lines

Test #16:

score: 0
Accepted
time: 1ms
memory: 3448kb

input:

7
772538 358956 226025 1000000
226979 295256 620238 1000000
203222 800460 404300 1000000
86831 391468 198930 1000000
194500 28701 142601 1000000
232255 548257 878614 1000000
665943 820456 141077 1000000

output:

3321829254180
2763868337474
3446415305438
1983296570302
1447989243509
3883720309855
3777443834653

result:

ok 7 lines

Test #17:

score: 0
Accepted
time: 1ms
memory: 3392kb

input:

7
505867 183794 882513 100000000
240387 356680 623507 100000000
860282 921416 249795 100000000
284344 438548 61149 100000000
685587 222689 462731 100000000
347664 561284 993478 100000000
593738 123306 117212 100000000

output:

10177571112137852
10125275169193927
10185934691855170
10087986515486884
10137851141462474
10200118510955684
10119129068655708

result:

ok 7 lines

Test #18:

score: 0
Accepted
time: 1ms
memory: 3544kb

input:

7
62859218 62063469 19416461 0
58276370 13453536 97424588 0
62884745 29326474 14146732 0
60408430 29297467 6545937 0
60929735 95779461 40572270 0
11368965 36405200 96394513 0
5970914 77396975 17173374 0

output:

8180154565565233
13068683372424692
5014663356294649
4550369324710517
14532247133579536
10746494168301149
6320868369486295

result:

ok 7 lines

Test #19:

score: 0
Accepted
time: 1ms
memory: 3448kb

input:

7
27682956 64662216 35083131 100
18614986 59375931 29599644 100
28311081 48573882 32551960 100
87654877 33141149 3205955 100
92007993 87987859 14670157 100
75537347 4576589 66325269 100
52192538 99827198 11122119 100

output:

6178387437925645
4748169816324795
4220579332744052
8792008919814440
16422566117996278
10125892406111214
12813252057767242

result:

ok 7 lines

Test #20:

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

input:

7
61187239 61012392 13930369 10000
4518803 2568371 28025618 10000
98257987 21729100 20934101 10000
78146578 95726563 74368901 10000
93708520 18359055 47546115 10000
40301334 17596657 1719726 10000
35621755 74995132 52399877 10000

output:

7661669316773529
813012004766971
10566987787059077
20803111104693161
11380849071590035
1937603455988363
9640426614584863

result:

ok 7 lines

Test #21:

score: 0
Accepted
time: 1ms
memory: 3440kb

input:

7
33085997 97388704 32498176 1000000
26206944 83322932 37395711 1000000
74640245 50706967 91001308 1000000
18893675 84309611 49901467 1000000
67574913 22955069 1764298 1000000
50839399 25944702 32173138 1000000
6161149 13041095 56467440 1000000

output:

11831151943097833
9195600159539889
16606603704658747
10124857224984760
5232566645535220
4395561840929963
3510536619080869

result:

ok 7 lines

Test #22:

score: 0
Accepted
time: 1ms
memory: 3612kb

input:

7
98085617 97374923 63957815 100000000
86930886 25588219 37144251 100000000
40639174 91236700 2480202 100000000
73102997 81536349 65130888 100000000
51905898 6530981 67428303 100000000
15615030 83038345 92967886 100000000
105053 47719452 66908244 100000000

output:

52810389838805548
36977608653805491
38229169309614494
42541527206216570
30769112651185441
44375801038854131
30135519051212020

result:

ok 7 lines

Test #23:

score: 0
Accepted
time: 1ms
memory: 3400kb

input:

7
1 1 200000000 200000000
1 1 200000000 200000000
1 1 200000000 200000000
1 1 200000000 200000000
1 1 200000000 200000000
1 1 200000000 200000000
1 1 200000000 200000000

output:

160000000000000009
160000000000000009
160000000000000009
160000000000000009
160000000000000009
160000000000000009
160000000000000009

result:

ok 7 lines

Test #24:

score: 0
Accepted
time: 1ms
memory: 3560kb

input:

7
123366560 95603658 135907883 34306622
133722357 119310320 139347253 166470036
23071440 19712246 54820121 17413096
164501808 188782082 51808415 98000063
182195202 11752816 35687149 166963470
155191629 181344730 23537616 71912031
12271329 131902654 41700520 70013637

output:

53332345930835195
125640836306619610
6138501762192927
111988955753541019
123323479602751353
88777448235611530
42659707540792625

result:

ok 7 lines

Test #25:

score: 0
Accepted
time: 1ms
memory: 3516kb

input:

7
35 154 147 819
83 176 123 364
75 157 177 616
24 157 192 1015
46 64 98 630
176 85 15 448
21 144 142 112

output:

969808
314199
659648
1482242
536518
396931
86288

result:

ok 7 lines

Test #26:

score: 0
Accepted
time: 1ms
memory: 3564kb

input:

3
1 3 3 3
1 3 3 3
1 3 3 3

output:

55
55
55

result:

ok 3 lines

Test #27:

score: 0
Accepted
time: 1ms
memory: 3440kb

input:

7
999999994 1000000000 1000000000 1000000000
1000000000 999999995 1000000000 1000000000
1000000000 1000000000 999999996 1000000000
999999997 1000000000 1000000000 1000000000
1000000000 999999998 1000000000 1000000000
1000000000 1000000000 999999999 1000000000
1000000000 1000000000 1000000000 1000000...

output:

5999999994999999994
5999999996999999990
5999999998999999988
6000000000999999988
6000000002999999990
6000000004999999994
6000000007000000000

result:

ok 7 lines

Test #28:

score: 0
Accepted
time: 1ms
memory: 3452kb

input:

7
1 1 1000000000 1000000000
1 1 1000000000 1000000000
1 1 1000000000 1000000000
1 1 1000000000 1000000000
1 1 1000000000 1000000000
1 1 1000000000 1000000000
1 1 1000000000 1000000000

output:

4000000000000000009
4000000000000000009
4000000000000000009
4000000000000000009
4000000000000000009
4000000000000000009
4000000000000000009

result:

ok 7 lines

Test #29:

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

input:

7
1 1 999999999 1000000000
1 1000000000 1 1000000000
150 1 999999998 1000000000
1 157 999999997 1000000000
1 3333 1000000000 1000000000
177 1 1000000000 1000000000
1 145345 1000000000 1000000000

output:

3999999996000000010
4000000000000000009
3999999992000022512
3999999988000024666
4000000000011108897
4000000000000031337
4000000021125169033

result:

ok 7 lines

Test #30:

score: 0
Accepted
time: 1ms
memory: 3560kb

input:

7
0 0 0 0
0 0 0 3
0 1 0 2
2 0 2 2
3 0 3 3
0 4 4 4
0 2 3 4

output:

0
10
10
26
48
80
53

result:

ok 7 lines