私信TA
用户名:uq_20407637522
访问量:1510
签 名:
量变引起质变。
自我简介:
作者: 渐入佳境. 发表时间:2021-03-19 18:56:53 浏览:161 | 评论:0
解题思路:注意事项:参考代码:
#include int gcd(int a,int b){ if(b==0) return a; else return gcd(b,a%b); } int lcm(int a,int b){ return a*b/gcd(a,b); } int main() { int a,b; scanf("%d %d", &a, &b); printf("%d %d",gcd(a,b),lcm(a,b)); return 0; }
0.0分
2 人评分
看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:
编程语言转换
万能编程问答
代码解释器
代码纠错
SQL生成与解释