摘要: 给定K个整数组成的序列{ N​1​​, N​2​​, ..., N​K​​},“连续子列”被定义为{ N​i​​, N​i+1​​, ..., N​j​​ },其中 1≤i≤j≤K。“最大子列和”则被定义为所有连续子列元素的和中最大者。例如给定序列{ -2, 11, -4, 13, -5, -2 } 阅读全文
posted @ 2018-10-13 17:09 KUMU_枯木 阅读(739) 评论(0) 推荐(0)
摘要: G-Solving Order As a pretty special competition, many volunteers are preparing for it with high enthusiasm. One thing they need to do is blowing the b 阅读全文
posted @ 2018-04-19 21:00 KUMU_枯木 阅读(241) 评论(0) 推荐(0)
摘要: 结构体的六种不同表达形式: 第一种,也就是最常用的。struct node{ int a;//结构体内可以定义整型,浮点型,字符型,字符串,当然,各种数组也可以定义。 char b; double c; };//这个分号一定不能漏。 第二种,struct node{ int a; char b; d 阅读全文
posted @ 2018-03-22 20:14 KUMU_枯木 阅读(128) 评论(0) 推荐(0)