摘要: luogu3377 #include<cstdio> #include<cstring> #include<cmath> #include<algorithm> #include<ctime> #include<queue> #include<iostream> #include<stack> #i 阅读全文
posted @ 2018-11-07 14:12 ChenThree 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 链表的头跟尾的删除与添加要特判 链表为空要特判 pool的pt位置与后面要对应 #include<cstdio> using namespace std; int readint(){ int ans=0,f=1; char c=getchar(); while(!(c>='0'&&c<='9')) 阅读全文
posted @ 2018-10-11 00:48 ChenThree 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 4 两个排序数组的中位数 1 class Solution { 2 public: 3 double findMedianSortedArrays(vector<int>& nums1, vector<int>& nums2) { 4 int n=nums1.size(),m=nums2.size( 阅读全文
posted @ 2018-09-18 11:50 ChenThree 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 很有趣的一道题 只有奇圈意味着只有单圈 然后dfs求出单圈 p[x]=y表示[x,y]ok 然后二分求解 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #include<ctime> 5 #include<iostream> 6 阅读全文
posted @ 2017-12-22 15:03 ChenThree 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #include<ctime> 5 #include<iostream> 6 #include<algorithm> 7 #include<queue> 8 #include<sta 阅读全文
posted @ 2017-12-21 00:32 ChenThree 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #include<ctime> 5 #include<iostream> 6 #include<algorithm> 7 #include<queue> 8 #include<set 阅读全文
posted @ 2017-12-17 14:16 ChenThree 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #include<ctime> 5 #include<iostream> 6 #include<algorithm> 7 #include<queue> 8 #include<set 阅读全文
posted @ 2017-12-17 11:44 ChenThree 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 挺有意思的hhh有个坑 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #include<ctime> 5 #include<iostream> 6 #include<algorithm> 7 #include<queue> 8 阅读全文
posted @ 2017-12-16 00:28 ChenThree 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 待补 阅读全文
posted @ 2017-12-05 12:21 ChenThree 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 这么sb吗..floyd即可 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #include<ctime> 5 #include<iostream> 6 #include<algorithm> 7 #include<queue> 阅读全文
posted @ 2017-12-04 18:26 ChenThree 阅读(185) 评论(1) 推荐(0) 编辑
摘要: WF最水的题 没有之一 二分答案即可 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #include<ctime> 5 #include<iostream> 6 #include<algorithm> 7 #include<qu 阅读全文
posted @ 2017-12-04 17:56 ChenThree 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 膜VFK 阅读全文
posted @ 2017-11-29 09:27 ChenThree 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #include<ctime> 5 #include<iostream> 6 #include<algorithm> 7 #include<queue> 8 #include<set 阅读全文
posted @ 2017-11-29 00:25 ChenThree 阅读(149) 评论(0) 推荐(0) 编辑
摘要: T1 SB题 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #include<ctime> 5 #include<iostream> 6 #include<algorithm> 7 #include<queue> 8 #incl 阅读全文
posted @ 2017-11-27 18:21 ChenThree 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<cstring> 3 #include<cmath> 4 #include<ctime> 5 #include<iostream> 6 #include<algorithm> 7 #include<queue> 8 #include<set 阅读全文
posted @ 2017-11-24 23:53 ChenThree 阅读(193) 评论(0) 推荐(0) 编辑