摘要: 1289大鱼吃小鱼 题目来源: Codility基准时间限制:1 秒 空间限制:131072 KB 分值: 5难度:1级算法题 收藏 关注 取消关注 有N条鱼每条鱼的位置及大小均不同,他们沿着X轴游动,有的向左,有的向右。游动的速度是一样的,两条鱼相遇大鱼会吃掉小鱼。从左到右给出每条鱼的大小和游... 阅读全文
posted @ 2015-07-18 21:21 __NaCl 阅读(147) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#include#define max 500using namespace std;typedef struct node{ char data; struct node *left ,*right;}binode,*... 阅读全文
posted @ 2015-07-05 17:22 __NaCl 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#include#define max 500using namespace std;typedef struct node{ char data; struct node *l... 阅读全文
posted @ 2015-07-05 17:22 __NaCl 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Wireless Network 并查集Crawling in process...Crawling failedTime Limit:10000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uS... 阅读全文
posted @ 2015-05-22 19:43 __NaCl 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Wireless Network 并查集Crawling in process...Crawling failedTime Limit:10000MSMemory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmitStatus Practice POJ... 阅读全文
posted @ 2015-05-22 19:42 __NaCl 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 最大矩形阵转载 2015-04-10 20:54:23 最大子矩阵Time Limit:10000MS Memory Limit:32768KB 64bit IO Format:%I64d& %I64uSubmit StatusDescription给你一个m×n的整数矩阵,在上面找一个x×y的... 阅读全文
posted @ 2015-05-13 21:23 __NaCl 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 最大矩形阵转载 2015-04-10 20:54:23 ... 阅读全文
posted @ 2015-05-13 21:23 __NaCl 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1594: FactorialsTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 207 Solved: 72[Submit][Status][Web Board]DescriptionThe factorial of an integer N, writt... 阅读全文
posted @ 2015-05-13 21:19 __NaCl 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 1594: FactorialsTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 207 Solved: 72[Submit][Status][Web Board]DescriptionThe factorial of an ... 阅读全文
posted @ 2015-05-13 21:19 __NaCl 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 题目描述给你一个n位数,每次操作可以选该数任意的相邻两位进行交换,如果最多可以操作k次,那么最终可以得到的最小的数是什么(n位且不能含前导零)?输入有多组测试数据,第一行为数据个数T(T#include#include#includeusing namespace std;int main(){ch... 阅读全文
posted @ 2015-05-13 20:55 __NaCl 阅读(174) 评论(0) 推荐(0) 编辑