数学小镇中的捣蛋鬼
题目
思路
直接模拟就好
代码
java
public int[] getSneakyNumbers(int[] nums) {
Map<Integer,Integer> map = new HashMap<>();
for(int i=0;i<nums.length;i++){
if(map.containsKey(nums[i])){
map.put(nums[i],map.get(nums[i])+1);
}else{
map.put(nums[i],1);
}
}
int[] res = new int[2];
int k=0;
for (Map.Entry<Integer,Integer> entry : map.entrySet()) {
if(k==2){
break;
}
if(entry.getValue()==2){
res[k] = entry.getKey();
k++;
}
}
return res;
}
最高乘法得分
题目
思路
- 使用 dp[k][j] 表示选取 k 个不同的元素,并且选取的最后一个元素是 b[j] 时的最大得分。
- 使用一个一维数组 dp[k] 来记录每个阶段 k 的最大得分,这样在更新 k 时就可以避免重复计算前面阶段的最大值。
状态转移方程:
- dp[k] = Math.max(dp[k], dp[k - 1] + a[k - 1] * b[j])。
- 其中 dp[k - 1] 表示在当前元素之前选取 k-1 个元素时的最大得分。
过了样例但是没A,真的难评
没过的样例如下:
a=
[13774,31587,-16090,-10727]
b=
[-68476,-94822,79236,11234,99749,46522,42447,38654,51485,73091,43841,60390,
-12582,70112,40781,-37381,-63591,16942,-2294,-95014,-79413,61821,-41009,-23653,
10239,-37252,-78093,-44248,98672,95618,45547,-94908,-92884,-63879,-68314,-90273,
-1849,19142,56354,-85037,40800,34511,33263,-51193,64318,-77975,81479,87270,8447,-91490,-3132,-95326,-7701,-57904,75992,-6715,52555,90361,-4066,-40620,-56019,74853,-60678,41978,-52606,-44283,-51777,88816,-14080,94328,-39546,-17608,-64250,7057,-2534,9308,-81741,-86074,51447,31749,-28096,-39821,72194,-15914,33649,12115,-58440,2534,1702,4740,89343,67186,84599,-18847,31623,1311,-44121,-13645,90309,61232,88953,-73458,-60649,-59421,-40711,87581,-46719,-23415,40180,-49362,30876,-17025,86863,-90165,-21756,45554,18925,46913,44404,92356,-14986,-72307,29140,-51752,-54392,-68219,-79353,78090,16035,83372,-84653,19430,-68345,-37488,28289,83159,7049,8910,15997,29548,29843,50593,92679,70005,-34040,-3974,16674,-99572,94421,36649,86929,-31233,-36660,60898,-40903,27163,-65823,49394,-54441,33484,-67887,94044,3019,83597,-51829,-99010,46635,-98982,-33274,-76368,91939,37481,14,-11170,77463,-95959,79206,55607,74470,78977,-77188,-23377,-55808,-28559,-77023,-75902,-65409,-40008,65653,14102,-61695,-61990,82119,55144,-65521,74867,-96490,-34062,2356,-35429,-78975,-10610,-53130,90951,77951,-33357,-46623,84771,-73490,-15858,-74470,38998,-763,58397,-86460,57614,8407,-17449,-41697,80763,-87514,-83104,-85383,75361,-48903,-81526,-20095,6479,-42138,-26310,66793,-62121,-61895,-71947,-63900,-21165,-32214,-59313,8395,69799,-84448,-92140,-98554,84215,61013,-3590,-26897,7495,11183,-40096,2141,-90551,84661,90738,41962,92903,91956,-81888,-87045,-52474,84706,68426,-85749,22442,37092,-57536,9942,-65724,-5455,-36525,24170,19499,81193,25315,-72386,-4553,46451,80219,10012,62061,-72375,73529,-94765,9860,57420,-23701,-38753,24847,-70447,51356,-4874,-67764,-34147,-16504,-24398,34252,-67811,-35027,-43173,-42771,90674,-64118,75433,-94863,-55527,-53574,81108,-58653,16160,16047,57310,41637,88407,4629,-5061,19138,40216,6491,-5730,41375,-2209,-54678,82721,61598,-61552,-90355,-27998,41633,-93841,54264,14147,94179,46594,-89674,81785,51274,-368,-25203,-24820,-90266,-3598,79204,72608,-28215,-88208,49740,97021,-71292,-62588,22475,68710,-63566,43405,-4773,-97325,-33528,-39247,59605,-47895,76162,-38821,52000,5392,46681,41795,-67592,-91964,27155,-38040,90728,-55747,26648,91023,-41035,-2320,-78856,-43025,-295,99311,66643,53234,-79753,-47557,-75151,-60702,-9615,7931,-78872,25834,-53935,42443,-94921,-67957,19965,-58092,-99774,-65294,33952,-82772,-89442,-11016,34282,-35893,77943,-41267,-29107,-50280,64555,-24377,-52714,28815,-779,5968,32052,-46445,-12586,17683,-64357,38155,12029,-95837,54837,-82283,51051,30685,70936,-82615,-12297,81473,-22672,-44337,-31104,53789,-43096,-35968,84469,4854,-77216,65470,-99373,-86183,-937,-95264,-31612,73241,-24039,60280,18534,-19474,53532,78629,94144,-31784,-2599,57025,-7457,41861,31490,99140,21039,-36070,-85892,86540,-46188,-2616,88243,-92966,8111,-66325,-71900,-14891,-39399,-28806,-63678,18013,68816,-657,-21742,-3980,-54686,-13935,-4032,-72427,86816,69,-93,-44958,-98081,22516,7959,-87015,12572,74565,76760,-21617,21963,-96152,-46961,77586,18934,5297,55366,94414,-98958,61780,-43188,31121,-76088,-32411,-41621,62317,-67425,15825,-77218,-45494,-45761,-56970,15546,-24876,-86713,-41229,-53224,-55422,-26406,5592,78113,69652,-18555,-49699,-52164,-1879,-81911,-70648,-35588,-67833,73822,38827,40241,-92104,-54311,-33781,63231,60201,67788,-57569,-73279,40468,-48034,82478,-66249,-50603,54883,-93281,10363,88755,-75785,4465,-31886,-68820,-35253,-41728,15327,80222,-53301,-64043,-74570,7348,96143,-37453,-11786,-84367,-44285,-69593,2529,9085,11097,69079,56604,-97826,7175,-603,-33765,76540,-70980,65946,94216,42161,-83195,85206,37696,97266,-11305,-58321,-8915,10779,-91840,-58748,-14568,-98212,60763,-6200,-90693,23905,-45372,-22475,-85781,72289,-1643,-99291,-84941,38841,-75345,80156,62817,-71537,16055,-3797,2,83412,-45131,84229,-4137,84648,-71241,-21196,-50649,-59966,14231,45296,40978,-56620,-36101,-63469,-8788,93553,-5548,72754,36318,-55368,-32340,-95973,-49336,-29883,37513,-71683,-14866,-36116,76974,-29805,22545,38104,-2529,-13288,84785,-73358,75406,-50713,80812,88116,-85559,90139,-60612,58378,3630,-32935,-90635,24963,-44054,18088,52163,-66358,13894,52699,-8305,-56486,14634,82314,51299,-88821,3895,12352,-97100,74929,-64360,76287,17203,8863,-95180,14845,-56834,-87925,-19639,51578,-56885,-24429,-40180,88638,-13921,18665,90110,86299,-79550,-38940,33857,-26693,11777,50582,16270,-98999,32968,24331,45267,-52130,-70367,-16768,57577,82302,94824,-21567,-53542,57947,-41186,-74725,77257,32577,86167,-50910,-61618,-48477,-2248,53375,-86598,971,52566,-38011,-43168,96240,51228,-71663,27814,27690,-49765,4109,-31892,-86469,7076,-50794,63737,56836,26095,-41693,-19785,50247,61655,-40537,-95725,12863,64380,72512,89825,-570,3697,53505,-97352,60518,32914,50818,12454,-80275,-53545,-30403,-14583,-97757,75065,17648,31008,-72902,-15233,27381,-56974,32822,54028,51985,28043,-10329,-34990,-66691,67385,54918,-68489,46401,-60894,88080,49153,-79954,97240,-85755,-56320,-64527,33070,10161,67157,-17132,37288,-80082,-3160,73117,-14032,74083,-58434,5864,-46520,90698,-55687,90756,34799,-63657,21632,-49494,-53855,-49742,95248,-16223,11215,44724,-12173,80442,-30871,66563,74585,-53240,96823,3237,72898,88031,92001,-29838,63749,-66522,79150,-87849,-2611,-97629,-73333,24425,-65533,83201,-92753,-90000,82384,-65785,-16874,98415,-73220,80965,41856,36755,-3934,93093,-59016,-14157,77625,-12087,-76592,51212,-39323,72160,3039,41651,-19497,-54915,64079,64559,71882,86817,44195,5123,69230,-20843,49260,62952,62908,-18765,99308,60945,-59317,13814,-66342,92196,-41534,-30788,94516,-59445,-70207,944,-57586,-52268,74915,-93613,23407,7234,60544,-26449,-33051,-17401,-39975,85561,78116,-58510,14301,33574,92492,-87323,-56180,1428,-8356,-97287,-39550,-48013,-91325,-90048,-33210,-37251,22708,4709,-59191,-93493,-84152,33494,95724,-67104,-84991,-50910,-77109,-3565,87922,-84118,37550,-57594,-73023,25895,-80817,-14732,-35097,74347,80066,-62163,44789,-59331,-43530,-4542,-98721,55269,62505,-35868,3759,-17223,58647,-43240,-14604,-95630,-85249,-86093,20960,-91256,-21127,-61842,9285,-80916,-55086,22610,58814,-8866,74007,-12817,10209,66101,22151,-64122,-10470,54198,47773,13455,-97746,-98581,43254,43556,82556,24123,61958,-29933,55725,-34910,88120,77165,-89280,-12706,46767,83716,68225,-33022,-51747,52628,-78581,-5967,-21654,47934,-8118,-74713,-74361,-42733,-36763,58473,-71724,93710,-48388,-51820,-86953,32713,-54803,60687,-71732,-22291,80657,-36024,-84087,-29878,46598,-91597,93154,-59541,70528,-91904,-43462,98703,-83624,-71933,-70174,-84687,92303,25623,-99649,92977,-60886,-66258,50969,-19201,36955,56235,-94757,-62574,-5662,38843,-42020,-61316,-1245,92755,-27252,82731,45967,66995,-3438,27075,-68124,-67061,47118,-94005,-52591,33853,79024,42183,-13243,51389,94293,-76893,-15160,-91737,-94793,-31097,12052,42729,12963,66027,40924,-58346,-29199,-93093,-16633,46983,20417,-5217,12674,99552,-59409,-72000,-16972,84164,15305,-35465,85242,-17401,-41089,58112,-7158,-24928,-46341,12118,86222,-72540,-544,5434,41022,-24179,-10993,42214,11991,14894,-67186,-23259,53239,-73178,-75151,99604,-60337,60101,13874,47396,80793,38954,18863,8058,13605,58124,-71580,-95923,-41029,97161,-16499,-53443,38227,58917,58286,14141,-18497,-50356,-17854,74380,-66038,-60228,-40013,39307,56397,-45552,71013,-56066,-81886,38489,-65622,-78182,70072,-44087,-82756,-88676,-1261,55835,8010,96645,-50292,38602,73524,-19921,-9611,-30212,8090,-60841,89448,40181,-66966,-89115,-69970,79585,-15940,-29440,-93837,-58810,-77519,9427,90543,51648,-47795,98621,-96543,39999,-29228,93420,16948,13812,-42982,54521,46628,66122,76030,15705,40030,-73624,53292,-18998,-25654,-47507,96457,-75758,-68674,-6285,33912,99317,-88659,85101,-1134,7930,-50798,85932,-23337,76315,-71805,42048,21766,11981,58472,-89217,53912,-65885,-29052,-35815,-50772,-78085,24254,11639,83205,-4667,-26270,75135,76905,67850,-75243,97262,99466,-59151,-37104,49735,-33383,45047,-78984,53296,17637,-29618,-7932,59805,-84115,10065,-64858,-45822,-54404,96110,65445,62864,12799,-14279,-99128,92173,-32267,-76505,490,-11144,-77022,48295,-83006,-8682,-16461,-14161,53026,-47641,-5636,-50247,24261,-60317,42579,-23754,-45712,-25834,17879,-3836,-72437,-18736,-5601,22741,-15100,-37278,76053,-56314,-11475,-50636,-17170,-47394,-63357,1555,-83268,-9386,70683,-51436,-95166,-88180,-6062,62306,-3152,78903,34595,-37676,10380,9654,-10513,31497,-7963,21146,-64824,-4498,-31061,-45670,6655,33457,-6379,-54061,83362,84743,49758,-38260,19155,81552,12977,-59928,81190,76853,-41456,-22324,46075,-71887,-12112,25249,-59249,70897,-94457,40462,-46045,6378,76380,-44803,61051,-51137,83564,23983,59624,-71263,85351,4938,17765,-36565,-83774,32866,-33591,33477,-62775,-77176,12370,18727,37105,22858,18109,62863,-96629,15018,-94574,-64105,-45869,1261,52633,-89620,-43270,43546,27600,-33264,-28833,19283,-25468,62691,36321,-10155,-14197,-59213,8106,-45302,43064,10813,-65244,-23373,23610,19968,38412,55394,69968,80613,-53825,77264,-73275,89126,30545,54584,23314,25144,85087,-49029,-28541,-7454,-95840,-54899,47893,-75090,70463,15112,87586,-85955,-30792,83074,-20165,-22530,8178,96861,-36264,-25258,67988,64619,94875,-75972,-60152,94758,-40102,-7924,-40859,-5743,89755,-4815,-1618,-59432,-2319,-8680,74268,-67493,3870,17545,-80685,-54453,-6381,2157,31950,59407,58652,-30293,99348,-64712,-62290,-86932,97027,33534,-55327,73804,-7018,-6693,-93942,-34768,-96768,27259,220,-99896,594,55042,92130,-99150,-13355,11866,-66047,31217,3726,-34746,45996,-21938,-12490,18985,-27108,-844,20729,-7857,-47482,-99534,93655,-52296,43479,44219,48387,96092,-79773,-21600,-29386,68279,-45087,60511,-21264,17274,33478,-60387,82865,29848,-45365,57761,-92839,-17433,-83949,20432,-66608,7203,38078,10345,63464,-6681,-22061,-24391,80335,-5832,27637,-57902,-31651,-72114,63654,-35339,-69921,51985,-81463,86597,-93312,-28984,-83796,28972,71917,13179,-39053,11753,5613,-14709,43507,44938,13253,-77609,67981,-89781,57124,51088,-93870,80541,73941,-98013,67465,53841,44443,15321,54309,-70441,72819,-45085,-13994,67689,-80881,14877,51195,80525,-354,80872,-22694,98287,-19459,-68963,27369,63618,73752,98126,89856,-98172,-72506,-72894,55130,83979,68964,30328,7599,65487,-71956,-34789,-93242,-77445,92760,-58175,-43456,18244,-13270,-33705,95649,88677,2066,1714,-57123,22898,57471,-67666,92271,40265,-39771,61679,-40932,49409,46620,39864,-25599,-87568,15076,23907,64577,62716,31286,34036,-8009,96332,7197,-5418,68682,-34582,5260,-95209,71190,-34797,-8630,4566,-27677,-5510,-44847,34033,-25773,-84921,-55864,-92733,45075,-26543,44369,21693,8118,33287,-76343,-41781,64870,-54992,89558,66859,-86562,32843,1816,-49698,-74953,24291,-42143,17960,-11612,54736,60822,96861,57608,56950,31897,-76709,3158,-36826,-7012,-47949,37719,3230,-45823,67222,-37281,42827,53342,-46582,-58770,-61095,-58664,-85889,95077,5880,-46219,53472,64622,-3386,-91644,-3371,-99566,-60222,72650,70315,10367,-10196,5079,-25789,50516,94929,-64246,71283,56140,-75620,-56090,69345,92122,55864,59330,-35217,29601,-36408,-96658,14566,-71153,66456,93818,74821,72789,-16930,-90747,61425,60671,34665,-68763,-63260,-5528,-99183,-84989,-34694,88251,33738,-63904,9679,66878,49749,-92537,-50597,-89208,301,-25473,-40423,84423,-32878,-92830,82935,-98278,-18213,61884,-25966,99338,84393,7368,7505,36265,-61524,-73815,-17691,-8768,-84521,1585,41802,-52538,-97552,-20921,-54006,50806,60694,-36925,84222,-40677,-46429,23736,-48017,88927,48237,-40135,91803,9843,-39032,-58117,21645,-10254,-9365,83451,-12199,-48879,-40954,66855,61301,-48845,65008,93793,81265,23818,-54489,-51188,-18739,-85255,1467,30557,-88104,34944,-86319,-7158,23612,-56262,62525,-86776,59922,-76559,-54442,53408,52108,91625,-98677,3039,-69506,35831,47195,82297,-15945,43647,-79411,99291,5452,-66967,99312,1251,61847,-21563,77478,13092,75193,13041,-8102,-90082,-88230,41906,-21011,55335,-74773,-2739,9010,70059,-43137,-86490,51729,-58889,23661,19676,-74627,8337,98968,62526,-24818,52157,-42109,43765,17082,83066,27409,85337,17816,36358,-23409,-11629,24383,22946,-52090,88612,-47028,28349,94078,56249,-98749,-49526,40729,-29107,33515,69451,83062,-98008,-24795,13043,-72932,-14668,30075,-88079,16755,72828,-41891,-77317,-7319,64988,95370,-19448,46288,-94292,86329,70981,-80767,28725,97186,-28944,-58653,-92571,-67953,-39848,-97267,-90188,26402,-5892,-9910,-35417,-86994,40095,-26759,-36380,17386,-28491,86258,-13247,-87317,15434,61611,54057,-67355,4234,-24184,50962,82763,5956,20564,63279,65146,50582,-87827,-31054,-54525,47705,-14111,-60922,-82712,8900,-20970,17585,30133,-43821,-66936,-60580,403,-6095,63680,4462,30280,-61435,90034,-47272,9151,-57784,-2681,-40511,26196,-41771,55396,-82191,66969,-64666,40044,-37567,-43508,-71118,8323,-21648,83627,52043,-50748,-99754,-46555,-9593,14413,40279,45752,-38240,-45451,57879,62007,35852,43513,-4880,35802,-43397,-85226,-7888,-42765,-39271,54222,11996,-92320,-59787,-3956,84490,-38398,42328,24797,16889,-42370,90608,89761,69045,-29507,51265,-8655,-88534,-52974,-37437,-24785,-11221,7996,50420,-22972,8071,-69487,-36523,-8989,-96015,17723,18006,-65000,17082,-4101,29436,394,-27174,7836,77536,6009,-83235,-99632,-13149,88870,91593,14593,-82297,17210,32199,-6954,12437,86610,30000,50746,8095,-66044,86059,24453,72299,-61018,28265,67726,-87360,13419,70927,-55684,-11710,-16927,29995,-31701,-8563,-32215,70469,25487,28567,-42507,-19636,67941,-84666,9825,62213,57553,86447,-48815,-78718,-99699,1998,-73619,-10238,-41165,26442,-59122,-42074,64117,-83759,-47925,-41794,65207,54654,-65927,28532,61550,-59860,-8143,3125,26728,20042,70743,17504,-80099,-45518,219,47615,-24708,-14125,36639,-11568,-7790,-68401,-399,-44466,-58615,-13866,-91325,-43137,15616,393,53822,59503,-11214,37898,56390,-38577,14903,-71041,92024,87690,5372,-8393,85508,-38135,80698,46957,-17614,-49350,98843,-76194,145,84686,822,-78922,66730,90512,23594,18551,-73503,-91979,-64062,68261,-71300,-50932,-14429,-43386,41515,16192,-72067,-5689,-40666,-95842,-82358,-76644,-57778,41964,5632,-64951,32621,-99319,20795,75378,89640,17153,-28714,-88014,-40013,11438,-2395,-9325,7692,-61778,52578,-70908,-82575,17664,-27781,3545,36923,85024,-18521,80579,73772,84522,14672,67980,34831,16913,82377,-49898,-66203,91835,-52095,92476,-87071,21843,-58689,25400,26889,81941,-58886,-91416,-57376,76684,-80655,-58760,81715,-27399,-72305,90486,15292,63481,95743,-87086,35148,-7438,-10551,-32994,24668,39064,89007,54593,-76899,-84906,-92811,-14225,-37996,-33116,43267,92934,54442,-64880,5700,-62109,-3402,74879,-47028,-44730,36162,26021,-91447,-53973,87714,54703,-10212,-61736,11074,-97563,-92508,-48583,96702,57230,83729,-79437,-18943,55521,-30663,-75750,-87579,93532,40167,61076,30945,-28999,33708,5843,51942,37730,73273,-14165,4805,-84194,19121,-15876,-66662,-71705,14586,8277,-29239,36508,43440,-23461,-35689,17187,77093,81009,-84487,-74126,94466,40082,-67296,14491,-20004,10433,28357,54020,42648,-52565,-6147,13343,45824,15848,-41009,35727,45033,-19178,-6420,71690,5058,-18491,30769,-67368,85692,26848,92584,60736,-62746,-89985,-15004,42960,33321,-92489,-60679,-20360,99832,44448,35777,4642,-52777,23704,89331,-7743,49818,-91747,54604,-26052,-9303,-45281,-45981,-82288,5707,81600,-32123,48770,-87819,-55652,-52852,85854,-70174,-91666,41757,96831,91908,98885,3565,6220,96762,-27976,-68566,95332,-26875,-54588,-14109,65910,-64312,-35794,-2433,60450,-98835,35933,20718,-22226,-43480,78286,48286,57135,51784,5434,66340,73591,44675,73046,-31674,23013,-13483,-52555,78154,-51706,-4656,-87516,-75490,-61005,-37587,23284,-62098,55338,74644,-54906,-46995,65431,93804,83591,60546,34447,-58064,-29653,81953,-20305,13183,-42082,20223,-80585,-89236,-15546,-49756,98584,99581,-50333,90785,-78455,-42856,-58045,-92457,-5969,37706,99021,-65979,-41498,39275,65198,-36096,20793,-10848,-43481,74463,4473,10304,42581,54865,-37625,69049,-68142,26898,-89319,83625,-20657,-88919,-11915,63266,-61797,-96304,43264,36160,36005,503,7186,74856,-44701,74882,30014,71816,17108,-33837,65657,76791,46540,12589,-53593,66632,-70948,64059,-7328,66786,59625,94705,88894,25314,-96852,-81978,62135,49411,3145,5510,1366,73968,43118,-71473,-94237,-84225,-31086,99679,33298,15557,-20020,401,65238,-33375,8048,-22102,35817,64914,-33244,-60286,85644,-53506,28436,47965,27060,-77848,55650,-94941,52918,8071,56643,-60787,35631,21913,70736,41406,-65661,13744,28985,-10063,57318,9699,-59618,-493,85905,58642,15107,-81804,53552,12899,45669,49632,-19806,-77165,69801,-14796,69882,53576,33133,9352,-80485,-45045,-63175,43767,98236,-17912,35441,-93235,32174,52094,-60169,-83870,13500,28034,-84945,48313,75126,21500,50241,-83207,-66394,85372,-67962,-65899,68970,-63214,-91474,10706,77491,79248,-96374,-33642,-59126,-84049,-944,14081,35929,46401,26619,-65842,26939,77875,2853,-42475,-57562,87986,50419,79841,-88223,32864,-16544,88641,-3536,-6963,14454,58840,-51241,-57154,-59813,2987,78519,-6656,5443,-29906,-98800,22202,-22715,-42905,-46198,-22809,97877,2105,63008,-73062,44831,-45989,-85066,-55315,12980,-49570,-41000,33236,-53991,69818,-74362,62235,-30114,87950,-62432,91492,31389,51814,-31008,10062,-72628,96595,-75682,-97106,-38195,85873,-52967,-42421,-92988,26742,-9509,31090,61354,-2576,31698,45768,20159,74250,38204,-52095,-44504,-37426,87407,-85734,-49758,-8990,-83576,12142,41560,-97717,-46627,52296,6953,-1688,-3253,78095,-93615,60996,13243,-11312,-78187,40565,-57743,98328,-44580,55241,-27273,77084,64614,-97670,25686,-94245,24209,-94561,24335,58990,16010,40711,42036,-62377,-76150,-92690,92326,-56188,67349,-38380,83180,69705,6219,-59764,57619,73384,6943,19905,18441,48968,91150,-51005,43300,-42848,71016,65837,-1407,-8464,70551,-62379,-30086,-53387,-35865,-94088,-668,-66508,2347,-43056,17525,25103,40621,48649,-81826,36022,42888,-72310,17197,30320,88022,-95879,-63901,-31926,5774,-35742,-27484,43928,-30014,-59712,10245,24738,71955,-87572,6696,17786,-43816,-15180,-32226,36519,29500,-51680,83098,4714,-95951,-82808,-18036,93707,-75366,82689,-52100,-52557,-1575,-99290,-79206,-61785,4189,97727,19113,-19678,53455,-34589,96422,-51746,6354,39769,26513,-51856,90400,77090,-93854,-17017,-14137,75885,50807,3635,42934,59511,19215,-9239,-56347,-82457,-21452,-95091,-86145,-80184,-81495,37296,-6187,99500,9723,-81965,-86780,30973,61530,81003,-36948,52392,-95906,-35595,60160,-58628,48032,63065,-68279,-11833,-64891,-8731,98450,-36910,41235,-54029,82458,-84428,-82139,93196,43187,-83200,-85124,77707,24350,-6916,47674,49733,94830,67602,64481,26785,61867,-22431,-5155,-76688,-99558,-58487,-41984,6055,38031,-38863,85370,24203,-71808,50210,-72436,65223,27613,-70258,25167,-19376,-70044,73733,-97959,-8013,-97722,-59568,32770,6845,40139,69925,-66164,-56338,94057,93918,11259,-66213,66378,48505,47214,42482,61163,-68782,66664,11995,-34869,-71178,-98816,47435,-90720,30085,42710,6032,6635,-49138,-97393,78286,-2576,34292,11691,25458,45331,-4420,26981,-16970,-21144,78363,5427,97712,-9590,-10436,-73956,39429,58287,-61852,-58073,20169,87985,-33619,9259,84078,46212,79034,91734,-12697,78651,10371,52512,-88007,-20697,89396,78146,-1383,73281,-84439,95728,-57284,-38679,82350,-87235,-92920,-15564,77188,91,7168,-56618,-47766,54840,-53075,66275,89761,78762,-94661,38652,-1740,25169,85771,61661,-33096,-52984,-65410,-7024,40084,-4783,-48166,-94741,-79596,56385,11095,32765,31874,-22678,-26018,-83808,-26034,-56947,18686,-58879,-28520,-5658,-57977,1476,-56270,6353,87941,76858,-50442,77402,82856,-17890,33502,-70363,-57256,-30032,39323,-25582,34387,51114,26189,-22286,95849,73733,-69200,92987,-41441,15791,-72101,92586,-33860,-58707,-2610,25161,15988,82261,76699,40205,-70749,88573,90922,-28982,46084,54589,35797,73198,7100,-99193,49581,91544,-67206,-25781,-58367,-45690,52527,47435,-58059,-55994,-70569,50127,7194,43691,95643,-38632,35198,48560,-46283,-60094,89794,40982,-43879,57715,43724,30520,76178,55614,-98937,33965,4675,-95552,-45722,58180,52995,-54470,7420,88033,25357,4153,-50407,59766,9789,-78523,15658,30232,18457,7633,47460,-92811,-79012,-59273,50955,54257,10030,-65938,5034,-94697,-8501,-59678,96487,58250,-69375,31566,65050,60561,32157,-14194,79066,-71730,93572,90155,-38634,15489,78004,-28598,78131,42815,-20163,144,54302,89118,69590,57181,64630,-85947,-80028,-27023,61834,-37177,-9818,8856,-16964,-50024,6955,-9486,23161,-11686,-54283,71577,-74607,30173,37749,51840,89927,-87430,-82985,-65957,87811,3724,43017,-5748,-94131,-2650,-5862,-26060,29729,75155,20346,87928,83596,25877,14543,84473,-89644,-43621,81274,-70723,4369,94683,-87283,99843,70415,38921,-95000,-13019,8832,36884,-53335,-73221,626,-82505,21321,-68118,26593,-4395,-18594,32158,52907,-55153,-63388,-72234,-60636,-8155,54865,-7542,20006,-35721,24455,11369,21420,93599,-36,45473,62874,-83868,-48223,33487,-76029,60654,-41470,-33520,-28013,-44240,91770,-1986,-45551,82532,-45117,-62940,-41354,16884,-94694,37598,85907,54153,-47809,-12789,55858,-24476,-60718,54084,33857,-40344,38137,59344,20846,-39585,9388,-33494,-49472,85004,70117,50296,44050,-94596,-75606,-96168,-23652,2759,-52647,13961,7078,2876,58772,-27244,56718,66955,2426,-51688,-55619,-3471,47911,33864,-78957,-61151,19869,-45089,58544,13745,-9181,24105,57593,-28055,62020,-68626,2027,79867,-8772,-98449,62119,25508,69945,82356,56243,18614,64019,-39831,82366,-54966,17077,-19155,7270,47586,-25348,-8968,33377,19412,-46247,62196,76268,-72623,-67358,-29214,78098,-90217,-58166,38222,-42784,-90452,-87090,8826,11857,64434,-61162,65545,13470,26995,-83687,4167,-82558,67452,-54037,-25631,81531,89228,-86122,-53217,85264,-43665,3268,-9111,-91562,-54248,-873,16596,94539,-45183,-30805,51660,33487,-97187,43543,-26728,-25117,7500,5927,-96012,-23705,19001,70199,-86856,42773,-61447,53254,58496,88723,32295,42740,-34959,-64118,-55714,-85328,-11460,1462,-42714,67471,4083,62502,29397,-92905,-48824,-60147,-97288,-20101,96147,-5868,-64431,-37870,-7271,25639,-47155,23829,-30565,47045,10150,-945,-73704,46388,-30659,79711,65486,34909,-82440,-72088,96429,97174,72677,57546,-23729,92231,89870,-50680,-72763,49249,30388,40332,39798,-17195,37510,87621,-57757,63897,2250,42326,32073,-95361,-19459,70012,56906,38773,-41166,2889,-53172,-9468,-29473,3339,-31131,-27689,88377,87099,4443,-50279,-53716,55034,-48621,-81902,-87555,-2063,-53577,74139,21855,53278,18230,6796,-4725,-95094,10384,-5522,-94197,82876,-51745,85757,37997,10353,24793,30017,55412,-98389,37229,-18249,99959,580,61467,5765,-98952,74845,98204,-75164,-37798,-3849,87111,-3397,-6262,70409,96353,-30774,68624,6420,-33841,-37667,30618,42748,-84067,-25817,-79917,94713,2100,39255,-61884,38015,49510,-27261,-967,51313,27191,-4398,-88617,84219,-39809,-3415,23894,-36880,-53846,40572,27417,-76072,19026,37675,-81509,-46590,88554,44660,96347,69631,33379,-35935,-19467,76660,-19392,43424,30394,7169,1091,80336,62106,-17613,40847,54689,72774,73952,16627,-27816,85374,68854,-36649,-82627,67815,69748,-83300,86555,-75984,-91689,-4587,-1180,-41642,-34158,-2114,25191,-19567,12287,65321,49290,18127,-82040,-46338,46109,-75495,88580,68684,-98710,71164,-34913,25138,22578,-33378,-30673,-28209,89930,-2199,831,82166,64022,90484,38851,46314,53548,73743,-59448,40109,-66893,11107,33879,70330,25351,-5059,45493,-14843,-48575,86310,92793,31810,-61250,-80825,-60600,-97898,56771,-56876,49159,-45996,-26227,35030,-89188,38275,24017,89700,36922,-59357,93562,18943,-68345,-71969,-68697,23477,-72579,5676,-11825,90949,-53722,-65277,66038,18514,88395,-45169,-36133,-14158,45505,72377,77136,-26277,11594,-63198,81554,31515,64876,86214,-94418,-67239,31150,50825,78065,-73932,-58257,-30163,52359,6757,29528,-1410,-47133,-22807,98600,90409,21045,42465,41257,79180,85307,95693,-23661,8299,20263,80050,-20714,-96068,41847,-8346,73595,6399,1575,-47560,84881,1529,34259,-5602,95329,82905,26278,-49146,79990,82045,69759,-92283,-28681,81203,81848,-27022,-7821,4738,98813,50449,10422,-44397,7666,-13341,28127,33998,36791,-69515,-39947,71838,13131,99719,22909,60422,-41180,5673,-44238,89970,6994,-66414,46734,-17105,4063,-32677,-1917,-24513,12698,32161,48358,-68463,-4485,-82438,-1894,64731,-95857,-42605,-78059,37379,30817,36367,56065,-60646,3018,93657,-34844,32587,-26243,-42381,64594,-4589,61923,-99776,-85435,57758,56023,-97323,26019,-52900,-27577,29969,-29736,85334,-34054,-79082,49562,80763,-54036,-12173,45042,-40162,94440,89651,-19092,99184,-73406,-52907,-51858,-11036,992,-54367,-36444,97781,-81875,-82713,-23954,64592,-49921,63560,-79765,38481,-10029,9847,-40831,96225,-41034,76922,35687,-53427,52754,-57050,294,-46293,-68583,12436,-58700,-3806,-7725,-50462,95981,-61833,93242,76036,43623,1734,14110,-8088,19605,74792,32189,-23722,-44379,42474,64203,-38862,-453,80598,-28368,4073,-10375,-57457,58177,25949,1455,-7902,-1727,-20852,47994,15605,59215,55737,-3581,77584,-82877,35556,42693,32106,-13290,-87558,-86037,-20019,-74148,-30903,65973,-24307,-4711,-52418,-96131,-58067,99752,53717,-83484,64326,83937,4367,-54999,17386,-24085,-32419,-40207,-98220,96346,99804,-69176,22600,3866,63754,2108,-84964,-52577,-46324,-3643,13899,24995,-59507,5277,-34738,20498,29080,96150,-70022,99333,47807,89551,-17819,58400,9508,-35143,-92622,-25556,-81113,-33537,-65740,-713,-15571,662,89683,88576,40891,90779,-72490,36566,22418,-59523,-47987,23646,-50149,-17787,-37439,-30534,44591,17884,36736,-90920,-76801,-54057,-71379,13049,-56738,79056,-46553,-76970,-78802,-3955,-70332,67850,47914,-69735,-6692,65173,-75487,63278,-43128,7779,93653,39142,-34592,14068,25678,81256,17163,-89102,-67160,-13205,-37270,-51918,-70446,-85172,32091,76445,12190,73964,91905,74909,-48060,94805,-99027,-2493,-81572,62809,-64925,64793,-64889,-58131,-40994,65586,-96290,-46801,-48712,95530,27797,8762,26331,-2352,-14844,-68357,-69067,-75433,-237,828,18565,74550,10992,-16328,-56719,-23501,2026,-59432,84290,-18414,67447,39846,-75136,-22167,-46857,95223,47174,83834,2277,83113,-69192,-28200,-66070,94813,-54780,-45702,-7602,-73693,-14242,10036,19681,54802,70362,34835,58204,-8632,99038,-52608,95126,-63274,72262,74084,-67302,17661,16552,81397,-43273,17422,-79838,-87516,-42745,53281,-56487,43718,-51661,96748,-4346,80379,87496,37138,42881,12260,11246,73144,-16419,-23536,-87823,16507,-86468,-17949,-48061,81211,-11131,-53387,-74818,-26692,-64038,-24970,55419,42149,87881,-67954,96166,43931,-76266,39731,1565,-63153,-74985,52106,-29265,-45777,99026,-88929,31859,12308,48983,57504,-55685,31497,13761,48114,89049,-82797,-66283,-86075,72954,64277,-81307,-97375,35067,47021,36167,-73220,-23802,-59005,97975,51427,-75245,-32317,82588,-9046,30663,-54218,-70357,36707,-28314,-78751,91355,99292,32972,48844,44769,-38030,62542,79059,56411,-80720,66597,60818,47301,70597,-63312,-17525,2000,-95740,-82843,-64278,-68921,-8965,-32146,-79394,37553,26530,-89487,-17511,-88478,40768,55037,51447,-36969,-99869,39997,39550,36732,-39777,-99505,471,89098,-47712,-19859,58284,70284,73894,-34044,15852,-28881,-3291,-16408,70563,-994,34137,-54920,-45733,20157,85934,-49916,-75624,87237,38022,27453,20293,51171,41901,41407,-79294,-14485,-65785,-89147,73921,55631,-25492,-97489,78428,41733,-11115,-40473,-79510,-57596,1181,-21298,21378,81628,8794,11236,-11077,10271,40634,-34396,-5613,-98521,-29045,29794,-39372,15995,72551,37806,1694,76865,27425,20782,40507,-30900,-43545,42194,-27320,24066,-25145,-94873,-6091,-42453,-28679,57954,86346,18872,57053,5268,-71529,-76008,73690,62680,-43386,42842,62425,20733,21054,-16668,-37533,-56246,-98301,-14738,-52481,-43027,53609,-20552,64590,-32345,41435,37260,34895,41814,86832,-41114,-11990,-96592,63941,-88019,64782,85092,-9127,-17301,99052,51810,-22623,-52913,-7832,-76424,46163,66695,-38908,85503,33234,-65030,-13261,-11801,27950,17956,-68475,-64468,52854,44404,-23240,7896,-50983,52868,47313,-43035,86713,33996,-96504,17689,43059,46276,89872,99907,76033,-45571,-47799,81556,-70557,82655,90023,26675,3523,21143,77656,19529,34788,99694,-88940,-19903,-6922,-82747,-51093,14599,45681,-82665,80137,-23262,91483,-84247,-5350,-34472,-83852,41087,23683,9082,-26689,-59304,-92121,-79828,-56778,82302,86537,-30082,48833,-61260,46175,-48065,-1350,81687,-75597,4454,39945,96955,-40799,-61798,86117,14454,56376,-27028,93273,80213,92085,-27439,86477,20792,60810,-76148,48549,92488,85513,-3119,-18562,78153,-89351,5646,-76900,-97971,-86059,-41084,-6856,-29397,-71025,-77264,31647,-37996,-20955,5862,25713,-38839,62867,3779,16509,59480,93678,33764,-821,-89877,-50913,90054,-29534,-92980,-50135,74305,29542,-61223,83972,21689,89652,-76569,15561,-30795,-81494,-23818,-87233,-51846,58938,-97800,-76120,-21196,-75893,30936,57836,-11284,-65515,-73528,49729,-83919,87940,43581,-75648,-23390,7742,-14190,-36597,3610,94574,86919,67871,-74769,-45274,-35236,-64374,-46496,-56146,-77472,77526,64918,-31687,92591,-84289,-26704,-38528,56676,24042,-14901,-4462,76065,42215,64044,96493,7969,-93751,9933,33742,-40721,-94285,17708,13009,90611,46922,61208,29512,-32391,52032,-12556,-52136,-34123,41567,46520,2680,41779,-68995,78788,-41580,-87726,-1641,-62083,-71604,51933,-23422,-81481,-8743,-73925,-54940,36700,83171,55273,63582,98136,-92721,8448,-15486,56848,43979,-61735,47701,-17715,64802,47331,-96270,10519,-86576,27417,-19677,98789,-33129,22827,79754,42805,-28518,-44146,-52430,-80265,-60179,-13508,31446,61915,67154,37863,36535,84578,48658,27539,-97081,5461,-60829,-25624,71254,-25220,-52617,-29585,-42772,91115,78337,58899,40375,90936,54354,-22441,60206,-34615,14875,-43630,53212,70189,50517,-36343,87353,36897,-15955,-84480,49802,-78471,-76208,-67107,41445,-19998,-31182,18950,-99118,-8449,4746,76813,-83807,-8248,-48053,51038,-74110,61736,-17204,-22812,-95046,55891,-91897,-74823,-5413,-34527,98110,2102,21616,-3510,15515,-70476,46770,28115,-83613,16456,-31277,58524,98628,31038,-60663,-40095,11683,4902,-95261,11446,52537,-38248,-61723,-77643,-21253,-68384,-12160,-88018,65706,-50996,10311,-1276,-40033,83407,-80865,-30504,-97195,26096,-81149,-30696,13296,-16795,-85528,47631,87159,-93258,-48402,-32695,34102,83519,3253,-84603,55128,-27906,-10414,-67523,68009,-70995,67190,14745,-62833,26832,45334,32814,53668,-96248,-91774,-63765,-2826,-4972,-49653,74470,-54307,75058,39996,21929,50420,-50411,-20704,80999,26988,-73024,-88084,77704,-84950,-26992,-52787,-47235,75883,-38176,24833,-76736,74392,76105,-24957,-25632,91096,-30753,21131,-4516,69802,-65001,-73165,59408,-89013,-32259,86170,18651,-34841,38080,4684,96820,2069,-82599,69208,30455,-46672,-24094,-10235,-27475,76267,-37692,5016,-98967,42088,70255,46045,51355,2428,81274,-14933,31156,67376,-96535,-36980,-42595,31378,85634,-98059,-1319,8474,-52947,87700,48298,-38519,-56489,-7080,-14579,43655,59956,-19765,78535,12855,-38011,57366,2467,-56426,4124,-68684,-38398,71433,-12716,77608,-30874,-39037,30323,-15945,-22614,99443,99274,-62521,-30619,68703,78690,2691,92963,-89379,-79313,36476,-50575,27880,51739,-12259,-75759,-8670,-47632,70844,-35386,69287,-12232,12800,-67261,86948,39378,-51017,97572,-54073,-34140,9362,-49860,13352,33551,-7831,-30198,37346,-93813,-53386,-18705,12909,-40352,9197,-28395,44224,7359,89212,23854,82198,16489,-88054,28609,-30686,-51563,-604,11662,97704,-37552,-21284,45580,12214,24688,6205,-9617,-70995,-51035,-79470,25240,-1334,-84218,-39675,-42563,73288,705,-62442,41927,-60483,-29500,60996,19114,-71258,-67484,-15059,-70554,-34011,46489,-38069,51609,99523,795,-88361,56877,-77038,69524,-36975,19871,26649,-80196,57849,34157,-43281,-53866,10481,56840,54032,69349,-26550,42518,53417,5218,88762,54620,88230,-2633,33523,63784,71138,29235,84241,82366,26080,-5192,-14090,-19008,64629,-67268,35410,-83429,89741,-35790,96433,80562,-80099,-96231,33845,73548,79571,20305,-99512,-17969,71635,-85237,40353,-2225,8915,-18864,27668,-43302,-86193,-23371,70927,47049,-13619,95691,-11612,-53142,14916,-47501,-49002,67161,77503,-87808,38794,18375,-81185,10216,29198,10487,-66694,-97346,35310,45264,-21258,-1890,35080,66106,-26392,-53000,-57185,17428,-12252,-32468,-95539,-66956,-86951,55035,93054,-40774,62237,42751,-41054,55365,28862,56360,-40860,-82784,-63598,93507,-78081,-71367,70011,-12052,27650,57883,73058,-26934,76716,72970,95753,-37146,97224,-6810,82197,12933,-81687,-20752,33271,41877,5025,62809,75559,-3736,-44255,8819,579,28269,10882,7651,-26895,18019,-16908,25305,92901,-16817,12866,98607,-29577,-83763,-79000,93654,12711,19556,-42468,85264,10516,59256,-37331,-94741,-92862,-56803,97213,-24989,-12335,44133,44448,-20301,-71629,86789,-70778,-58712,-85604,45567,-97453,-13364,12254,-92580,-60713,12396,36917,-12267,-56876,43236,-63228,-4725,16345,-57458,-32924,23486,-27799,45297,-93956,-35310,-93310,10535,83939,-85713,27411,-35138,-20414,76997,73154,84964,11847,81858,93013,63761,-93274,-95988,89007,16438,22833,-9528,-84026,-44977,-69982,28268,-63410,96289,-30380,97670,-53665,76424,-43882,-61208,53864,-5175,13382,44420,-98880,-96753,-64124,54470,30913,99822,52128,38657,48293,28615,-27986,-68103,10029,4156,90734,88885,62247,24091,-40284,31386,33371,51561,-60237,-41665,28980,-24590,-61869,2167,-85855,22542,-10887,-35693,70243,-48505,-93894,-76001,-72987,8976,51439,86285,26575,40980,49988,56247,18301,-51301,-46259,-28365,96203,55595,59994,-31384,-43134,-14962,51126,56659,-37164,-81247,38547,39150,85191,-67326,79282,20320,-4839,73914,38683,-880,65479,73470,-64089,11252,-48629,33891,-53799,87613,-97496,99554,-98820,82856,74611,-62499,-61824,60183,18095,99111,86097,26826,51110,-94782,-52653,-93733,-98291,-86783,-12352,51463,-50487,25278,-69759,69390,33613,-6495,55401,37362,-73978,-462,85291,-72593,34600,1685,8212,-44795,-23747,3654,50013,-60859,54331,-3604,-39142,-86061,-49950,41740,29848,93873,-28455,-46547,-99517,59455,74154,-24188,79527,46828,42365,89149,50943,-60067,76901,-73854,3315,-84631,-68393,-82875,46011,-55669,13912,-4048,-69126,-35864,-15031,2646,70882,97005,-83077,-53125,-79070,-17903,86436,89626,37004,78609,34790,46485,-63518,36307,93877,50627,59004,-44568,-28179,84085,-69115,-75101,-13460,-76675,-24933,60521,63294,78565,97111,44763,15159,-16682,-51737,98417,-65909,-20729,-95336,-25806,-8410,-13569,97457,-27950,83220,52105,75525,-39892,51667,52874,21165,-6062,29417,30012,-41489,55024,-3072,64499,-9519,43489,-26782,13119,-45214,-92034,-76617,-33756,-5717,-30412,-30414,74905,-48357,18979,-51415,25618,-66530,-62889,88128,35056,-66351,7675,-10367,-99014,8208,95129,-15666,57384,-17846,37670,-57026,37001,-32878,90015,-19441,34181,80596,-38983,97034,39373,54816,-94774,78624,74030,-3574,-19851,-94696,28180,96427,-56108,-79999,53792,20270,14786,-60568,-83677,32182,-90838,-78673,76624,8872,-88720,-83804,-37327,39095,77001,12509,-45448,-73429,15970,-45994,4699,-76185,-11281,-92121,-48662,7282,48694,48606,-69244,-47701,-29330,48819,95335,53253,31548,-4083,-90249,-6560,-41267,-27513,-83119,63333,58250,25320,-78912,-57314,33967,-67968,29707,23607,42993,-40273,-33290,-98504,-46628,71989,-92433,-18852,43934,-50085,71140,-43764,-94364,39485,-48341,-35944,-51707,-799,-29572,-60833,15750,-23658,-49477,2024,-62884,-71526,-97934,-87084,-98613,-89907,46400,1895,9285,-67168,94095,84542,93211,-59251,90169,9080,66708,58089,-61076,99023,59433,72735,82691,-73594,52007,97285,-42456,82385,3949,12434,-42147,-65315,77455,-97007,-73326,18057,90583,-51209,15677,26279,84714,3291,96772,-95147,60148,-21528,19516,37731,97365,90766,17909,-842,19735,29733,-50206,82955,97409,-5987,-74358,90213,-35331,-36766,-63791,73567,30726,-87232,95980,89443,47070,99508,-5237,90598,-64789,53668,58001,-6201,77121,7984,59139,-94674,10079,22413,-65663,-81223,-95559,61015,-15420,-45456,-5377,26632,31256,-64490,-96055,25453,-71487,60136,-49630,36308,20380,8539,5483,-5363,-63169,4460,58980,81210,-13894,30892,-96642,-18852,85369,-545,-16216,-47525,22464,-17682,-20491,-14195,-68291,55726,38969,13101,48259,-97975,-95438,54767,-69351,84542,-56860,13010,-64268,80826,74109,-54694,-62733,-93578,13784,-19361,-88672,93878,47192,-29051,-14031,-57531,90663,79908,57394,11043,55993,80797,-71573,71160,18086,75684,21315,70888,94250,10246,-89378,40835,-77953,-3045,11880,47099,-76553,24389,26291,-68132,-583,-38925,-43640,64131,-24981,-34890,-68086,-46070,97100,-63093,81115,83374,47821,68662,-53600,35226,-12447,3124,-8841,-63969,-17691,74313,98242,8280,24726,93863,-79852,-30425,24518,-11171,-40867,-73446,-71598,-22724,38813,-15229,-51980,26939,82420,-75199,58890,-33997,-80,-75445,-93638,-14119,-9994,-58204,63047,37065,-46372,-9025,28749,-48201,5510,24659,-87441,-10158,-65573,16672,74216,17310,-51233,-380,-12773,81329,19224,67896,65684,85287,1455,61341,-42837,-87763,11568,-30182,13359,-43227,83580,43167,13319,30609,95950,87643,17467,14411,34828,-75128,-62085,-48210,31638,-64566,-77493,-74143,-93480,22527,12669,84688,-46008,33273,30296,11529,-28078,2464,87763,-55252,-87155,-80133,-93519,-62514,89283,-76518,-15150,49509,30017,-71518,-10975,66656,83149,52684,3023,-10086,-73769,72907,84480,1291,-43485,-37175,-17473,62333,16427,60535,7897,-94353,-61407,-62946,44625,40872,29198,-1736,-24251,62360,16239,56463,-5757,79723,12462,41029,35466,-37815,-38691,-22170,51274,-93427,-44777,11175,95807,-97476,-25303,-34126,66240,-84248,80906,14768,80686,69455,20940,-9718,-60346,38910,2543,60767,62118,-67355,-64024,51014,84484,88783,-49311,-21541,-51211,11071,-25788,-56583,78911,-98653,-94890,-17626,17747,38323,-5474,-46124,53469,-74985,57832,71393,-54820,-75501,90990,-69622,44223,18151,-35044,-15801,-47916,-34646,15102,2548,-58083,14010,-24092,62809,33416,16437,78974,-92289,80647,3302,17241,-94438,-31213,-27572,-60854,-30999,63038,-25364,-17183,90361,40224,-74569,94792,-617,-6673,63739,2195,-58685,3110,-45032,98942,45086,-70569,3053,-76417,87233,33261,1669,15637,-74987,-36454,21685,3571,-84950,-40368,64653,-54616,-23000,58210,-65672,-61525,-59120,66708,-6428,35837,64967,-89646,-54841,15713,10003,49491,-31429,67570,-520,80816,-16785,44887,22611,81402,-64213,-53585,43110,-67912,97942,19717,-48568,-51772,-32964,-53315,-55971,-86295,-11027,-95739,-15165,79002,-33494,-57367,12451,-40216,-87808,-16033,20745,-29242,-37376,83221,-69186,-53441,75440,-82230,-24849,-56485,-62005,-55154,45267,86448,-48301,-92902,92374,42403,-8465,58374,92757,-5626,89878,-47146,-77321,60588,-83808,5081,33075,28525,74438,60010,13123,92419,-99025,-81831,-84306,-43330,-9285,1401,-2589,87853,32641,-19938,90569,68568,-88041,-51503,22024,-9043,37784,78024,3186,-29247,3680,-3902,96853,63532,-37594,19056,-38840,96666,49385,-4277,-67575,87740,-66694,-12368,47437,-26838,90395,-96901,-27211,-40553,-83202,-3461,75616,77295,-53581,14650,93492,-63321,-38482,74929,-10013,-10776,32876,-16311,50098,-22684,-8959,-17039,-41819,86805,-96683,86024,-25138,-48356,37631,68824,-78436,-24348,-37036,97143,-12522,-75288,32727,16367,-57981,27576,61023,-57881,-37588,41933,26428,60677,30719,88874,37251,-31175,83534,36836,53770,96466,523,31674,-95700,-33500,18285,-6091,18787,-85012,-37538,75769,-50857,41043,-82718,45062,-42691,722,10212,-3598,-32440,62851,18543,19046,-84973,95773,-92994,26828,-49415,-72904,26069,-60457,68658,-71594,45841,37123,-54404,55487,-55147,-90361,7566,81160,-27504,65737,30650,-83783,70055,997,20148,35927,-23854,-52271,30818,84074,-32638,27691,80097,-11489,-36576,92600,34517,-65554,50735,-63433,-39038,-49030,-4313,-45617,43652,40298,65945,27680,-22403,7655,33991,-14166,-56647,-89809,-14055,25167,-29239,-58682,-46029,-99837,-54440,-61844,16308,-56443,-76162,60691,-52313,94705,33732,93340,73956,-55486,-69729,-70596,75501,-45256,-41040,-21172,-31133,-36246,59896,-13341,-14610,30957,-10125,72315,-6155,34603,83446,98516,-12300,-27470,-40670,94072,35137,57531,-99883,91138,-68148,-34375,8758,35597,-61855,39719,-93389,-69050,-64969,-69829,95010,89094,-29606,26667,26630,-32825,49351,-73609,98305,59157,22765,-45546,47063,-90945,-90438,77432,5660,-31801,-55706,47210,44315,35175,23105,10548,55545,-51837,80751,-6182,-52130,-86960,21377,80574,99853,76612,-44228,-49064,58505,-25406,-37326,-81699,81553,-30130,24978,75804,-33010,81556,43249,-21221,1645,63509,17245,62943,-27749,26691,-77263,31352,61044,43403,28598,-89675,-75712,-9537,43176,25299,-91074,-96053,46377,-42475,80701,4734,93850,36401,-55028,-96787,-5330,-4163,-86889,-28874,35716,85621,-69733,-98554,-49746,17035,-80225,-43565,-94125,-57962,-52374,54733,83598,98101,-61030,-66974,30691,-37330,33877,-82848,-5772,85065,-9231,-9194,-66704,-89141,59793,-21384,59594,65261,-80464,-74862,-32680,-27221,65486,17783,28258,-36060,-53406,-38352,10146,23926,-92088,-68756,-27755,95064,-86338,-19072,43492,-77368,-62708,21340,2572,-3454,-46633,-45010,46742,-78407,-75887,9437,-92245,-18548,32191,-14294,-72093,-79675,-57212,-4150,13537,85999,-83569,71310,-17020,-23960,22998,-63220,18411,-29943,-80141,36251,-66592,-59906,-47626,-14246,9442,7978,-43444,67613,67091,-94116,10723,-45510,29650,-75850,-90197,73220,-93277,80234,58209,50986,47939,81697,23248,-18886,-25744,-77943,78293,89779,3916,-66865,-4816,78664,90705,-65872,-72583,-82323,21698,-14515,13295,8068,-49604,-43400,-91325,68611,-72785,-47260,-16532,71975,-69041,-18449,5680,88993,-22105,60829,-45368,-26595,-48617,23324,66601,-61873,85726,42236,-71958,25295,-76953,23039,71787,-24391,-92504,-81750,-98462,29750,-67782,-62660,63788,-33128,-23873,-86295,15564,23496,-1930,98184,-68567,-29756,58618,-86544,-81101,-58908,-14036,34094,-70679,-96364,-5917,-77603,-4597,-60761,39328,-19584,18658,94604,-4140,71433,-1545,7039,-26481,-55771,8588,-57324,63200,-7469,-69451,-93080,94263,23233,-16470,-62844,38753,32047,25949,71095,-34861,-5099,-58904,59586,76720,42125,27263,-55326,66904,-37784,-96806,4439,-69669,-51169,17361,71867,-10665,40393,-78020,-79793,79859,33909,92371,9803,36134,-45664,-53238,72595,92557,84155,46918,-40608,78354,-79786,83274,-24485,87736,-49687,38491,45931,72615,64070,66654,94320,23545,4375,-40934,1428,79713,76089,-75941,81999,93305,85869,88125,45539,-59248,91840,-22535,-45432,22336,30745,23685,12993,76073,-13205,-50683,56057,-53812,-17212,-72416,23366,-64303,54178,78091,46254,39217,84676,-97461,51094,-92433,-46139,84605,-31517,43777,-94010,-29413,31718,93766,90362,-99025,72986,61676,12533,45104,16809,-67899,-27886,39146,30955,-35775,34658,45637,61854,-84055,-96470,-53314,-85179,-27496,14951,-5937,-86794,-75164,-3792,-4594,-48973,-7620,-56565,24110,60818,72778,-38197,-80141,-32023,58194,15558,-77969,38068,74339,70375,-8255,-12748,-33632,-90140,-17936,-23830,-37926,70779,-68263,-32985,-46,-18581,-97478,78261,-73639,-69719,-90726,-83706,-75121,10179,-64235,-50374,82357,92621,-69275,31332,-45928,-14132,-24027,-70773,49785,-44349,64839,-32789,77845,25366,98327,88687,78519,-58066,-54231,-5130,53311,-7303,-31597,20031,5496,4471,25518,7197,-36149,14658,65224,-13059,-93497,89050,73327,-17696,74336,-94368,94601,72158,-73284,33208,-55892,-19443,-53296,85494,-67962,19214,-80759,20181,66820,99223,49341,61650,75070,-40924,-65272,-27237,61450,-34983,72841,77274,70787,-80048,51592,62057,58451,-13072,77560,76393,15187,89518,32464,68273,-78165,-89713,-27794,50084,94635,41126,92966,-69674,-42286,-32699,-17129,42850,564,-48931,50601,-56745,90477,-24101,-91847,-88338,-86151,-64223,47140,66632,-86592,25375,29623,-73989,-68295,12538,-75730,-58803,44816,-69032,-31882,60808,8501,-53308,-26709,-64216,76438,82788,95577,94906,-80911,40924,-93338,61320,12488,-29150,-1884,-81925,-28969,70774,-43807,-63168,-73981,-34815,-4975,-83973,-11471,-68026,72319,55961,-23817,44582,-9238,-99603,7746,-64094,-69660,7766,65661,-77829,-21643,-8970,46296,42363,-40595,6718,5740,12568,-67332,54184,-5140,45773,28454,85476,92197,18844,51351,-91683,-9000,-4368,-66196,62120,51378,-55163,65759,-88323,-82715,-46754,77075,84324,-85606,55155,23931,-27007,-23242,81257,83495,49007,-17238,23084,-34823,90988,-40693,777,-97113,94232,-97164,-88030,-43039,-6536,37267,74953,-15220,61236,70110,71075,15907,16577,49420,-38910,21013,25628,42796,-18661,-90865,43217,84368,77433,-43847,71888,84768,48685,1082,2455,-7035,50268,59609,-98926,-81031,-43757,-95203,2698,54372,-52239,53375,-74128,10172,-62484,36336,79931,-25573,-15492,62079,12583,97440,-34230,8554,31572,-12106,17383,4169,-35619,-28141,-81662,58041,7767,-95334,-64231,-46790,-88258,-55925,40814,97104,1304,95318,-73157,-87438,-58995,95977,47581,21862,92090,3376,1648,-32588,5402,19033,-34312,25306,78531,78703,60647,53852,55554,85824,83946,-38137,84455,30774,34119,-1106,-22073,-75598,-5214,-35999,15039,-51006,22584,15055,31456,11174,65002,81625,-3377,67684,-28355,-43923,-68672,-87638,45143,88351,85129,-33383,-99537,-47920,-87350,-92440,13425,-39283,84780,-71128,66743,-6435,53152,7924,60470,-70412,59879,93039,13281,-88035,32256,79204,58784,-66118,-805,22121,-19516,-71605,-79069,-50170,-34770,58196,42678,-28923,-43002,33421,12550,59447,-32052,69477,-75875,13782,-55666,43497,24728,91762,-83324,-1137,68300,-51564,98483,-41044,84570,-61116,70497,90058,84468,-30620,-12836,-69462,-27574,19401,-35099,51963,-46109,-11761,26461,1935,61825,98155,-40167,-64032,-2197,5820,-56151,45886,14634,26876,73404,-98302,-65197,-96670,-57636,-16703,70695,-28859,-3468,-5021,-46684,37577,-52598,57579,27911,-48212,-35563,70380,-25579,-43468,-2034,24523,-66597,-74295,-85449,-74628,-79796,63983,-93345,-89041,38058,-21558,29186,85681,93935,-87688,60195,-44182,70993,-65579,32365,-4244,98538,10657,-5496,-17648,81729,-14230,-26367,73872,-7482,78096,14785,17175,-68308,-55506,-94662,47904,9335,82711,94115,-17150,-97292,6558,-9120,-18932,57333,66413,-10233,-75646,85211,-41461,29452,48336,60312,-33868,-69363,-27146,29592,86929,41523,-25936,-54266,63089,-269,64507,-31816,42832,55199,12623,14721,29555,87763,90916,35020,-49043,68819,-71058,67430,48312,56173,14354,-55826,-75465,8836,-31931,28847,53883,72847,22895,78364,-84618,-86575,-14528,-53546,-47749,88700,30188,27091,75930,-40877,44503,12399,88525,76003,52441,46581,38577,-19349,-81928,-33476,-90348,29651,40275,42700,-1237,-20695,-69340,61354,89925,-98407,91866,53918,-37333,-29136,-95845,-34765,45876,-56905,26250,-967,-72442,27470,73029,-84348,35380,86407,-73044,-5764,-96898,38262,95738,53475,90696,-85077,-57089,40551,-73029,-31529,-71092,47058,51788,-35699,-99729,-57686,-97161,-7767,-10396,-53442,70869,46092,-96715,95411,19274,-60669,99299,37898,-78877,-7042,-42420,15828,-75674,24044,-74724,42266,-30445,-87138,51771,-3424,90951,-95683,31023,-68263,57918,-45485,49404,24006,64694,98016,8141,-59932,-49716,7498,-48668,28480,88698,67445,61491,-78468,48255,10098,45678,40981,46946,94875,-4890,-98707,-75813,-60153,-4844,33244,62821,23088,-15557,-45135,-19531,80919,-18553,-29419,-77141,-61508,-60635,-86445,95122,-96458,99568,14407,-51732,-41646,14196,-99914,-16718,70070,-57809,-49302,-34168,28364,-96419,22829,-22437,87474,-41143,6477,-59430,2037,-32229,79675,44265,-78375,68755,-75559,73061,-40724,4841,-86,-37943,-36740,98696,25853,-40832,12830,-31821,-27,49653,23083,93680,69334,-97784,-55842,51922,80620,89221,-31058,-55450,-78274,-11169,-2762,-63102,-24176,-29642,86260,-77989,94995,-9931,50879,18924,35711,-40174,-47814,63478,60913,-92662,87728,79181,45859,79436,35156,-953,26285,-91631,-2852,56261,809,-15772,-22689,-8582,68939,-13333,61288,-61795,89012,-53997,38180,8086,91310,55936,20401,86096,-95740,-94472,-21497,63306,-8187,46204,71652,44511,-11690,-31462,24094,84567,-90043,-39392,85394,-9611,-37219,87716,-93366,-81411,-23195,-40425,-60404,-37531,-9617,11010,-8996,-2956,99963,44573,87836,44093,28949,9465,55119,8159,-39568,-57365,20640,-97101,89350,33860,88045,-13004,16824,62552,-50945,-96340,-67543,-57771,22475,40403,-52708,62911,98178,70931,-90537,89228,-73608,-7015,54131,-44799,91289,-74606,64461,61246,-5064,30365,-66939,-84709,640,51815,25625,12519,31395,-19612,59206,-48501,53585,6912,93937,-7317,-94248,54957,-80781,-6629,81862,-57611,-92288,-59774,71167,-98841,89944,66323,-19553,59437,48722,-35512,-95944,-63869,57481,-17000,-15495,-79938,90988,-29301,81124,40125,15334,67188,56338,-91182,6016,97903,37272,63425,-42525,50213,63921,-15137,83400,-21407,62525,-10862,-57843,-22604,28451,-33793,-55665,-38199,-26504,81372,-50959,69699,-71896,45135,-41782,-90192,29902,-32436,34066,-51636,-26776,-30983,-52998,77092,-22868,-41445,65299,14234,63682,-72879,99797,-74495,-5479,93508,91333,-85207,24809,-2429,-10352,-95851,94213,-33011,25268,83827,-78854,-11884,72799,-50815,-68919,-6140,-70391,97354,-23510,-67896,27558,-78689,-28694,-88148,-44987,-72914,77773,41941,-79331,-24675,-78355,30906,-70866,-54714,-95693,15231,-84314,51320,39854,-29848,76792,-29476,-62051,-17818,57512,1270,-21311,-7767,4006,-24841,-84776,24605,-95540,-88761,-2691,88312,56161,33708,66077,-81704,-43004,46628,17338,29034,-90331,-9803,-2596,33,-80681,-41478,36975,-84280,-49378,-65273,-1881,75883,62793,-65653,-60965,-60145,8674,10186,62130,-40227,87888,-19981,-73802,-23858,-12570,71999,44020,-82879,86616,12172,-52574,12853,-32048,-36666,-56900,29689,-99916,85239,21951,34260,68810,-10652,-35912,-87411,76266,28005,46535,-25246,-10677,98735,49415,-69590,69759,-21414,-99992,71255,23799,-91665,-81517,-80539,-61851,-1851,-91028,-80489,-69992,-5340,-73657,64105,69035,-79665,-77158,-34469,-89791,41603,-98971,-48516,32431,56667,56168,-24438,343,-25971,-62799,73167,46015,71309,-11463,-95341,14813,-37158,-15457,-8308,-69254,16839,-92205,-35374,-51922,-95985,-46881,14265,-88695,25183,-37019,-69768,69054,-79388,75951,92033,15937,-72191,-54918,90154,23499,95011,61349,-11664,70847,-54254,31440,-77762,-29442,-8906,57093,80899,-3640,-64852,46296,67182,96619,17196,64524,27934,79661,-81065,53698,-73850,10826,-95112,2908,-31523,75111,66514,85813,-34866,10598,-39075,-39338,31507,-38134,66049,-52063,-47714,76930,-94758,15378,43531,-26609,70931,-74756,-70716,40954,37283,81491,81195,10998,-44312,42236,-61040,-27120,83362,-85717,31878,-58114,13259,-92135,5597,29214,95595,-1259,-62124,79647,29669,14747,75185,97158,97199,45310,22874,-11953,-6668,-95533,-30512,-37002,6975,-74579,17455,-34684,-30048,-3736,40757,96082,88409,-91688,77834,-39746,20694,-76413,13421,47035,5830,-16177,73133,97278,71225,-53341,13492,-48686,-52062,-26605,41302,23078,-77076,-40839,39840,-23225,26747,29203,-55072,11139,92393,-78824,-8887,-17008,-16749,56966,58508,14009,-80459,89363,64877,31616,92986,58844,-78435,-2960,60583,8939,-88270,83348,43434,-30098,96820,-26354,-97882,63692,-12432,-33136,53927,-77100,-91810,-50961,-73261,26912,-17998,-13814,-88706,-6530,74196,-9722,4087,-44344,-70225,-21505,15117,-77427,72612,94817,-65750,-97713,32960,-24239,-28091,-96785,16113,-86176,82556,-10211,81202,51096,41139,39191,58917,-1400,-22288,86991,52743,-73988,39964,-28907,54481,41239,-37589,47086,-97540,72254,-26179,71163,-27436,-68801,42406,13468,-95799,-7050,26259,12799,-31565,-52484,-55766,67870,-54200,29924,-58043,-18057,-22972,75652,-47560,37937,38135,-72570,15305,-8152,-76096,923,-24358,-12886,12964,-11758,32930,-23485,41345,-99612,-37815,11376,-15571,-36552,27649,96267,88415,-60736,1166,-7464,35737,-81143,-44694,-74874,73293,60327,-82534,10185,-97707,-5113,-11157,4798,-89541,27521,73763,-43839,-86193,1990,52054,74933,84883,97221,-79972,-18294,50861,39493,-66226,68665,53858,86796,-14011,35863,-93701,-73865,-28729,83320,-46521,-75953,-30759,-3626,-6228,19488,-12880,51518,61130,27112,70983,-51839,2162,18335,-82519,-56916,46964,43478,13314,-49557,70135,-64335,-82653,-1250,93885,97040,-37249,-13189,-38337,15007,86672,-43218,71482,-16691,-66974,-51154,-77547,-99457,-64790,-63492,67043,15234,-52015,-10795,5049,92664,-15911,-13848,49889,-18368,60878,-88197,78734,-93344,-50660,78984,-73143,-97988,-45733,48729,78696,-23935,-99217,-93623,-36777,-27324,60191,63464,45656,83430,67228,87057,-35600,20413,96416,-38329,26795,60528,11544,-75490,-39866,-72341,-78681,87048,16214,-88292,-325,-57539,-79444,-66509,-29673,98257,23099,51914,-13859,13923,85985,-79774,21734,53293,-79611,-93091,-14590,1509,46532,29741,22355,-59359,-65849,69871,-22855,14348,18011,7246,56819,14243,85263,-32607,-63418,59910,15296,82460,74464,14971,-5713,-6766,-76976,69627,-62338,-95745,-26703,7682,-23326,-98417,-35282,-44348,-83684,-30939,30144,-42536,-7776,-13084,36291,55848,89905,-18569,7141,-42471,49616,-84143,57905,-31644,-30467,-12121,-12186,-41904,97659,-35201,58828,-20292,-98188,40859,90959,5296,-6533,-87456,64412,86224,-37022,87385,45084,81711,98361,-86514,41099,8693,89508,61837,43316,-92934,-66159,-50873,75311,94826,77300,36159,58175,82097,26388,30824,77575,99201,34744,70560,-20006,-29717,-67672,74100,-84997,-2767,-65550,27258,44198,-89112,-64502,-47304,-61682,15440,12437,2072,-55541,-14956,88489,-83454,-88368,-57788,57457,20770,59897,-58770,77590,67594,-88877,-69761,86031,-87610,49606,16672,43592,-61030,36890,-3475,-61633,-73930,82168,64520,66729,84557,-68672,-29797,35068,-64353,2403,-4213,58770,83837,37856,87411,49788,20609,17779,-9520,2058,85292,-22261,-11831,50839,-87643,-99108,62335,69696,21159,54153,-17372,34126,-28813,-17057,60759,-29105,53483,88314,-85418,-41917,78181,33263,33749,-56862,-93227,-86559,-59195,-83601,39706,89514,94625,99562,55987,52280,29498,-42332,76797,-8757,-33167,95511,8247,-82956,-95142,53372,24780,31483,11477,-49938,1091,8459,94947,48207,-61679,-82816,38864,25554,75985,70728,70989,-22439,3940,25216,49032,3674,94936,-22812,-86533,-87157,77517,-18517,26233,-67000,46509,41309,-4481,-60180,45745,29293,62245,-40994,87380,45625,-6177,41107,33187,448,11399,27199,44233,-204,4866,15444,40504,-49787,-46060,82247,-94487,-51040,-8673,-35659,-32914,71086,-71921,-57775,-5586,77488,-77689,11918,-27404,-33848,42834,7203,46089,68220,65690,-80699,-34468,-41094,65050,-25116,19952,-304,31254,-10258,37795,98811,-57046,33064,-43629,89153,-26694,86093,36897,-16850,48744,-45717,47144,-50587,64790,-54573,-64162,45596,-73616,9947,50082,76961,36223,98952,-92348,-78004,-15836,-78217,27995,85948,-91304,-77694,-58974,-8186,411,-30264,-19909,-87202,23640,-3987,68028,-87554,-46714,69588,65112,-314,21938,31614,95732,-85848,-23058,96112,10549,50201,35887,79242,25342,67491,42458,-41422,84672,17214,-81386,74080,64367,-3558,-67632,-6581,69665,96336,-44360,-89719,28617,88403,55670,-83620,-38667,63795,-85469,9087,31830,50445,90194,-28391,90437,-40593,-54515,-5438,-41320,-14352,64618,-73545,-98843,56223,-52200,-54017,57301,-7799,-63872,-61240,73659,60849,-84087,59924,50343,-48063,26516,-66410,54712,-33911,-21402,55892,4264,-73469,-79640,21934,21240,55441,98746,-61546,-12712,-34500,68064,86308,34233,-44594,-59007,-89137,-22023,79353,53694,62685,-70557,-36765,-77786,-60662,-43772,20462,6949,36950,-11833,-17912,-98500,-76866,-11219,37364,99075,39579,68169,62633,62400,-70296,-21038,-85378,-17801,-2311,-18425,75119,-19578,-11245,-23067,-97962,-97075,-17011,46962,-58386,58919,-93895,-38383,-76356,-1695,-13316,-36593,-17704,-86925,98227,-4333,52688,-6803,-172,-8900,58893,-58443,-63402,14233,42181,36498,57672,79826,-95051,-7409,-15411,-20994,49012,-72054,-93935,61207,-68445,83920,-71835,42196,87680,52935,-75231,-40999,-27194,-83621,21316,41043,5469,50902,85888,-95800,37390,-97378,-59971,92587,-61111,-45776,56223,56477,-25217,13149,-77367,31468,-54771,53129,2538,-52633,-87030,52724,-92105,-25741,15425,52143,-10983,-20226,63017,81798,-9138,40254,-83313,43871,-65165,-79066,73409,90240,-2067,-82396,-95459,-60243,63738,92927,43518,-85028,56122,-80937,16464,49256,-38424,56014,20997,19047,94103,-6361,88054,-97925,70215,-91153,-59114,-25968,92203,-76835,41393,94891,-57546,-43939,-60021,29898,-61236,-75894,35982,-73467,-58580,-7496,61618,-59109,-51230,-10527,-56273,23173,-98047,-31490,-15309,-24128,-69027,24606,88409,-79530,-17343,-17562,-18384,33056,-10335,82446,-67842,37630,-14760,5858,-7819,-87193,-40855,37813,84395,-5635,-7613,60136,61158,-49173,64163,-60339,-56677,-85294,-47922,-21298,58479,-58216,70803,25116,81008,49737,-1214,42204,22591,51984,62589,79176,37762,-43046,-42327,82097,-45224,71648,84672,43738,61826,-35717,21449,26078,24473,-45807,-38640,-44957,-9634,-60107,-86110,10450,-84479,-6137,7532,-17829,78714,54070,7462,-97139,72221,25182,-12678,-3252,-900,21687,-89721,-30582,-35221,-10131,35363,-40385,-94093,35906,50454,-38355,-44021,-82272,46380,-90775,-52498,-92930,-37069,83429,-71491,-19477,35138,-1754,-61040,-73689,-91504,97168,-29008,-20096,-89651,-62453,-55221,-22600,87721,-50746,-13158,-55895,64132,-78681,-27412,-24188,-38535,53732,-67490,35137,-56179,-32281,49315,19742,-14075,-28772,94640,-819,41847,-52410,-29737,-19403,82764,12527,43582,47986,-27405,71548,80904,-70209,85859,-67223,-80325,-39006,-80060,50531,11640,44638,29297,-60783,57287,-9346,6099,-5013,31123,96143,-49077,56965,-49202,2568,72515,38009,95315,38094,99413,3994,33755,17843,-38125,79556,14960,-99364,-93827,65767,40801,15229,-57080,-30719,9566,-9237,-3769,28895,-61977,-54947,-43714,73497,57659,43366,28841,15824,19490,92427,37419,37334,57310,-24488,51859,-6024,-61819,-52700,-64538,28470,18355,71485,69439,99524,24674,-2041,-80515,32026,-5969,5006,-64204,-80722,55042,-49698,90957,-54641,-93510,-43976,89289,6408,4621,-80051,56123,2807,86671,41805,66837,-82655,-56045,68845,61951,48487,58687,71457,-71180,64860,-49556,-67985,-7072,-34001,-54024,-57217,43819,83876,-80447,2636,83095,6882,-36888,74233,-36278,-64178,-66536,11362,-79270,28283,-85010,7895,-57400,-45141,58142,-43844,70421,82278,87691,-45844,34799,-16165,-66960,49431,46980,42611,23838,-57832,-52342,63986,36144,41628,12057,25360,-69149,-63190,26659,59166,71403,31588,62714,-20972,72419,-51454,-64961,3507,-93035,20378,19297,51775,79516]
看题解的取值,有几个地方其实我不太懂,但是改了之后果然过了
代码
原本的
java
public int maxScore(int[] a, int[] b) {
int m = a.length;
int n = b.length;
int[]dp = new int[m + 1];
Arrays.fill(dp,Integer.MIN_VALUE);
dp[0]=0;
for(int i=0;i<n;i++){
for(int j=m;j>0;j--){
if(dp[j-1]!=Integer.MIN_VALUE){
dp[j]=Math.max(dp[j],dp[j-1]+a[j-1]*b[i]);
}
}
}
return dp[m];
}
题解后
java
public long maxScore(int[] a, int[] b) {
int m = a.length;
int n = b.length;
long[]dp = new long[m + 1];
Arrays.fill(dp,Long.MIN_VALUE/2);
dp[0]=0;
for(int i=0;i<n;i++){
for(int j=m;j>0;j--){
dp[j]=Math.max(dp[j],dp[j-1]+(long)a[j-1]*b[i]);
}
}
return dp[m];
}
结语
剩下两个题要用前缀树+dp,光用dp做不出来,我没写出来