题目连接 http://acm.hdu.edu.cn/showproblem.php?pid=2579 Dating with girls(2) Description If you have solved the problem Dating with girls(1).I think you can solve this problem too.This problem is also about dating with girls. Now you are in a maze and th…
Dating with girls(2) Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1812 Accepted Submission(s): 505 Problem Description If you have solved the problem Dating with girls(1).I think you can s…
#include<stdio.h> #include<queue> #include<iostream> #include<string.h> #include<algorithm> #define N 200 using namespace std; struct node { int x,y,time; }start,end,cur,next; char map[N][N]; int visit[N][N][N],k,r,c; int dis…
King's Game 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5643 Description In order to remember history, King plans to play losephus problem in the parade gap.He calls n(1≤n≤5000) soldiers, counterclockwise in a circle, in label 1,2,3...n. The firs…
Quicksum Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3516 Accepted Submission(s): 2579 Problem Description A checksum is an algorithm that scans a packet of data and returns a single number. T…
Dating with girls(1) Time Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2127 Accepted Submission(s): 730 Problem Description Everyone in the HDU knows that the number of boys is larger than the…
Dating with girls(1) Time Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3869 Accepted Submission(s): 1196 Problem Description Everyone in the HDU knows that the number of boys is larger than the…