QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#41130#4149. 计算器GuanYunchang100 ✓101ms4824kbC++141.3kb2022-07-27 23:52:192022-07-27 23:52:20

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

10 1
605132991 868371170 5013797
570870045 646139320 727123763
9467291 296231663 1037883251
164556874 882264705 167035009
435495882 610686804 1067960651
54248451 208399337 648690127
500747398 681536874 538153867
346873463 337045969 563269129
1026591041 940200882 527753129
708316754 843269827 354158377

output:

2639044
426772969
1003161148
29636646
701782886
480756079
400698679
374395692
58048256
0

result:

ok 10 lines

Test #2:

score: 5
Accepted
time: 2ms
memory: 3104kb

input:

10 1
909536930 640900191 676639619
272404859 918227065 144647267
961242387 798641856 184483001
934550263 490274940 748763261
734933698 897338318 604368521
978639778 305169260 489319889
431545624 656697209 761717669
927952095 314633892 695371487
981553561 463536819 528972253
719217137 669333775 27053...

output:

429702112
112747377
96670305
229327940
6447291
0
451711129
313059576
294386905
240260573

result:

ok 10 lines

Test #3:

score: 5
Accepted
time: 2ms
memory: 3140kb

input:

9 1
671155532 688620652 185554051
339268521 440809145 811802813
977003872 214353604 955253791
830519669 8133956 694557991
872722303 393938043 965286347
15056786 911962733 7528393
968637228 824510072 464058173
572424523 1046081215 85502777
553565899 442693213 1012882433

output:

179953047
508042360
835641965
532051976
815503821
0
240803452
4331097
52220694

result:

ok 9 lines

Test #4:

score: 5
Accepted
time: 2ms
memory: 3260kb

input:

8 1
832027784 188875627 290021929
774991350 366740911 436823489
966406290 781195887 240153257
1023825187 216540197 277976483
202960477 819562009 704427523
1024871759 215692555 223251247
506613896 357304872 70271039
868923686 980293363 819146539

output:

275126734
29878051
72047172
16815852
703291041
127194165
43287403
776463784

result:

ok 8 lines

Test #5:

score: 5
Accepted
time: 2ms
memory: 3068kb

input:

9 2
261441746 53866713 130720873
505652667 370066231 120726481
849620802 921395015 526924309
518082962 687082676 259041481
706566502 719671897 280055803
625779377 764652353 706051
303064483 896818342 786136909
809726552 588050982 231861983
220919521 808858092 747666379

output:

Orz, I cannot find x!
72760911
215873544
Orz, I cannot find x!
214344841
658842
125587589
147495092
164511270

result:

ok 9 lines

Test #6:

score: 5
Accepted
time: 0ms
memory: 3184kb

input:

9 2
292811207 636046758 689800739
282993907 850895113 709155547
624134449 316473824 1071640007
362714147 115669825 471804163
896296016 919253748 94471807
926108637 647842383 350618131
397082830 247089549 251351099
706339158 536461689 1063958123
1009634663 527242548 778012229

output:

330165919
33898586
933855193
129502706
37906604
242344209
122388085
512468098
119733899

result:

ok 9 lines

Test #7:

score: 5
Accepted
time: 2ms
memory: 3216kb

input:

8 2
539827228 16585767 589004827
822118856 985229101 81275879
116093865 629267182 909607613
440800230 794340918 386613089
402212566 749910719 908812903
673138255 723746067 398362007
211816427 142423566 796943551
438348535 543511653 744364189

output:

264549750
67978884
119985243
63031697
611539421
28416274
590012641
419277795

result:

ok 8 lines

Test #8:

score: 5
Accepted
time: 0ms
memory: 3232kb

input:

8 2
552250563 682582034 294344339
225390284 62168784 337910879
1007017396 801668910 1015958123
492386035 384650586 645373679
119899476 413800634 35680439
818530442 21831168 776106791
1053349201 27315030 881470169
786252026 454984029 348505541

output:

255985658
160440783
483174394
304727902
23931826
292935507
296629419
129905528

result:

ok 8 lines

Test #9:

score: 5
Accepted
time: 2ms
memory: 3180kb

input:

9 2
233873560 320106058 543608893
157539094 614704491 78769547
518100074 692835420 57963593
533998591 351294205 684098551
626000357 96447720 451355747
788722211 880329154 480109849
810786366 368490739 302358961
929193326 204046892 637939123
294245284 409250311 493897213

output:

419061883
Orz, I cannot find x!
17951620
606176900
402908882
454079099
125293831
271357072
479500156

result:

ok 9 lines

Test #10:

score: 5
Accepted
time: 2ms
memory: 3260kb

input:

10 2
49544574 387934881 740112157
975745365 720234820 600806471
983854054 688299727 491927027
486114944 347858218 910694761
944443352 619741647 702776381
19417382 294810784 115462331
1072715286 177477382 841099031
318823881 476479714 822714443
191944855 465285507 582509791
225443374 518133293 796665...

output:

599783587
127100199
Orz, I cannot find x!
331737109
655296272
25260859
491849810
286065373
120310824
557646448

result:

ok 10 lines

Test #11:

score: 5
Accepted
time: 2ms
memory: 3144kb

input:

9 2
389257922 1004131681 194628961
571868116 1068848044 594072431
314450134 750317401 157225067
40581817 657502437 63682849
1032356998 1032265203 643888783
340975387 33616171 520883339
904096826 476789691 452048413
272475957 962105009 83040163
858598358 838347303 429299179

output:

