Fork me on GitHub
摘要: 题目: 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, }; 它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜 阅读全文
posted @ 2020-06-18 12:19 shiyu-coder 阅读(181) 评论(0) 推荐(0)
摘要: 题目: Joe works in a maze. Unfortunately, portions of the maze have caught on fire, and the owner of the maze neglected to create a fire escape plan. He 阅读全文
posted @ 2020-06-18 11:54 shiyu-coder 阅读(95) 评论(0) 推荐(0)
摘要: 题目: Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each grid of this board is 阅读全文
posted @ 2020-06-18 08:52 shiyu-coder 阅读(226) 评论(0) 推荐(0)
摘要: 题目: Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to fi 阅读全文
posted @ 2020-06-17 21:21 shiyu-coder 阅读(98) 评论(0) 推荐(0)
摘要: KMP算法就是传说中的“看毛片”算法,学习这个算法的时候就像看毛片一样,头脑发热,气血膨胀,一度有种想退出计算机行业的冲动;学懂以后就像连着看了一天的毛片,心力憔悴,萎靡不振。 先是简单的视频讲解:https://www.bilibili.com/video/BV1jb411V78H?from=se 阅读全文
posted @ 2020-06-17 15:53 shiyu-coder 阅读(180) 评论(0) 推荐(0)
摘要: 题目: You are given two pots, having the volume of A and B liters respectively. The following operations can be performed: FILL(i) fill the pot i (1 ≤ i 阅读全文
posted @ 2020-06-16 21:39 shiyu-coder 阅读(108) 评论(0) 推荐(0)
摘要: 题目: A common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks of pok 阅读全文
posted @ 2020-06-16 16:41 shiyu-coder 阅读(80) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/dy416524/article/details/86431057 阅读全文
posted @ 2020-06-16 16:16 shiyu-coder 阅读(89) 评论(0) 推荐(0)
摘要: 题目: Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. Y 阅读全文
posted @ 2020-06-16 11:37 shiyu-coder 阅读(140) 评论(0) 推荐(0)
摘要: 题目: Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which 阅读全文
posted @ 2020-06-15 18:23 shiyu-coder 阅读(130) 评论(0) 推荐(0)