随笔分类 - ACM_陈涛涛
摘要:B -Moving TablesTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionThe famous ACM (Advanced Computer Maker) Comp...
阅读全文
摘要:C -Wooden SticksTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionThere is a pile of n wooden sticks. The lengt...
阅读全文
摘要:I -Doing Homework againTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionIgnatius has just come back school fro...
阅读全文
摘要:无题:要求输出最大公共字串长度和执行次数。将来还要输出,,,最大字串。输入案例:7 6ABCBDABBDCABA4 4ABCDABCD4 5ABCDACBCC输出答案:443代码写的很笨,先记着怎么写等用到时在仔细研究吧 。基本思路就是这个表:y xABCBDAB00000000B00111111D...
阅读全文
摘要:P -ShopaholicTime Limit:2000MSMemory Limit:65536KB64bit IO Format:%lld & %lluSubmitStatusDescriptionLindsay is a shopaholic. Whenever there is a disco...
阅读全文
摘要:J -今年暑假不ACTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescription“今年暑假不AC?”“是的。”“那你干什么呢?”“看世界杯呀,笨蛋!”“@#$%^&*%...”确实如...
阅读全文
摘要:A -FatMouse' TradeTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionFatMouse prepared M pounds of cat food, rea...
阅读全文
摘要:C++中*max_element(v.begin,v.end)找最大元素*min_element(v.begin,v.end)找最小元素。数组:#include#includeusing namespace std;int main(){ int a[]={0,1,2,3,4,5,6,7,8,...
阅读全文
摘要:1199: 房间安排Time Limit:1 SecMemory Limit:128 MBSubmit:1Solved:1[Submit][Status][Web Board]Description2010年上海世界博览会(Expo2010),是第41届世界博览会。于2010年5月1日至10月31日...
阅读全文
摘要:括号配对问题时间限制:3000 ms | 内存限制:65535 KB难度:3描述 现在,有一行括号序列,请你检查这行括号是否配对。输入第一行输入一个数N(0#include#include#include#includeusing namespace std;char a[10001];int ma...
阅读全文
摘要:喷水装置(一)时间限制:3000 ms | 内存限制:65535 KB难度:3描述 现有一块草坪,长为20米,宽为2米,要在横中心线上放置半径为Ri的喷水装置,每个喷水装置的效果都会让以它为中心的半径为实数Ri(0#include#includeusing namespace std;bool cm...
阅读全文
摘要:非洲小孩时间限制:1000 ms | 内存限制:65535 KB难度:2描述 家住非洲的小孩,都很黑。为什么呢?第一,他们地处热带,太阳辐射严重。第二,他们不经常洗澡。(常年缺水,怎么洗澡。)现在,在一个非洲部落里,他们只有一个地方洗澡,并且,洗澡时间很短,瞬间有木有!!(这也是没有的办法,缺水啊!...
阅读全文
摘要:寻找最大数(三)时间限制:1000 ms | 内存限制:65535 KB难度:2描述 给出一个整数N,每次可以移动2个相邻数位上的数字,最多移动K次,得到一个新的整数。求这个新的整数的最大值是多少。输入多组测试数据。每组测试数据占一行,每行有两个数N和K (1 ≤ N≤ 10^18; 0 ≤ K ≤...
阅读全文
摘要:+-字符串时间限制:1000 ms | 内存限制:65535 KB难度:1描述 Shiva得到了两个只有加号和减号的字符串,字串长度相同。Shiva一次可以把一个加号和它相邻的减号交换。他想知道最少需要多少次操作才能把第一个字符串变换成第二个字符串。你现在要去帮助他完成那个这个问题。输入多组测试数据...
阅读全文
摘要:1198: 数轴Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 3 Solved: 1[Submit][Status][Web Board]DescriptionJohn想抓到一头牛, John在一个数轴的一个位子X,牛在数轴的另一个位子Y。但John...
阅读全文
摘要:Problem G: If We Were a Child AgainTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 18 Solved: 14[Submit][Status][Web Board]DescriptionThe ProblemThe fir...
阅读全文
摘要:Problem A: 走迷宫问题Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 9 Solved: 3[Submit][Status][Web Board]Description给定一个二维数组 int map[5][5] = {0 , 1 , 0 , 0...
阅读全文
摘要:Problem D: Integer InquiryTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 41 Solved: 12[Submit][Status][Web Board]DescriptionOne of the first users of B...
阅读全文
摘要:Problem E: ProductTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 18 Solved: 14[Submit][Status][Web Board]DescriptionThe problem is to multiply two inte...
阅读全文
摘要:Problem E: Automatic EditingTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 3 Solved: 3[Submit][Status][Web Board]DescriptionText-processing tools like ...
阅读全文

浙公网安备 33010602011771号