05 2014 档案

摘要:#include #include #define N 100int gcd(int x,int y){ int t; if(x<y) { t=x; x=y; y=t; } return (y==0)?x:gcd(y,x%y);... 阅读全文
posted @ 2014-05-05 17:28 beyonder 阅读(233) 评论(0) 推荐(0)
摘要:自己写的代码考虑未周全,引入了额外的空间复杂度://求数组的子数组之和的最大值#include #define N 12using namespace std;int main(){ //int a[]={-5,2,3,-3,-2,3,1,-5}; //int a[]={-5,2,0,3... 阅读全文
posted @ 2014-05-01 23:04 beyonder 阅读(178) 评论(0) 推荐(0)