当前位置:网站首页>Zzuli:1062 greatest common divisor
Zzuli:1062 greatest common divisor
2022-07-02 05:29:00 【Don't explode】
Title Description
Enter two not greater than 10 Of 9 A positive integer to the power , Output its greatest common divisor .
Input
Enter two positive integers m and n, Space between data .
Output
Output an integer , Express m and n Maximum common divisor of .
The sample input Copy
4 6
Sample output Copy
2
Tips
Please refer to Euclid's theorem and the method of getting along with others .
#include <stdio.h>
int main()
{
int m,n,r;
scanf("%d%d",&m,&n);
while(m%n!=0)
{
r=m%n;
m=n;
n=r;
}
printf("%d",n);
return 0;
}边栏推荐
- Fabric.js 更换图片的3种方法(包括更换分组内的图片,以及存在缓存的情况)
- Briefly introduce chown command
- Basic use of form
- kmp思想及模板代码
- Dark horse notes -- Set Series Collection
- Gee: analyze the change of spatial centroid of remote sensing image [centroid acquisition analysis]
- Here comes a new chapter in the series of data conversion when exporting with easyexcel!
- Fabric. JS gradient
- How matlab marks' a 'in the figure and how matlab marks points and solid points in the figure
- 生成二维码
猜你喜欢

Centos8 installation mysql8.0.22 tutorial

指针使用详解

Fabric.js IText 手动设置斜体

Black Horse Notes - - set Series Collection

Gee data set: export the distribution and installed capacity of hydropower stations in the country to CSV table

Fabric.js 右键菜单

LeetCode 1175. Prime number arrangement (prime number judgment + Combinatorial Mathematics)
![Gee series: unit 9 generate sampling data in GEE [random sampling]](/img/ff/edb27b40f63eca81c5683e81b2860b.jpg)
Gee series: unit 9 generate sampling data in GEE [random sampling]
![Gee series: unit 7 remote sensing image classification using GEE [random forest classification]](/img/01/ba9441b7b1efaed85c464316740edb.jpg)
Gee series: unit 7 remote sensing image classification using GEE [random forest classification]

el form 表单validate成功后没有执行逻辑
随机推荐
青训营--数据库实操项目
ThreadLocal memory leak
Gee: analyze the change of spatial centroid of remote sensing image [centroid acquisition analysis]
LeetCode 1175. Prime number arrangement (prime number judgment + Combinatorial Mathematics)
Gee: remote sensing image composite and mosaic
Software testing learning - day 4
Nodejs (02) - built in module
Visual studio import
Gee series: Unit 3 raster remote sensing image band characteristics and rendering visualization
Fabric. JS free draw rectangle
Fabric. JS compact JSON
Win10 copy files, save files... All need administrator permission, solution
Mysql基础---查询(1天学会mysql基础)
brew install * 失败,解决方法
MySQL foundation --- query (learn MySQL foundation in 1 day)
ERP management system development and design existing source code
Visual Studio導入
Simply encapsulate JS and apply it
With an amount of $50billion, amd completed the acquisition of Xilinx
Fabric. JS 3 APIs to set canvas width and height