![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
搜索
文章平均质量分 66
haoyunsheng_1201
这个作者很懒,什么都没留下…
展开
-
P1076数字三角形2
FromAdmin☆数字三角形2 描述 Description 数字三角形<br />要求走到最后mod 100最大 输入格式 Input Format 第1行n,表示n行 <=25<br />第2到n+1行为每个的权值 输出格式 Output Format mod 100最大值 样例输入 Sample Input 2199 98 样例输出 Sample Output 99 时间限制 Time L原创 2010-10-20 17:15:00 · 577 阅读 · 0 评论 -
2237: Hero Ranklist
2237: Hero RanklistResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE5s8192K252115StandardArthur想要将手下的战士按照能力进行排名, 选择出得力的助手进行冒险. 他收集了很多人之间比武的胜负情况,如A战胜了B,原创 2010-10-29 21:19:00 · 432 阅读 · 0 评论 -
宽度优先搜索1185: Knight Moves
ResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE1s8192K622290StandardA friend of you is doing research on the Traveling Knight Problem (TKP)where you are to find原创 2010-11-26 11:48:00 · 433 阅读 · 0 评论 -
回溯法 百炼2749:分解因数
2749:分解因数ViewSubmitStatisticsClarifyTime Limit: 1000ms Memory Limit: 65536kBDescription给出一个正整数a,要求分解成若干个正整数的乘积,即a = a1 * a2 * a3 * ... * an,并且1 Input第1行是测试数原创 2012-05-07 13:16:20 · 2786 阅读 · 0 评论 -
2815:城堡问题 百炼 求连通子图个数
#include#includeint map[60][60];int vis[60][60];int col[4]={0,-1,0,1};int row[4]={-1,0,1,0};//西,北,东,南int val[4]={1,2,4,8};int m,n;int dfs(int p){ int a=p/n,b=p%n; //printf("%原创 2012-09-16 09:48:41 · 1013 阅读 · 0 评论 -
3752:走迷宫 bfs dfs
//bfs#include#includechar map[41][41];int vis[41][41];int col[4]={0,-1,0,1};int row[4]={-1,0,1,0};void bfs(int c,int r){ int queue[100000]; memset(queue,0,sizeof(queue));原创 2012-09-16 11:00:32 · 600 阅读 · 0 评论