随笔分类 -  搜索

摘要:#include#include#include#include#includeusing namespace std;char mat[10][10];int vis[10][10];int ok,dx,dy;int m,n,d;int op[4][2]={0,1,1,0,0,-1,-1,0};b... 阅读全文
posted @ 2014-12-23 18:57 sola94 阅读(130) 评论(0) 推荐(0)
摘要:Prime Ring ProblemTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 28391Accepted Submission(s): 126... 阅读全文
posted @ 2014-12-09 15:29 sola94 阅读(119) 评论(0) 推荐(0)
摘要:A -Don't Get RookedTime Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 1315DescriptionIn chess, the rook is a pi... 阅读全文
posted @ 2014-11-04 17:22 sola94 阅读(207) 评论(0) 推荐(0)
摘要:Fire GameTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionFat brother and Maze are playing a kind of special (hentai) game... 阅读全文
posted @ 2014-08-24 10:53 sola94 阅读(225) 评论(0) 推荐(1)
摘要:http://poj.org/problem?id=3984思路: 最基础的bfs 记录父节点坐标 并在最后打印路径stl queue:#include#include#include#include#include#include#include#define mem(a,b) mems... 阅读全文
posted @ 2014-08-16 00:48 sola94 阅读(238) 评论(0) 推荐(0)
摘要:DescriptionBackgroundOur knight lives on a chessboard that has a smaller area than a regular 8 * 8 board,but it is still rectangular.Can you help this... 阅读全文
posted @ 2014-08-14 01:29 sola94 阅读(165) 评论(0) 推荐(0)