QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#234929#1909. Greedy Pie EatersGMBox100 ✓65ms55912kbC++201.2kb2023-11-02 02:42:162023-11-02 02:42:17

詳細信息

Test #1:

score: 5.88235
Accepted
time: 0ms
memory: 1612kb

input:

2 2
100 1 2
100 1 1

output:

200

result:

ok single line: '200'

Test #2:

score: 5.88235
Accepted
time: 0ms
memory: 7968kb

input:

100 781
180671 6 82
580548 43 98
380563 51 69
673048 1 19
517322 1 99
33185 19 59
846815 42 57
862247 38 84
145351 47 96
316133 30 94
453871 34 63
564500 37 98
111927 12 17
730038 8 27
911437 9 56
891774 22 73
289872 30 89
128797 12 69
3811 77 98
968512 75 80
768209 43 55
563356 53 74
619478 38 51
3...

output:

84548466

result:

ok single line: '84548466'

Test #3:

score: 5.88235
Accepted
time: 7ms
memory: 15548kb

input:

150 2420
402052 27 142
697723 67 130
207615 69 132
14328 16 57
796931 115 149
435982 43 83
588386 32 54
48696 15 17
202407 45 46
395293 46 150
18765 2 64
876258 134 142
823814 50 101
839528 50 62
891815 75 84
269786 41 62
601279 81 123
279100 49 130
12162 69 130
60719 67 102
523866 59 123
702457 7 8...

output:

138666644

result:

ok single line: '138666644'

Test #4:

score: 5.88235
Accepted
time: 9ms
memory: 26028kb

input:

200 2229
472451 126 172
87512 46 83
851981 10 166
188655 72 178
928995 65 159
226996 26 187
459064 144 146
577192 61 191
899255 62 88
771701 105 157
657875 46 180
575351 144 170
563920 119 128
663907 109 188
536833 175 193
762489 31 195
423384 124 127
415142 48 103
852318 86 169
928312 17 174
400593...

output:

178217701

result:

ok single line: '178217701'

Test #5:

score: 5.88235
Accepted
time: 16ms
memory: 39496kb

input:

250 10677
1203 13 59
488039 80 101
240529 139 167
788536 215 242
929354 19 149
384174 15 138
351790 41 150
185997 128 226
160449 38 46
510318 115 250
136495 125 245
515197 91 110
805056 54 142
317212 2 17
201108 67 224
421030 16 171
408607 49 144
339680 117 124
941701 93 180
576099 148 227
748935 13...

output:

240437505

result:

ok single line: '240437505'

Test #6:

score: 5.88235
Accepted
time: 35ms
memory: 55900kb

input:

300 17038
700169 45 113
999159 42 296
615539 102 255
851274 49 61
78581 256 281
228300 6 203
455216 139 208
19270 24 32
295610 133 189
291624 110 222
913583 171 182
505098 139 201
104636 124 285
17960 17 37
243338 94 130
658887 17 285
184239 23 75
349891 3 285
96145 70 95
358256 125 267
252323 10 52...

output:

291648671

result:

ok single line: '291648671'

Test #7:

score: 5.88235
Accepted
time: 22ms
memory: 55812kb

input:

300 4560
318859 61 158
285003 216 225
210330 94 125
257586 91 252
953453 101 242
714167 10 55
600425 90 213
751051 107 263
248826 106 115
240437 153 195
900239 146 290
622773 227 240
794122 36 142
100439 196 265
657593 35 295
184432 176 233
756717 274 289
484017 274 275
75091 233 252
146553 106 123
...

output:

269840431

result:

ok single line: '269840431'

Test #8:

score: 5.88235
Accepted
time: 65ms
memory: 55912kb

input:

300 43953
72326 235 298
132844 105 156
976147 109 199
683495 239 276
82948 30 170
430892 156 159
761516 161 163
812271 54 211
449868 110 160
313745 13 63
811803 197 292
287377 82 120
241748 215 221
378816 146 188
552222 109 200
258947 3 281
754153 122 254
499436 213 279
497672 101 119
112474 49 188
...

output:

296637583

result:

ok single line: '296637583'

Test #9:

score: 5.88235
Accepted
time: 55ms
memory: 55888kb

input:

300 41615
51156 158 211
371408 17 54
405374 61 252
947285 79 88
857339 77 300
670871 124 168
585624 154 214
441938 65 260
766756 13 187
867979 145 174
568961 280 284
209446 52 149
174358 174 226
175625 12 187
68828 238 267
626381 207 281
2795 132 275
264646 25 99
740785 52 255
116479 177 241
123746 ...

