上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页
摘要: link #include <bits/stdc++.h> # define LL long long using namespace std; int gettime(int hh, int mm, int ss){ return hh*3600+mm*60+ss; } struct Cartim 阅读全文
posted @ 2020-04-07 22:40 feibilun 阅读(140) 评论(0) 推荐(0) 编辑
摘要: link Solution1: 自定义变量,union all # Write your MySQL query statement below select username,activity,startDate,endDate from ( select t1.*, @rk:=if(@name= 阅读全文
posted @ 2020-04-06 22:26 feibilun 阅读(277) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> # define LL long long using namespace std; int main(){ int N; cin>>N; int mx=0; int idx=0; for(int i=2;i<=sqrt(N);i++){ int t 阅读全文
posted @ 2020-04-06 13:57 feibilun 阅读(113) 评论(0) 推荐(0) 编辑
摘要: link 解法: 找离圆心最近的矩形上的点,比较此点到圆心的距离和半径。 class Solution { public: bool checkOverlap(int radius, int x_center, int y_center, int x1, int y1, int x2, int y2 阅读全文
posted @ 2020-04-05 09:35 feibilun 阅读(273) 评论(0) 推荐(0) 编辑
摘要: link Solution: follow1 / follow 2 means the established string follow along s1 / s2.At start, follow1=follow2=1.For instance, s1 = "leetcode", s2 = "l 阅读全文
posted @ 2020-03-29 20:08 feibilun 阅读(201) 评论(0) 推荐(0) 编辑
摘要: link 题解可参考:https://www.luogu.com.cn/blog/cicos/solution-p2613# int a,b; const int mod=19260817; int x,y; int getint(){ char c=getchar(); int res=0; wh 阅读全文
posted @ 2020-03-29 17:37 feibilun 阅读(143) 评论(0) 推荐(0) 编辑
摘要: link 题解可参考:https://www.luogu.com.cn/blog/cicos/solution-p1082# #include <bits/stdc++.h> # define LL long long using namespace std; LL a,b; LL x,y; voi 阅读全文
posted @ 2020-03-29 17:11 feibilun 阅读(109) 评论(0) 推荐(0) 编辑
摘要: link int M,N; int arr[1001]; void dfs(vector<int>& post, int idx){ if(idx>N) return ; dfs(post,idx*2); dfs(post,idx*2+1); post.push_back(arr[idx]); } 阅读全文
posted @ 2020-03-24 19:35 feibilun 阅读(120) 评论(0) 推荐(0) 编辑
摘要: link int N,M; int ind[1001]; int le[1001]; int main(){ cin>>N>>M; vector<vector<int>> adj(N+1); for(int i=0;i<M;i++){ int u,v; cin>>u>>v; ind[v]++; ad 阅读全文
posted @ 2020-03-24 17:18 feibilun 阅读(93) 评论(0) 推荐(0) 编辑
摘要: link 搞不懂为什么找不到要+1,难道是为了区别找的到? int N; int Msize, M; bool isprime(int n){ if(n<=1) return false; for(int i=2;i*i<=n;i++){ if(n%i==0) return false; } ret 阅读全文
posted @ 2020-03-24 15:32 feibilun 阅读(142) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页