• 等级
  • 2436 访问
  • 43 原创
  • 0 转发
  • 150289 排名
  • 0 评论
  • 0 获赞

2015浙江省赛Beauty of Array

EdwardhasanarrayAwithNintegers.Hedefinesthebeautyofanarrayasthesummationofalldistinctintegersinthearray.NowEdwardwantstoknowthesummationofthebeautyofallcontiguous...

2019-04-23 09:40:26

2015浙江省赛May Day Holiday

题目:Asauniversityadvocatingself-learningandwork-restbalance,MarjarUniversityhassomanydaysofrest,includingholidaysandweekends.Eachweekend,whichconsistsofSaturdayandSunday,i...

2019-04-23 09:35:14

FZU - 2107题解

CaoCaowashunteddownbythousandsofenemysoldierswhenheescapedfromHuaRongDao.AssumingHuaRongDaoisanarrowaisle(oneN*4rectangle),whileCaoCaocanberegardedasone2*2grid.Cr...

2019-04-22 10:49:47

CodeForces 1141C Polycarp Restores Permutation

CodeForces1141CPolycarpRestoresPermutationAnarrayofintegersp1,p2,…,pnp1,p2,…,pniscalledapermutationifitcontainseachnumberfrom11tonnexactlyonce.Forexample,thefollowinga...

2019-03-31 20:02:09

B - Game 23    CodeForces - 1141A

B-Game23CodeForces-1141APolycarpplays"Game23".Initiallyhehasanumbernnandhisgoalistotransformittomm.Inonemove,hecanmultiplynnby22ormultiplynnby33.Hecanper...

2019-03-31 19:37:32

CodeForces 1141B Maximal Continuous Rest题解

EachdayinBerlandconsistsofnnhours.Polycarplikestimemanagement.That'swhyhehasafixedscheduleforeachday—itisasequencea1,a2,…,ana1,a2,…,an(eachaiaiiseither00or11),where...

2019-03-31 19:26:36

解决浮动引起的内部元素无法撑开父级元素的高度问题

直接展示代码吧:pflags高度为auto,pflag都floalt:left,都具有高度,如果不加<brstyle="clear:both;"/>会导致pflags的高度为0,没有被撑开

2019-03-12 11:35:07

解决vue两个数组赋值后相等,删除其中一个另一个也被删除了的问题

存在数组A,B,令A=B;个人想法:赋值是只是a的指向了b,所以a,b地址指向的数据是相同的,删除其中一个的时候是删除他们指向的数据的值,所以两个都会被删除掉解决办法:(把数组转成字符串,再转换回来,那么两个数组对应的地址就不同了)this.nowDevices=JSON.parse(JSON.stringify(this.deviceInfo));...

2019-03-11 15:02:07

解决vue修改数组数据,dom层未同步问题

vue2.0给data对象、数组新增属性,并触发视图更新使用方法this.$set(this.data,”key”,value’)实例:nowDevices:[{id:'',name:''}]this.$set(this.nowDevices,l,{id:id,name:name});//数组student:{name:'',sex:...

2019-03-11 14:36:14

web根据地址栏参数获取对应信息(如id)

地址:http://localhost:63342/%E6%9C%8D%E5%8A%A1%E5%A4%96%E5%8C%85/houtai/ht_meet_show.html?id=2获取方式:先回去id,再根据id查找对应信息getMeetInfo(){varid=window.location.href.split('=')[1];//console.lo...

2019-03-09 21:41:28

jquery,ajax提交json数据获取后台返回的json数据

实例:$.ajax({url:"http://l",//地址type:"POST",data:JSON.stringify(dedata),//dedata为对象contentType:"application/json",//缺失会出现URL编码,无法转成json对象success:function(result){//所...

2019-03-09 21:36:51

C. Convert to Ones Codeforces Round #493 (Div. 2)

C.ConverttoOnestimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputYou'vegotastring a1,a2,…,ana1,a2,…,an,consistingofzerosandones.Let'scall...

2018-07-02 13:03:58

B. Cutting Codeforces Round #493 (Div. 2)

B.Cuttingtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTherearealotofthingswhichcouldbecut —trees,paper,"therope".Inthisproblem...

2018-07-02 12:53:46

A. Balloons Codeforces Round #493 (Div. 2)

A.Balloonstimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTherearequitealotofwaystohavefunwithinflatableballoons.Forexample,youcan...

2018-07-02 12:46:20

A. Nastya and an Array

A.NastyaandanArraytimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputNastyaownstoomanyarraysnow,soshewantstodeletetheleastimportanto...

2018-06-21 08:42:38

C. Two Squares

C.TwoSquarestimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputYouaregiventwosquares,onewithsidesparalleltothecoordinateaxes,andanothe...

2018-06-17 15:55:26

B. Knights of a Polygonal Table

B.KnightsofaPolygonalTabletimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputUnlikeKnightsofaRoundTable,KnightsofaPolygonalTabledepriv...

2018-06-17 15:45:20

Codeforces Round #488 by NEAR (Div. 2) A. Fingerprints

A.Fingerprintstimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputYouarelockedinaroomwithadoorthathasakeypadwith10keyscorrespondingto...

2018-06-17 15:39:58

Codeforces Round #487 (Div. 2) C. A Mist of Florescence

C.AMistofFlorescencetimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputAstheboatdriftsdowntheriver,awoodfullofblossomsshowsuponthe...

2018-06-12 18:01:27

Educational Codeforces Round 45 (Rated for Div. 2) C. Bracket Sequences Concatenation Problem

C.BracketSequencesConcatenationProblemtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputAbracketsequenceisastringcontainingonlycharacter...

2018-06-12 17:01:45

皮蛋咸鱼白菜粥

关注
  • 计算机软件/学生
  • 中国 浙江省 杭州市
奖章
  • 专栏达人
  • 持之以恒
  • 粉丝 0
  • 关注 0

    空空如也

    空空如也