2012年7月26日
摘要: 还是水题,不过我承认代码写的很烂……下面贴出代码,以作纪念。View Code 1 /*{ 2 ID:jzy3209981 3 PROG:concom 4 LANG:C++ 5 }*/ 6 #include<stdio.h> 7 #include<iostream> 8 #include<string.h> 9 #include<math.h>10 using namespace std;11 int control[101][101];12 int state[101][101];13 int sum[101];14 int main()15 阅读全文
posted @ 2012-07-26 23:01 醉春雨 阅读(135) 评论(0) 推荐(0)
摘要: 题目蛮简单,就是写起来蛮麻烦,可能有更好的写法。下面贴出代码,以作纪念。View Code 1 /*{ 2 ID:jzy3209981 3 PROG:zerosum 4 LANG:C++ 5 }*/ 6 #include<stdio.h> 7 #include<iostream> 8 #include<string.h> 9 #include<math.h>10 using namespace std;11 12 char formula[20];13 14 bool caculate(int n)15 {16 int result=0,i,nu 阅读全文
posted @ 2012-07-26 10:26 醉春雨 阅读(137) 评论(0) 推荐(0)