diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2024-05-27 16:30:12 +0300 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2024-05-27 16:30:12 +0300 |
| commit | 5565beca67266d65b28d0c0ad5d1a06178ede73f (patch) | |
| tree | 9e932a7e8b778bb8b38d60c196881dcd7e2e0d3c /codeforces/UltraFastMathmatician | |
| parent | 8e8da93654eedfc65e366fa5c97e08b37673fbbc (diff) | |
| download | competitive-programming-5565beca67266d65b28d0c0ad5d1a06178ede73f.tar.xz competitive-programming-5565beca67266d65b28d0c0ad5d1a06178ede73f.zip | |
Solved two dp problems on cses
Diffstat (limited to 'codeforces/UltraFastMathmatician')
| -rwxr-xr-x | codeforces/UltraFastMathmatician/main.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/codeforces/UltraFastMathmatician/main.cpp b/codeforces/UltraFastMathmatician/main.cpp index 83ef653..b096db4 100755 --- a/codeforces/UltraFastMathmatician/main.cpp +++ b/codeforces/UltraFastMathmatician/main.cpp @@ -1,15 +1,15 @@ -#include<bits/stdc++.h> +#include <bits/stdc++.h> using namespace std; -int main () { - ios_base::sync_with_stdio(false); - cin.tie(NULL); +int main() { + ios_base::sync_with_stdio(false); + cin.tie(NULL); string s1, s2; cin >> s1 >> s2; - string ans=""; - for(int i = 0; i < s1.size(); i++) { - ans+=((s1[i] - '0') ^ (s2[i] - '0') + '0'); + string ans = ""; + for (int i = 0; i < s1.size(); i++) { + ans += ((s1[i] - '0') ^ (s2[i] - '0') + '0'); } cout << ans << endl; } |
