- 博客(8)
- 收藏
- 关注
原创 Problem D. Distribution in Metagonia(递归把n拆成多个2^x*3^y)
Problem D. Distribution in MetagoniaInput file: distribution.inOutput file: distribution.outTime limit: 2 secondsMemory limit: 256 megabytesThere are one hundred noble families in the country of Metagonia, and each year some of these familiesreceive
2020-07-31 15:09:46 187
原创 一矩形,在这个矩形里面求出最大的三个相等的正方形的边长
一矩形,在这个矩形里面求出最大的三个相等的正方形的边长int h,w; while(cin>>h>>w) { if(h<w) swap(h,w); double s; if(w>=h*2.0/3.0) //w/2.0>=h/3.0 s=w/2.0; else if(w>=h/3.0) s=h/3.0
2020-07-30 21:15:36 164
原创 第一次组队比赛总结
今天下午又打了一场比赛,加上前天打的那场,这周一共打了两场了,也是暑假以来第一次打组队赛,在老师的合理安排下,我们三个三个组成一队,互相沟通,互相了解,进行比赛。比赛开始后,我们就在qq上开启了语音通话,这样可以更加容易沟通交流,使得我们的配合更加默契,刚开始,我们分开看题,寻找可以快速a的简单题,然后我们或俩个人共同研究一道题,或者当一个人有把握的时候,让他一个人去打题,在比赛的过程中,我们默契配合、互相帮助,共同迎接每一道困难,并严格的遵守同一时间只能有一个人去打代码的规则。在比赛中我发现了我严重的
2020-07-30 20:36:23 210
原创 Just a Hook HDU - 1698(成段替换,区间求和)
In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of several consecutive metallic sticks which are of the same length.Now Pudge wants to do some operations on the hook.Let us number the
2020-07-30 10:28:53 164
原创 A Simple Problem with Integers POJ - 3468(add增加模式改变一整段的值)
A Simple Problem with Integers POJ - 3468You have N integers, A1, A2, … , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The other is to ask for the sum of numbers i
2020-07-29 11:09:36 82
原创 I Hate It HDU - 1754(单点更新)(区间最大值)
I Hate It HDU - 1754很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。这让很多学生很反感。不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。Input本题目包含多组测试,请处理到文件结束。在每个测试的第一行,有两个正整数 N 和 M ( 0<N<=200000,0<M<5000 ),分别代表学生的数目和操作的数目。学生ID编号分别从1编到N。第二
2020-07-27 17:14:25 102
原创 敌兵布阵 HDU - 1166
敌兵布阵 HDU - 1166C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生变动,可能增加或减少若干人手,但这些都逃不过C国的监视。中央情报局要研究敌人究竟演习什么战术,所以Tidy要随时向Derek汇报某一段连续的工兵营地一共有多少人,例如Derek问
2020-07-27 15:54:26 232
原创 Consistency Checker LightOJ - 1129
Consistency Checker LightOJ - 1129SETI is receiving some weird signals for the past few days. After converting them to our number system they found out that some numbers are repeating. Due to travelling millions of miles signal gets distorted. Now they as
2020-07-27 09:18:49 116
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人