01 2022 档案
摘要:不止文本,文件比较也可进行,功能多样,是码农好帮手
阅读全文
摘要: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
阅读全文
摘要:code #include<iostream> using namespace std; int main(){ ios::sync_with_stdio(false); int a,b; cin>>a>>b; cout<<a+b; return 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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:#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
阅读全文
摘要: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
阅读全文
摘要:#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,
阅读全文
摘要:#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
阅读全文
摘要:tip inline code #include<iostream> #include<algorithm> #include<cstring> using namespace std; int max(int a, int b) { if (a > b) { return a; } else {
阅读全文
摘要: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
阅读全文
摘要:trouble 删除输入法后切换仍存在已删除输入法,尝试过删除注册表后更新仍出现,现在解决方案尝试: win10输入法软件接管
阅读全文
摘要: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
阅读全文
摘要:#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,
阅读全文
摘要:#include<cstdio> #include<cstring> #include<string> #include<cmath> #include<algorithm> #include<iostream> using namespace std; int len = 0; char s[30
阅读全文
摘要:#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
阅读全文
摘要:关于C++中ios::sync_with_stdio(false); cin,cout之所以效率低,是因为先把要输出的东西存入缓冲区,再输出,导致效率降低,而这段语句可以来打消iostream的输入 输出缓存,可以节省许多时间,使效率与scanf与printf相差无几 #include<bits/s
阅读全文
摘要:#include<cstdio> #include<iostream> #include<algorithm> #include<cstring> using namespace std; void beford(string in, string aft) { if (in.size() > 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+
阅读全文
摘要:#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
阅读全文
摘要: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
阅读全文
摘要:reference #include<iostream> #include<cstring> using namespace std; /*使得将巧克力按照边长maxX进行切分 ,切分成的份数要大于等于K, 而如果按照maxX+1进行切割 ,将不再能够切出K块。 如果从1-100000逐个查找,那么
阅读全文
摘要:#include <iostream> #include <cstring> #include <algorithm> using namespace std; int res(int num){ if(num == 1){ return 1; } if(num == 2){ return 2; }
阅读全文