Orz, I cannot find x!
294543461
Orz, I cannot find x!
54099319
414729127
296518467
Orz, I cannot find x!
33087916
Orz, I cannot find x!

result:

ok 9 lines

Test #12:

score: 5
Accepted
time: 90ms
memory: 4724kb

input:

10 3
937858122 885997939 782033017
1010346135 741625566 194852069
263534721 760033577 791950363
665446570 770180178 672211691
545831567 636973366 706065337
15908945 1039519602 1011976331
527454377 68336033 137591561
688499425 247312218 744102253
547721550 1017998378 610524181
82389719 851592955 7937...

output:

Orz, I cannot find x!
37629763
163627719
182764719
106654163
52411945
Orz, I cannot find x!
Orz, I cannot find x!
Orz, I cannot find x!
12384086

result:

ok 10 lines

Test #13:

score: 5
Accepted
time: 75ms
memory: 4768kb

input:

10 3
1000052719 255392610 79791109
146324954 14948940 73162477
703874049 508100543 1037977027
260580983 889231132 496040033
691085033 402703206 539487719
752770845 539141408 817774367
974839853 763383053 22685989
855218194 362010502 198721379
900451466 1064373182 697990169
13892212 176820695 856980737

output:

6834829
Orz, I cannot find x!
Orz, I cannot find x!
Orz, I cannot find x!
156564190
332099841
10685557
3418253
Orz, I cannot find x!
288589667

result:

ok 10 lines

Test #14:

score: 5
Accepted
time: 89ms
memory: 4752kb

input:

10 3
955971651 349600622 1034806897
580937365 398416770 1050221833
452197653 548403579 500422471
582628918 996372104 192505007
919118666 221630001 459559333
633650193 370297825 997205543
892033454 18146976 792755987
413469773 788289999 625232057
162590766 521246497 725875763
165198753 274702865 9395...

output:

159811567
Orz, I cannot find x!
193404988
118435123
Orz, I cannot find x!
469779896
289722106
Orz, I cannot find x!
482097984
5928586

result:

ok 10 lines

Test #15:

score: 5
Accepted
time: 101ms
memory: 4824kb

input:

9 3
210430996 364663770 611661121
441892303 655463466 726395239
189520732 943517075 1024817317
1069207408 408313386 790502767
909970212 458677421 962867833
1048155153 951983519 703838017
973317354 617131748 750718121
689028347 17284019 630844087
395873767 920885463 910813103

output:

9104192
150602752
Orz, I cannot find x!
28891083
Orz, I cannot find x!
681201069
690523870
221738877
Orz, I cannot find x!

result:

ok 9 lines

Test #16:

score: 5
Accepted
time: 62ms
memory: 4644kb

input:

9 3
889630809 467134583 166788311
383394694 137913401 191697347
810362078 308710490 405181039
554996216 1032172425 968504827
716801693 455821242 952934357
574990048 422956128 459532937
374715630 410166066 1036145647
111372298 376374520 55686149
438029463 367707704 810681013

output:

29337812
Orz, I cannot find x!
Orz, I cannot find x!
Orz, I cannot find x!
260073826
55596387
377985167
Orz, I cannot find x!
Orz, I cannot find x!

result:

ok 9 lines

Test #17:

score: 5
Accepted
time: 82ms
memory: 4732kb

input:

8 3
729747280 945350145 692576509
1003782582 1052995490 874047913
830933225 1064553781 799657219
838858074 226936475 794398013
81849408 363441763 937530961
537548626 762299815 268774313
434803981 112377358 720989147
535017411 188743780 959592839

output:

Orz, I cannot find x!
660548660
Orz, I cannot find x!
101265586
61062441
Orz, I cannot find x!
439374774
721409727

result:

ok 8 lines

Test #18:

score: 5
Accepted
time: 76ms
memory: 4688kb

input:

9 3
672523866 1035046905 894662057
1070170601 1005406118 27854317
769595851 253554918 1027997419
818293015 67960418 360686383
692357824 690449156 726736363
329685646 995594783 164842823
1051199462 734840153 943436467
735419386 157977247 1057446443
532494814 44701694 266247407

output:

823814210
Orz, I cannot find x!
418067699
105099564
Orz, I cannot find x!
Orz, I cannot find x!
Orz, I cannot find x!
970973849
Orz, I cannot find x!

result:

ok 9 lines

Test #19:

score: 5
Accepted
time: 88ms
memory: 4620kb

input:

10 3
1050153555 162829537 182037073
1010494244 848565988 945066293
515427088 1001557571 386258401
4562651 654497903 961930201
725269597 812647004 596053867
353848332 863326238 645003643
348652652 641293515 680955551
298781525 973233835 570138601
15912115 834116985 954620717
389555755 632345530 10892...

output:

Orz, I cannot find x!
133469
97405055
Orz, I cannot find x!
Orz, I cannot find x!
Orz, I cannot find x!
216542862
Orz, I cannot find x!
85509046
Orz, I cannot find x!

result:

ok 10 lines

Test #20:

score: 5
Accepted
time: 66ms
memory: 4784kb

input:

8 3
232621914 715109375 120318907
494490774 695801979 871819447
571424781 901738087 1067645807
715830636 8059745 756455059
986357740 1065151242 6215369
761519278 266268533 246011999
737038177 884723131 1007419397
292634968 906020952 159544799

output:

Orz, I cannot find x!
588022103
Orz, I cannot find x!
Orz, I cannot find x!
3377704
183288225
912859615
107782579

result:

ok 8 lines