摘要: 题意:给定n,m,c 和 k个数求最小的一个数(这个数是c进制,且是n的倍数)一共5000个状态,bfs不会写DFS啊。。。。不过看了别人的BFS后还是有种恍然大悟的感觉。。。。View Code 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string> 4 #include<algorithm> 5 #include<math.h> 6 #include<iostream> 7 #include<queue> 8 using namespace s 阅读全文
posted @ 2013-02-27 21:36 xxx0624 阅读(476) 评论(0) 推荐(0) 编辑
摘要: 水题~~字符串的处理+排序View Code 1 #include<stdio.h> 2 #include<string.h> 3 #include<algorithm> 4 using namespace std; 5 const int maxn = 5005; 6 struct node{ 7 char name[ 105 ]; 8 int win,lost,diff,score; 9 }team[ maxn ];10 int cnt;11 void init( int n ){12 for( int i=0;i<=n;i++ ){13 team 阅读全文
posted @ 2013-02-27 19:35 xxx0624 阅读(278) 评论(0) 推荐(0) 编辑