Skip to content

Commit 26345cf

Browse files
committed
Initial Commit
1 parent 56e480e commit 26345cf

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

∵∴∵.cpp

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#include<bits/stdc++.h>
2+
#include<ext/pb_ds/assoc_container.hpp>
3+
#include<ext/pb_ds/tree_policy.hpp>
4+
5+
#define int long long int
6+
#define double double_t
7+
#define INF 1e18
8+
using namespace __gnu_pbds;
9+
using namespace std;
10+
template<typename T>
11+
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
12+
13+
int GCD(int a, int b) {
14+
return b == 0 ? a : GCD(b, a % b);
15+
}
16+
17+
int power(int x, int y, int MOD) {
18+
if (y == 0) {
19+
return 1;
20+
}
21+
if (y % 2 == 0) {
22+
return power((x * x) % MOD, y / 2, MOD) % MOD;
23+
} else {
24+
return (x * power((x * x) % MOD, (y - 1) / 2, MOD) % MOD) % MOD;
25+
}
26+
}
27+
28+
int32_t main() {
29+
ios_base::sync_with_stdio(false);
30+
cin.tie(nullptr);
31+
cout.tie(nullptr);
32+
int t = 1;
33+
while (t--) {
34+
string str1,str2;
35+
cin >> str1>>str2;
36+
int i = 0;
37+
int j = 0;
38+
while (i<str1.length() && j<str2.length()){
39+
cout<<str1[i++]<<str2[j++];
40+
}
41+
while (i<str1.length()){
42+
cout<<str1[i++];
43+
}
44+
while (j<str2.length()){
45+
cout<<str2[j++];
46+
}
47+
cout << "\n";
48+
}
49+
}

0 commit comments

Comments
 (0)