摘要: 题目:http://codeforces.com/contest/245/problem/AView Code 1 int main() 2 { 3 int suma,sumb; 4 int tsuma,tsumb; 5 int cs; 6 int t,x,y; 7 int i,j; 8 while(scanf("%d",&cs) != EOF) 9 {10 suma = sumb = tsuma = tsumb = 0;11 for(i = 0; i < cs; i++)12 {13 ... 阅读全文
posted @ 2012-11-22 15:07 AC_Girl 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=1026给出起始点和目的点,问如何用最少的时间到达,并输出路径,如果一个点是个数字 t ,表示必须在这个点逗留 t 秒,View Code 1 const int N = 110; 2 char map[N][N]; 3 int vis[N][N]; 4 int n,m; 5 int sum; 6 int move[4][2] = {{1,0},{-1,0},{0,-1},{0,1}}; 7 struct node 8 { 9 int x,y;10 int tim;11 int ... 阅读全文
posted @ 2012-11-22 11:00 AC_Girl 阅读(131) 评论(0) 推荐(0) 编辑