随笔分类 -  ACM----模拟题

摘要:/* Name: NYOJ--202--红黑树 Date: 14/04/17 18:31 Description: 用结构体模拟二叉树的节点,因为左旋右旋不影响中序遍历,所以直接中序遍历 */ #include #include using namespace std; struct node{ int left,right; }Tree[15]; voi... 阅读全文
posted @ 2017-04-14 18:50 朤尧 阅读(286) 评论(0) 推荐(0)
摘要:思路: 用数组模拟走廊,搬桌子时将那一段value+1,输出数组最大值即可 阅读全文
posted @ 2017-02-14 11:00 朤尧 阅读(225) 评论(0) 推荐(0)
摘要:#include #include #include struct news{ int lev; int num; bool operator lev==a.lev?this->num>a.num:this->lev>n) { int cut=0; priority_queue q[4]; for(int i... 阅读全文
posted @ 2017-02-09 16:00 朤尧 阅读(284) 评论(0) 推荐(0)
摘要:题目链接 阅读全文
posted @ 2017-02-09 15:54 朤尧 阅读(218) 评论(0) 推荐(0)