随笔分类 - 搜索
摘要:#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...
阅读全文
摘要:Prime Ring ProblemTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 28391Accepted Submission(s): 126...
阅读全文
摘要:A -Don't Get RookedTime Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 1315DescriptionIn chess, the rook is a pi...
阅读全文
摘要:Fire GameTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionFat brother and Maze are playing a kind of special (hentai) game...
阅读全文
摘要:http://poj.org/problem?id=3984思路: 最基础的bfs 记录父节点坐标 并在最后打印路径stl queue:#include#include#include#include#include#include#include#define mem(a,b) mems...
阅读全文
摘要: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...
阅读全文

浙公网安备 33010602011771号