• 「NOIP模拟赛」擒贼先擒王

    「NOIP模拟赛」擒贼先擒王

    公元3941年10月,宇宙中最具侵略野心的X星人发现了地球。他们以月球为据点,向人类开战。同年12月7日,X星人一次成功的偷袭,使人类军队遭到重创,以至在军事力量上,人类无法与X星人抗衡。X星人正沉醉在偷袭成功的喜悦中时,老Z——人类社会的头号间谍,秘密地潜入月球,盗取了X星军队的一份绝密军事材料。WREAMC(WorldResistExtraterrestrialAggressionMilitaryCommittee,世界反外来侵略军事委员会)于12月8日...

    02014年11月2日3,433模拟
  • 「NOIP模拟赛」“与”

    「NOIP模拟赛」“与”

    题目描述:给你一个长度为n的序列A,请你求出一对Ai,Aj(1<=i<j<=n)使Ai“与”Aj最大。Ps:“与”表示位运算and,在c++中表示为&。输入描述:第一行为n。接下来n行,一行一个数字表示Ai。输出描述:输出最大的Ai“与”Aj的结果。样例输入:38102样例输出:8样例解释:8and10=88and2=010and2=2数据范围:20%的数据保证n<=5000100%的数据保证n<=3*10^5,0<=Ai<=10^9题解从最高位开始,如有大等...

    12014年10月31日2,823模拟
  • 「NOIP模拟赛」挖掘机

    「NOIP模拟赛」挖掘机

    背景附中机房谁最虚?高二一班***!感觉很顺,是吧?题目描述今天,丧尸czy开着挖掘机去上学(……)。但是他发现他的mz满天下,所以一路上他碰到了好多他的mz。一开始他以1km/min的速度(=60km/h……)开着挖掘机前进。他发现他只会在恰好到达某一时刻或者到达某个距离遇到mz。每次遇到mz,czy都会毫不犹豫的把她们顺路捎走(^_^)。但是他实在是太虚了,以至于当有i个mz时他的速度下降到1/(i+1)。具体说,一开始czy以1km/min速度前进,...

    02014年10月31日2,440模拟
  • 「BZOJ1753」[Usaco2005 qua] Who’s in the Middle

    「BZOJ1753」[Usaco2005 qua] Who's in the Middle

    DescriptionFJissurveyinghisherdtofindthemostaveragecow.Hewantstoknowhowmuchmilkthis'median'cowgives:halfofthecowsgiveasmuchormorethanthemedian;halfgiveasmuchorless.GivenanoddnumberofcowsN(1<=N<10,000)andtheirmilkoutput(1..1,000,000),findthemedianamountofmilkgivensuchthatatleasthalfthecowsgivethesameamountofmilkormoreandatleasthalfgivethesameorless.输入N个数,输出升序排列后中间那个数.I...

    02014年10月27日2,970模拟
  • 「NOIP模拟赛」锻炼计划

    「NOIP模拟赛」锻炼计划

    身体是革命的本钱,OIers不要因为紧张的学习和整天在电脑前而忽视了健康问题。小x设计了自己的锻炼计划,但他不知道这个计划是否可行,换句话说如果计划不当可能会让他的体力超支,所以小x请你帮助他。一天有1440分钟,所以小x列出的是这一整天第1至第1440分钟的计划。小x的体力用一个整数来表示,他会按照计划表进行锻炼,同时,每分钟小x的体力会自动增加1。如果某一分钟末小x的体力小于等于零,那么可怜的小x就累死了……&nbs...

    02014年10月6日2,258模拟
  • 「CF475A」Bayan Bus

    「CF475A」Bayan Bus

    ThefinalroundofBayanProgrammingContestwillbeheldinTehran,andtheparticipantswillbecarriedaroundwithayellowbus.Thebushas34passengerseats:4seatsinthelastrowand3seatsinremainingrows.Theeventcoordinatorhasalistofkparticipantswhoshouldbepickedupattheairport.Whenaparticipantgetsonthebus,hewillsitinthelastrowwithanemptyseat.Ifthereismorethanoneemptyseatinthatrow,hewilltaketheleftmostone.Inordert...

    02014年10月6日3,021模拟
  • 「CF471A」MUH and Sticks

    「CF471A」MUH and Sticks

    TwopolarbearsMenshykovandUsladafromtheSt.PetersburgzooandelephantHoracefromtheKievzoogotsixstickstoplaywithandassesstheanimals'creativity.Menshykov,UsladaandHoracedecidedtomakeeitheranelephantorabearfromthosesticks.Theycanmakeananimalfromsticksinthefollowingway:Foursticksrepresenttheanimal'slegs,thesesticksshouldhavethesamelength.Tworemainingsticksrepresenttheanimal'sheadandbody.Theb...

    02014年9月27日3,263模拟
  • 「codechefGRID」Sherlock and the Grid

    「codechefGRID」Sherlock and the Grid

    这个纯模拟吧[crayon-662fbf6715674033949688/] 

    02014年9月24日2,484模拟
  • 「CFgym100486C」Text Encryption

    「CFgym100486C」Text Encryption

    Tokeepprivacyofmessagesandpreventthealiensfromreadingthem,wemayusevariousencryptionalgorithms.Thesealgorithmsencodeamessageintotheso-calledciphertextthatisdifficult(orimpossible)todecodeforanyoneelsethantheintendedrecipient.Transpositionciphersareatypeofencryptionthatdonotchangethelettersofthemessagebutonlychangetheirorder(“shuffle”theletters).Ofcourse,theshufflingmustbereversibletoallowlate...

    12014年9月20日2,706模拟
  • 「CF467A」George and Accommodation

    「CF467A」George and Accommodation

    GeorgehasrecentlyenteredtheBSUCP(BerlandStateUniversityforCoolProgrammers).GeorgehasafriendAlexwhohasalsoenteredtheuniversity.Nowtheyaremovingintoadormitory.GeorgeandAlexwanttoliveinthesameroom.Thedormitoryhasnroomsintotal.Atthemomentthei-throomhaspipeoplelivinginitandtheroomcanaccommodateqipeopleintotal(pi ≤ qi).YourtaskistocounthowmanyroomshasfreeplaceforbothGeorgeandAlex...

    02014年9月19日2,388模拟
  • 「BZOJ3715」[PA2014] Lustra

    「BZOJ3715」[PA2014] Lustra

    DescriptionByteasar公司专门外包生产带有镜子的衣柜。刚刚举行的招标会上,有n个工厂参加竞标。所有镜子都是长方形的,每个工厂能够制造的镜子都有其各自的最大、最小宽度和最大、最小高度。镜子不可以旋转。如果存在某家工厂满足这样的条件:其他所有工厂能够制造的镜子,它都能够制造。那么这家工厂显然会胜出。若不存在,评判工作将会遇到麻烦。Byteasar想知道,是否存在某家工厂符合上述条件。Input第一行有一个整数t(1&l...

    02014年9月13日3,058模拟
  • 「CF466A」Cheap Travel

    「CF466A」Cheap Travel

    Annhasrecentlystartedcommutingbysubway.Weknowthataoneridesubwayticketcostsarubles.Besides,Annfoundoutthatshecanbuyaspecialticketformrides(shecanbuyitseveraltimes).Itcostsbrubles.Anndidthemath;shewillneedtousesubwayntimes.HelpAnn,tellherwhatistheminimumsumofmoneyshewillhavetospendtomakenrides?InputThesinglelinecontainsfourspace-separatedintegersn,m,a,b(1 ≤ n, m, a, b ≤ 1000)—the...

    02014年9月13日2,512模拟
6 / 18 « 上一页 1 ...4 5 6 7 8 ...18 下一页 »