Skip to content

Commit 991d109

Browse files
authored
Merge pull request #128 from LEEHYUNDONG/main
220811/이현동
2 parents 5a08c3d + 0105ac1 commit 991d109

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
48.9 KB
Binary file not shown.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#include <bits/stdc++.h>
2+
using namespace std;
3+
typedef long long ll;
4+
5+
ll A, B;
6+
7+
ll gcd(ll x, ll y)
8+
{
9+
return y ? gcd(y, x % y) : x;
10+
}
11+
int main()
12+
{
13+
ios::sync_with_stdio(0);
14+
cin.tie(0);
15+
16+
cin >> A >> B;
17+
ll ans;
18+
ans = gcd(A, B);
19+
20+
for (int i = 0; i < ans;i++)
21+
cout << 1;
22+
23+
return 0;
24+
}

0 commit comments

Comments
 (0)