竞赛
考级
#include<bits/stdc++.h> using namespace std; int f(int a,int b){ if(b==0){ return a; } return f(b,a%b); } int main(){ long long n,m; cin>>n>>m; cout<<n*m/f(n,m); return 0; }
curry
https://apps.fuyeor.com/zh-cn/games/#Hanoi
永久逃离
进制转换2
o͇͇͇ด้้้蠬蠭饗鑙鑴ø¼³
点赞!!!!!!!!!!!!!!!!! 关注也可以
LLYY
进制转换1
计算阶乘
https://www.acgo.cn/application/1819320347874357248
前n项和
汉诺塔
1.有人用万能头吗??? 而且#incldue 和<bits/stdc++.h>中间要加空格 2.有人会在符号两边各加一个空格吗??? 3.有人代码不写return 0吗??? 4.有人区分单引号和双引号吗??? 只有一个字符的就括单引号 多个字符的就括双引号 5.有人会把int打成itn,把for打成fro吗???(打太快了) 感觉我被孤立了 但肯定有人爱坤
qi
Цю Чжэнькай
https://www.acgo.cn/application/1819990390294495232 缺人!!!
复仇者-普通人
前序遍历 #include<bits/stdc++.h> using namespace std; const int N=1e5+5; int a[N]; int n; //输出以root为根的二叉树先序遍历 void dfs(int root){ if(root>n) return ; cout<<a[root]<<' '; dfs(root2); dfs(root2+1); } int main(){ cin>>n; for(int i=1;i<=n;i++) cin>>a[i]; dfs(1); } 中序遍历 #include<bits/stdc++.h> using namespace std; const int N=1e5+5; int a[N]; int n; //输出以root为根的二叉树先序遍历 void dfs(int root){ if(root>n) return ; } int main(){ cin>>n; for(int i=1;i<=n;i++) cin>>a[i]; dfs(1); } 后序遍历 #include<bits/stdc++.h> using namespace std; const int N =1e5+5; int a[N]; int n; void postorder(int root){ if(root>n) return ; postorder(root2); postorder(root2+1); cout<<a[root]<<' '; } int main(){ }
c++dp是什么?
共21124条