摘要: 纠结了几次INT64和longlong,CE了几次。。。 1 /* 2 ID: cuizhe 3 LANG: C++ 4 TASK: subset 5 */ 6 #include <cstdio> 7 #include <cstring> 8 #include <cmath> 9 #include <algorithm>10 using namespace std;11 long long dp[50][1001];12 int main()13 {14 int i,j,n,sum;15 freopen("subset.in" 阅读全文
posted @ 2012-11-08 10:44 Naix_x 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 罗马数字问题。记得以前做过很类似的,那个数据范围小,100以内,我把前100个数全写出来存数组了。。。这个3500,乱搞就行。。 1 /* 2 ID: cuizhe 3 LANG: C++ 4 TASK: preface 5 */ 6 #include <cstdio> 7 #include <cstring> 8 #include <cmath> 9 #include <algorithm>10 using namespace std;11 int p[3600][10];12 char str[10] = "IVXLCDM" 阅读全文
posted @ 2012-11-08 10:15 Naix_x 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 各种位运算,题意好纠结啊,在翻译帮助下,居然1Y了。。。 1 /* 2 ID: cuizhe 3 LANG: C++ 4 TASK: hamming 5 */ 6 #include <cstdio> 7 #include <cstring> 8 #include <cmath> 9 #include <algorithm>10 using namespace std;11 int que[100];12 int main()13 {14 int n,b,d,i,j,k,top,t,num;15 freopen("hamming.in&q 阅读全文
posted @ 2012-11-08 09:25 Naix_x 阅读(166) 评论(0) 推荐(0) 编辑