output:

296545037

result:

ok single line: '296545037'

Test #10:

score: 5.88235
Accepted
time: 1ms
memory: 3324kb

input:

50 20
204414 14 38
862492 2 25
361742 13 31
324259 16 42
489157 9 48
624174 17 47
871391 23 25
747770 15 47
746949 5 19
266344 13 45
48574 36 38
44042 19 40
95178 1 12
787097 1 42
631770 14 48
368457 19 25
63010 26 39
291017 33 38
333941 1 23
534191 9 14

output:

7511349

result:

ok single line: '7511349'

Test #11:

score: 5.88235
Accepted
time: 1ms
memory: 3312kb

input:

50 20
43125 6 48
354745 32 33
15952 12 26
183113 6 43
947342 13 23
348563 34 36
835648 8 22
335901 7 41
109099 4 45
52725 44 46
143889 17 25
819359 7 33
111688 25 50
811293 13 18
213693 26 26
738746 32 39
533244 32 38
950248 5 13
741841 22 25
407826 27 41

output:

8218250

result:

ok single line: '8218250'

Test #12:

score: 5.88235
Accepted
time: 1ms
memory: 3340kb

input:

50 20
63090 4 37
666510 1 30
427297 2 40
199096 25 35
763562 2 44
994724 31 41
931713 28 40
722120 20 34
673005 1 48
380533 19 23
894121 15 34
280503 13 50
291565 3 40
741768 10 41
100129 33 48
890623 2 45
440877 32 38
29204 28 45
211469 12 18
983873 28 50

output:

10275946

result:

ok single line: '10275946'

Test #13:

score: 5.88235
Accepted
time: 1ms
memory: 3340kb

input:

50 20
913941 15 49
210912 5 15
77222 7 31
124110 13 26
967789 13 44
444171 17 29
588314 36 47
455453 2 42
798431 27 46
869333 4 30
927273 16 44
848575 13 47
204573 8 18
513139 30 48
226729 9 44
136146 17 41
247478 7 40
582003 12 48
60761 43 50
820007 6 7

output:

9226714

result:

ok single line: '9226714'

Test #14:

score: 5.88235
Accepted
time: 1ms
memory: 3232kb

input:

50 1071
744937 39 44
408563 11 34
419407 29 50
960387 13 36
545869 18 49
153765 3 3
784657 14 38
326858 30 36
495439 38 50
902951 2 23
589378 20 36
91700 5 28
952152 23 25
522144 30 41
188192 9 31
252586 45 48
840365 14 22
633697 13 23
629742 5 32
661859 23 45
92835 10 45
815232 35 43
792860 10 29
7...

output:

47421399

result:

ok single line: '47421399'

Test #15:

score: 5.88235
Accepted
time: 1ms
memory: 3336kb

input:

50 311
249582 32 49
124762 9 23
564924 26 38
773474 25 49
269906 38 45
77824 24 46
432885 10 47
421650 24 45
788795 38 39
904179 26 49
649936 8 11
712534 23 26
996771 22 48
21528 11 32
599163 33 33
885420 7 49
194574 28 32
695859 11 24
185230 45 46
207632 3 26
19243 20 39
782187 17 49
538420 1 44
72...

output:

39293356

result:

ok single line: '39293356'

Test #16:

score: 5.88235
Accepted
time: 1ms
memory: 3236kb

input:

50 304
982735 4 32
387715 34 41
357536 17 44
50155 12 46
362131 5 41
121784 32 41
914200 20 40
454920 24 26
40498 15 34
75636 19 23
441224 34 44
228265 11 19
801365 2 32
916653 29 40
337091 15 31
243514 11 13
522301 9 22
97440 19 19
220628 8 45
329871 36 40
617262 27 27
588716 20 32
830219 15 41
419...

output:

40884765

result:

ok single line: '40884765'

Test #17:

score: 5.88235
Accepted
time: 1ms
memory: 3328kb

input:

50 939
459330 17 50
32953 5 31
203215 2 23
44620 18 47
574874 2 6
612533 25 39
78843 15 46
106890 18 29
130166 21 42
430267 22 31
350385 36 38
282915 16 49
242242 19 20
19576 32 36
613118 19 19
996470 15 41
960870 20 39
984652 19 39
801016 28 35
73112 43 50
104488 5 11
141292 36 43
755942 25 44
4556...

output:

46486949

result:

ok single line: '46486949'