博客园 首页 私信博主 显示目录 隐藏目录 管理
摘要: HDU1372:Knight Moves(BFS)Time Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluDescriptionA friend of you is doing research ... 阅读全文
posted @ 2015-07-22 20:56 hfcnal 阅读(1479) 评论(0) 推荐(1) 编辑
摘要: DFSTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。你的任... 阅读全文
posted @ 2015-07-22 17:24 hfcnal 阅读(745) 评论(0) 推荐(1) 编辑
摘要: HDU 1312:Red and BlackTime Limit:1000MSMemory Limit:30000KB64bit IO Format:%I64d & %I64uDescriptionThere is a rectangular room, covered with sq... 阅读全文
posted @ 2015-07-22 11:37 hfcnal 阅读(560) 评论(1) 推荐(1) 编辑
摘要: UVA 572 DFS(floodfill) 用DFS求连通块Time Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uDescriptionDue to recent rains, water has pooled in ... 阅读全文
posted @ 2015-07-22 08:26 hfcnal 阅读(1081) 评论(0) 推荐(1) 编辑