当前位置:网站首页>An elegant program for Euclid‘s algorithm
An elegant program for Euclid‘s algorithm
2022-07-05 03:44:00 【Grand mage yunzhongjun】
// Euclid's algorithm for greatest common divisor
int euclidAlgorithm (int A, int B){
A=abs(A);
B=abs(B);
while (B!=0){
while (A>B) A=A-B;
B=B-A;
}
return A;
}
边栏推荐
- Zero foundation uses paddlepaddle to build lenet-5 network
- Asemi rectifier bridge 2w10 parameters, 2w10 specifications, 2w10 characteristics
- 51 independent key basic experiment
- English essential vocabulary 3400
- Clickhouse物化视图
- Quick start of UI component development of phantom engine [umg/slate]
- 【软件逆向-基础知识】分析方法、汇编指令体系结构
- speed or tempo in classical music
- Flex flexible layout
- How can we truncate the float64 type to a specific precision- How can we truncate float64 type to a particular precision?
猜你喜欢
Share the newly released web application development framework based on blazor Technology
JWT漏洞复现
SQL injection exercise -- sqli Labs
Some enterprise interview questions of unity interview
Redis之Jedis如何使用
Leetcode42. connect rainwater
ABP vNext microservice architecture detailed tutorial - distributed permission framework (Part 2)
DMX parameter exploration of grandma2 onpc 3.1.2.5
How to learn to get the embedding matrix e # yyds dry goods inventory #
Subversive cognition: what does SRE do?
随机推荐
JWT vulnerability recurrence
Anchor free series network yolox source code line by line explanation Part 2 (a total of 10, ensure to explain line by line, after reading, you can change the network at will, not just as a participan
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
天干地支纪年法中为什么是60年一个轮回,而不是120年
Jd.com 2: how to prevent oversold in the deduction process of commodity inventory?
Delphi read / write JSON format
English essential vocabulary 3400
Ask, does this ADB MySQL support sqlserver?
Pdf things
Kuboard
[untitled]
Google Chrome CSS will not update unless the cache is cleared - Google Chrome CSS doesn't update unless clear cache
In MySQL Association query, the foreign key is null. What if the data cannot be found?
LeetCode 237. Delete nodes in the linked list
NEW:Devart dotConnect ADO.NET
Monitoring web performance with performance
Anchor free series network yolox source code line by line explanation four (a total of ten, ensure line by line explanation, after reading, you can change the network at will, not just as a participan
【软件逆向-基础知识】分析方法、汇编指令体系结构
[groovy] string (string type variable definition | character type variable definition)
[wp]bmzclub几道题的writeup