mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-25 07:51:58 +00:00
808. 最大公约数
https://www.acwing.com/problem/content/submission/code_detail/14063749/
This commit is contained in:
parent
155ca99a6d
commit
d89ee4b62d
17
AcWing/808/808.cpp
Normal file
17
AcWing/808/808.cpp
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#include <algorithm>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
using std::cin;
|
||||||
|
using std::cout;
|
||||||
|
const char endl = '\n';
|
||||||
|
|
||||||
|
int a, b;
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
std::ios::sync_with_stdio(false);
|
||||||
|
|
||||||
|
cin >> a >> b;
|
||||||
|
cout << std::__gcd(a, b) << endl;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user