01 2022 档案

摘要:不止文本,文件比较也可进行,功能多样,是码农好帮手 阅读全文
posted @ 2022-01-31 12:50 ggexs 阅读(25) 评论(0) 推荐(0) 编辑
摘要:code #include<iostream> #include<algorithm> using namespace std; const int N=1505; int s[N][N],a[N][N],b[N][N],c[N][N],d[N][N]; int ans,n,m,k; int mai 阅读全文
posted @ 2022-01-31 12:48 ggexs 阅读(32) 评论(0) 推荐(0) 编辑
摘要:code #include<iostream> using namespace std; int main(){ ios::sync_with_stdio(false); int a,b; cin>>a>>b; cout<<a+b; return 0; } 阅读全文
posted @ 2022-01-31 09:37 ggexs 阅读(24) 评论(0) 推荐(0) 编辑
摘要:ref ref code #include<iostream> #include<algorithm> using namespace std; const int N=10; int a[11]; int main(){ ios::sync_with_stdio(false); for(int i 阅读全文
posted @ 2022-01-30 15:04 ggexs 阅读(62) 评论(0) 推荐(0) 编辑
摘要:code #include<iostream> using namespace std; int n, m, time[10001], need[101], maxn; //num of tap,mumber of students int main() { ios::sync_with_stdio 阅读全文
posted @ 2022-01-30 11:55 ggexs 阅读(60) 评论(0) 推荐(0) 编辑
摘要:code #include<algorithm> #include<iostream> #include<cstdio> using namespace std; int gcd(int a,int b){ return b==0?a:gcd(b,a%b); } int main(){ ios::s 阅读全文
posted @ 2022-01-29 13:26 ggexs 阅读(37) 评论(0) 推荐(0) 编辑
摘要:code #include<iostream> #include<algorithm> #include<cstring> using namespace std; int b[40][40]; int main(){ int n,m; cin>>n>>m; b[0][0]=1;//initiali 阅读全文
posted @ 2022-01-28 12:25 ggexs 阅读(22) 评论(0) 推荐(0) 编辑
摘要:#include<algorithm> #include<iostream> #include<cstring> using namespace std; bool cmp(int a,int b){ return a<b; } int main(){ int w,n,ifir,iend,tol=0 阅读全文
posted @ 2022-01-27 11:51 ggexs 阅读(48) 评论(0) 推荐(0) 编辑
摘要:code #include<iostream> using namespace std; int fun(int b,int d){//power int i=1,p=1; for(;i<=d;i++){ p*=b; } return p; } int main(){ int i,j,c,n,k,a 阅读全文
posted @ 2022-01-27 11:25 ggexs 阅读(47) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> using namespace std; const int N = 1000; int main() { int s, t, w, flag = 0; char a[N]; int j, i, num = 0; scanf("%d%d%d", &s, &t, 阅读全文
posted @ 2022-01-26 15:35 ggexs 阅读(56) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<algorithm> using namespace std; const int N = 25; int value[N],weigth[N]; int OPT(int total,int num){ if(total < value[num 阅读全文
posted @ 2022-01-26 12:11 ggexs 阅读(32) 评论(0) 推荐(0) 编辑
摘要:tip inline code #include<iostream> #include<algorithm> #include<cstring> using namespace std; int max(int a, int b) { if (a > b) { return a; } else { 阅读全文
posted @ 2022-01-25 11:11 ggexs 阅读(61) 评论(0) 推荐(0) 编辑
摘要:code #include<iostream> #include<algorithm> using namespace std; int L,M;//L->lenth,M->num of area int a[10005]; int main(){ scanf("%d%d",&L,&M); int 阅读全文
posted @ 2022-01-24 23:46 ggexs 阅读(50) 评论(0) 推荐(0) 编辑
摘要:trouble 删除输入法后切换仍存在已删除输入法,尝试过删除注册表后更新仍出现,现在解决方案尝试: win10输入法软件接管 阅读全文
posted @ 2022-01-24 23:26 ggexs 阅读(51) 评论(0) 推荐(0) 编辑
摘要:code #include<iostream> #include<algorithm> using namespace std; int a[10005]; int main(){ int m,n; cin>>n>>m;//n->et's finger num,m->the num need to 阅读全文
posted @ 2022-01-24 18:20 ggexs 阅读(67) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> #include<cstring> using namespace std; int n; string s; void dfs(int l,int r){ int mid = (l+r)/2; if(r!=l){ dfs(l, 阅读全文
posted @ 2022-01-24 14:06 ggexs 阅读(58) 评论(1) 推荐(1) 编辑
摘要:#include<cstdio> #include<cstring> #include<string> #include<cmath> #include<algorithm> #include<iostream> using namespace std; int len = 0; char s[30 阅读全文
posted @ 2022-01-23 12:53 ggexs 阅读(38) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include<algorithm> #include<cstring> using namespace std; double a,b,c,d; double f(double x){ return a*x*x*x+b*x*x+c*x+d; } void 阅读全文
posted @ 2022-01-23 10:51 ggexs 阅读(73) 评论(0) 推荐(0) 编辑
摘要:关于C++中ios::sync_with_stdio(false); cin,cout之所以效率低,是因为先把要输出的东西存入缓冲区,再输出,导致效率降低,而这段语句可以来打消iostream的输入 输出缓存,可以节省许多时间,使效率与scanf与printf相差无几 #include<bits/s 阅读全文
posted @ 2022-01-22 13:54 ggexs 阅读(85) 评论(0) 推荐(0) 编辑
摘要:#include<cstdio> #include<iostream> #include<algorithm> #include<cstring> using namespace std; void beford(string in, string aft) { if (in.size() > 0) 阅读全文
posted @ 2022-01-21 12:33 ggexs 阅读(69) 评论(0) 推荐(0) 编辑
摘要:#include <algorithm> #include <iostream> #include <cstdio> #include<cstring> using namespace std; int main(){ int n,a,b,c; cin>>n; int dp[n+5][n+5][n+ 阅读全文
posted @ 2022-01-21 11:47 ggexs 阅读(238) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <cstring> #include <algorithm> using namespace std; int d2b(int n,int b,char c[]){ int i=0,k; while(n){ k=n%b; n/=b; if(k 阅读全文
posted @ 2022-01-19 11:53 ggexs 阅读(95) 评论(0) 推荐(0) 编辑
摘要:reference #include<iostream> #include<cstring> using namespace std; typedef long long LL; const int N = 100005; int a[N]; int main() { int n,k,x; LL s 阅读全文
posted @ 2022-01-18 14:08 ggexs 阅读(55) 评论(0) 推荐(0) 编辑
摘要:reference #include<iostream> #include<cstring> using namespace std; /*使得将巧克力按照边长maxX进行切分 ,切分成的份数要大于等于K, 而如果按照maxX+1进行切割 ,将不再能够切出K块。 如果从1-100000逐个查找,那么 阅读全文
posted @ 2022-01-18 13:36 ggexs 阅读(198) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <cstring> #include <algorithm> using namespace std; int res(int num){ if(num == 1){ return 1; } if(num == 2){ return 2; } 阅读全文
posted @ 2022-01-18 12:22 ggexs 阅读(232) 评论(0) 推荐(0) 编辑
摘要:simplememory 阅读全文
posted @ 2022-01-18 11:59 ggexs 阅读(55) 评论(0) 推荐(0) 编辑

more_horiz
keyboard_arrow_up dark_mode palette
选择主题
点击右上角即可分享
微信分享提示