UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#51700#289. 电梯EdenHazard1005032ms32820kbC++113.8kb2019-03-24 11:08:132019-03-24 13:09:01

answer


详细

小提示:点击横条可展开更详细的信息

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 0ms
memory: 1216kb

input:

4
23384138 99159835
610555728 26216901
414368755 27683158
116618508 47656016

output:

662989530

result:

ok 1 number(s): "662989530"

Test #2:

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

input:

1
893030977 1383327

output:

895797631

result:

ok 1 number(s): "895797631"

Test #3:

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

input:

3
28022579 76549753
207307652 68417371
993271454 1214923

output:

995701300

result:

ok 1 number(s): "995701300"

Test #4:

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

input:

5
890310814 2242467
830731465 12526301
195203848 51716179
677518924 29022491
310497828 35265442

output:

894795748

result:

ok 1 number(s): "894795748"

Test #5:

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

input:

2
592973077 74366252
815675123 9151584

output:

833978291

result:

ok 1 number(s): "833978291"

Test #6:

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

input:

1
1000000000 1000000000

output:

3000000000

result:

ok 1 number(s): "3000000000"

Test #7:

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

input:

4
617941468 9532679
963421957 9094691
875448326 4297556
653135134 3260515

output:

981611339

result:

ok 1 number(s): "981611339"

Test #8:

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

input:

1
157923575 4699105

output:

167321785

result:

ok 1 number(s): "167321785"

Subtask #2:

score: 15
Accepted

Test #9:

score: 15
Accepted
time: 0ms
memory: 1212kb

input:

3
410880365 99865530
440398824 93994727
475538803 6352643

output:

652835170

result:

ok 1 number(s): "652835170"

Test #10:

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

input:

10
722874073 57442456
17574881 90620010
189081124 70050360
501189764 58120348
808356401 40704179
881...

output:

964198549

result:

ok 1 number(s): "964198549"

Test #11:

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

input:

17
798395257 12730467
352374528 37248482
5349322 99165819
335664808 71849158
82113283 90556508
88787...

output:

1005960126

result:

ok 1 number(s): "1005960126"

Test #12:

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

input:

4
140340924 72848455
821514181 9435275
662741759 31354223
282886130 50533364

output:

840384731

result:

ok 1 number(s): "840384731"

Test #13:

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

input:

11
342479090 61827640
925956616 10462819
422816173 54000929
144241806 75463153
115176741 92703233
55...

output:

966301580

result:

ok 1 number(s): "966301580"

Test #14:

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

input:

1
1000000000 1000000000

output:

3000000000

result:

ok 1 number(s): "3000000000"

Test #15:

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

input:

18
667975130 4976818
664737932 474624
775581019 4982025
439715556 6082074
297651241 6465166
68708125...

output:

785545069

result:

ok 1 number(s): "785545069"

Test #16:

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

input:

5
987766671 975255
741327099 1899840
84664350 5831381
635335081 2517908
90233457 6197367

output:

989717181

result:

ok 1 number(s): "989717181"

Subtask #3:

score: 10
Accepted

Test #17:

score: 10
Accepted
time: 0ms
memory: 1220kb

input:

92
403450537 51523028
51694330 88528585
588214784 42900110
438065354 49900819
381256166 53486762
751...

output:

983965820

result:

ok 1 number(s): "983965820"

Test #18:

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

input:

99
916649538 4809014
403621367 46455321
966652614 331049
51784159 92203667
582611472 31050478
437148...

output:

989374842

result:

ok 1 number(s): "989374842"

Test #19:

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

input:

6
834760496 4184927
750097137 18814305
347814519 53556862
214597267 68116892
835192418 1952192
81991...

output:

854814921

result:

ok 1 number(s): "854814921"

Test #20:

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

input:

20
690880263 16533310
689039387 17790304
500485012 53135878
298679549 70171980
199793727 94291075
74...

output:

941765711

result:

ok 1 number(s): "941765711"

Test #21:

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

input:

27
856389738 34368614
667279088 46795919
557444464 49787054
326257387 71199524
178363566 90916358
69...

output:

975014022

result:

ok 1 number(s): "975014022"

Test #22:

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

input:

1
1000000000 1000000000

output:

3000000000

result:

ok 1 number(s): "3000000000"

Test #23:

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

input:

34
817609767 9348124
908491385 4484345
263962302 2961205
161561921 3475394
874526397 2461712
4868789...

output:

972548896

result:

ok 1 number(s): "972548896"

Test #24:

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

input:

41
738338428 4374007
853793660 6025322
157005096 6759885
964907374 5158734
982734427 6905460
2427207...

output:

1003130572

result:

ok 1 number(s): "1003130572"

Subtask #4:

score: 20
Accepted

Test #25:

score: 20
Accepted
time: 0ms
memory: 1428kb

input:

4986
831193288 914627165
795686291 920271330
671329825 933462931
173344249 976573461
862968342 90016...

output:

2983192780

result:

ok 1 number(s): "2983192780"

Test #26:

score: 0
Accepted
time: 3ms
memory: 1420kb

input:

4926
713161489 477206885
911205600 11680067
46050297 937468880
191634648 862137170
677989903 4747294...

output:

2705473182

result:

ok 1 number(s): "2705473182"

Test #27:

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

