核桃的数量
来源:互联网 发布:淘宝流量来源分析 编辑:程序博客网 时间:2024/04/25 12:25
#include<stdio.h>#include<algorithm>#include<queue>#include<string.h>#include<ctype.h>#include<set>#include<math.h>using namespace std;int gcd(int a, int b){if (b<a){int temp = a;a = b;b = temp;}while (b != 0){int temp = a%b;a = b;b = temp;}return a;}int main(){int a, b, c;scanf("%d%d%d", &a, &b, &c);int temp = a*b / gcd(a, b);int temp2 = temp*c / gcd(temp, c);printf("%d\n", temp2);}
0 0
- 核桃的数量
- 蓝桥杯 核桃的数量
- 蓝桥杯:核桃的数量
- 核桃的数量
- 核桃的数量
- 蓝桥杯:核桃的数量
- 33.核桃的数量
- 核桃的数量
- 核桃的数量
- 蓝桥杯 - 核桃的数量
- 核桃的数量
- NYOJ核桃的数量
- 蓝桥杯 核桃的数量
- 蓝桥杯:核桃的数量
- 核桃的数量
- 核桃的数量
- 核桃的数量
- 核桃的数量
- 两种方法判断平面内的点是否在多边形内
- Oracle Merge语句
- MVP
- 读写文件操作
- PHP填坑——流程控制
- 核桃的数量
- 数学——Kickstart 2017 practice Round #B
- leetcode315
- PHP填坑——函数
- Java关于子类对父类私有方法覆盖的问题
- PHP填坑——命名空间
- 作诗--莫队
- 【PAT】1087. All Roads Lead to Rome
- Linux 内核剖析