最小公倍数
来源:互联网 发布:清理软件残留 编辑:程序博客网 时间:2024/06/05 14:26
#include<cstdio>#include<cstdlib>#include<cstring>#include<iostream>using namespace std;int gcd(int x,int y){return y==0?x:gcd(y,x%y);}int main(){int i,j,k,m,n;scanf("%d%d",&m,&n);printf("%d",m*n/gcd(m,n));return 0;}
0 0
- 最小公倍数
- 最小公倍数
- 最小公倍数
- 最小公倍数
- 最小公倍数
- 最小公倍数
- 最小公倍数
- 最小公倍数
- 最小公倍数
- 最小公倍数
- 最小公倍数
- 最小公倍数
- 最小公倍数
- 最小公倍数
- 最小公倍数
- 最小公倍数
- 最小公倍数
- 最小公倍数
- Shell echo命令
- OpenCV模块以及功能简介
- 【vjios1488】【分组背包+dp优化】路灯改建计划
- Cucumber使用进阶
- 面向对象程序设计上机练习四(变量引用)
- 最小公倍数
- 第七周项目1-点类-友元函数
- Eclipse项目代码上传到GitHub
- go后台和web编程
- MySQL基本操作示例
- 手动打包.a静态库
- ADT在eclipse中重装时的问题--Cannot complete the install because of a conflicting dependency
- 学习《Python基础教程(第二版)》笔记10--抽象3(练习)
- Spring 数据库处理Clob/Blob大对象