欢迎来到天天文库
浏览记录
ID:19880846
大小:63.50 KB
页数:16页
时间:2018-10-07
《2013安徽省省赛题》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、2013安徽省省赛题2013.05.302013安徽省省赛裁判出题组beconsistentwithinthesamedisk.Alternateunifiedcorerequirementsplacedontheterminalstripterminals,onlineidentityandensurethecoppercoreisnotexposed.6.4.6enclosurewithinthesametothecablecoreprovidesbindingintoacircle,harnesstiespacingisgeneral
2、ly100mm;branchofficesshallbebindingonbothends,eachcore安徽省2013年“京胜杯”大学生程序设计竞赛beconsistentwithinthesamedisk.Alternateunifiedcorerequirementsplacedontheterminalstripterminals,onlineidentityandensurethecoppercoreisnotexposed.6.4.6enclosurewithinthesametothecablecoreprovidesbin
3、dingintoacircle,harnesstiespacingisgenerally100mm;branchofficesshallbebindingonbothends,eachcoreA.单词反转Timelimit1sProblem Description给你一些英文句子,请将这些句子中的每个英语单词反转,然后再将其输出.这里听说的英语单词仅由大小写英文字母组成.Input多个英文句子,每句占一行,且每句不超过80个字符.Output按题目要求输出Sample InputHello world!Happy programming,
4、happy life!Sample OutputolleH dlrow!yppaH gnimmargorp,yppah efil!beconsistentwithinthesamedisk.Alternateunifiedcorerequirementsplacedontheterminalstripterminals,onlineidentityandensurethecoppercoreisnotexposed.6.4.6enclosurewithinthesametothecablecoreprovidesbindingintoaci
5、rcle,harnesstiespacingisgenerally100mm;branchofficesshallbebindingonbothends,eachcoreB.等差数列 time limit 1sProblem Description有一个长度为N(1<=N<=100000)的整数序列s[],在这个序列上定义了两种操作:Add L R A D:对于每一个i(L<=i<=R),S[i]+=A+(i-L)*D,也就是在子序列S[L,R]加上首项A,公差为D的等差数列:Query L R:询问[L,R]区
6、间内最长的等差数列的长度,亦即寻找最大的len,使S[i],S[i+1],...,S[i+len-1](L<=i<=R,L<=i+len-1<=R)构成等差数列。Input多组测试数据。每组测试数据的第一行为两个正整数N(1<=N<=100000)和M(1<=M<=10000),分别代表序列的长度和操作个数,接下来有M行,每行代表一个操作,操作具体含义见题目描述。其中,0<=L<=R<N,0<=A<=100000,0<=D<=10.Output对于每组测试数据,首先输出组号。然后对于每次询问,输出所求结果。详见样例输出。Sample Inp
7、ut5 3Add 1 4 1 1Query 0 4Query 2 310 4Add 0 9 1 1Add 4 9 1 1Query 0 9Query 5 5Sample OutputCase#1:52Case#2:7beconsistentwithinthesamedisk.Alternateunifiedcorerequirementsplacedontheterminalstripterminals,onlineidentityandensurethecoppercoreisnotexposed.6.4.6enclosurewithin
8、thesametothecablecoreprovidesbindingintoacircle,harnesstiespacingisgenerally100mm;brancho
此文档下载收益归作者所有