input:

4967
718956720 759060084
895357222 11450079
46422178 991919282
186765567 952952314
680468009 7401646...

output:

2821154483

result:

ok 1 number(s): "2821154483"

Test #28:

score: 0
Accepted
time: 3ms
memory: 1384kb

input:

4907
777181 99901801
815301449 16901993
589754829 36943922
439170706 50042443
394541824 54551204
276...

output:

1000061023

result:

ok 1 number(s): "1000061023"

Test #29:

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

input:

4948
1059921 99849481
800112487 19113479
568836432 40097442
426823546 52269383
383314937 56128047
26...

output:

999915280

result:

ok 1 number(s): "999915280"

Test #30:

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

input:

1
1000000000 1000000000

output:

3000000000

result:

ok 1 number(s): "3000000000"

Test #31:

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

input:

4989
1811266 3928782
811393886 6377098
570145226 5699126
428905735 44632
386283548 9790720
256096895...

output:

1019832431

result:

ok 1 number(s): "1019832431"

Test #32:

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

input:

4929
731405 929627
808997466 3059249
576395830 347535
438915512 8691745
391709304 3597292
272628891 ...

output:

1019875863

result:

ok 1 number(s): "1019875863"

Subtask #5:

score: 25
Accepted

Test #33:

score: 25
Accepted
time: 112ms
memory: 7444kb

input:

199962
362948544 958443592
34111882 995048041
452969052 949936756
872527150 911575560
125398273 9819...

output:

2999569698

result:

ok 1 number(s): "2999569698"

Test #34:

score: 0
Accepted
time: 104ms
memory: 7636kb

input:

199896
190865615 974801991
100812404 985496463
633010024 933554807
323984587 962112787
470051057 948...

output:

2997975179

result:

ok 1 number(s): "2997975179"

Test #35:

score: 0
Accepted
time: 111ms
memory: 7636kb

input:

199980
190697248 974819263
101088078 985686570
632132551 933575025
324213577 962260689
469368583 948...

output:

2997940628

result:

ok 1 number(s): "2997940628"

Test #36:

score: 0
Accepted
time: 107ms
memory: 7516kb

input:

199924
972284362 3388612
366337144 956511439
391946376 957605258
929531531 728901529
177306094 97796...

output:

2956367532

result:

ok 1 number(s): "2956367532"

Test #37:

score: 0
Accepted
time: 118ms
memory: 7100kb

input:

199896
110394469 894001448
81680366 898073262
197263450 884101260
723155194 13257601
298579383 87450...

output:

2636211078

result:

ok 1 number(s): "2636211078"

Test #38:

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

input:

1
1000000000 1000000000

output:

3000000000

result:

ok 1 number(s): "3000000000"

Test #39:

score: 0
Accepted
time: 107ms
memory: 4420kb

input:

199945
534444174 6572874
847532510 1120069
621859523 7947147
702512890 1562256
982141606 3587388
519...

output:

1019989881

result:

ok 1 number(s): "1019989881"

Test #40:

score: 0
Accepted
time: 109ms
memory: 4424kb

input:

199984
537261247 8140596
849103702 304573
625412662 437549
704478491 7631961
981740744 4153589
52130...

output:

1019994238

result:

ok 1 number(s): "1019994238"

Subtask #6:

score: 20
Accepted

Test #41:

score: 20
Accepted
time: 628ms
memory: 32820kb

input:

999700
114341237 983744926
239793950 970157476
289240910 965435136
632459226 933418774
317021502 962...

output:

2999915824

result:

ok 1 number(s): "2999915824"

Test #42:

score: 0
Accepted
time: 570ms
memory: 32684kb

input:

999710
210204325 972998068
146624514 979020161
61389810 991219800
488308243 946639512
460315053 9491...

output:

2999612423

result:

ok 1 number(s): "2999612423"

Test #43:

score: 0
Accepted
time: 625ms
memory: 32420kb

input:

999690
210308218 972964896
146950983 979093601
61536450 991200714
488568077 946515944
460876163 9489...

output:

2999594524

result:

ok 1 number(s): "2999594524"

Test #44:

score: 0
Accepted
time: 647ms
memory: 32492kb

input:

999604
953192357 902546035
889983842 910506536
583287060 937286829
687637939 929149889
99950336 9866...

output:

2991346094

result:

ok 1 number(s): "2991346094"

Test #45:

score: 0
Accepted
time: 605ms
memory: 32292kb

input:

999633
904301329 3349692
318336973 959248965
485862164 947041170
134154138 984456803
208793515 97798...

output:

2931545669

result:

ok 1 number(s): "2931545669"

Test #46:

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

input:

1
1000000000 1000000000

output:

3000000000

result:

ok 1 number(s): "3000000000"

Test #47:

score: 0
Accepted
time: 590ms
memory: 17052kb

input:

999648
81103188 576971
955623163 219449
92696897 7833040
146439336 820336
103450158 4303488
46913670...

output:

1019998461

result:

ok 1 number(s): "1019998461"

Test #48:

score: 0
Accepted
time: 588ms
memory: 17056kb

input:

999663
81015762 1196062
955414357 8495971
92669156 2813844
146256781 1826832
103332303 313383
469616...

output:

1019997905

result:

ok 1 number(s): "1019997905"