From 5565beca67266d65b28d0c0ad5d1a06178ede73f Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Mon, 27 May 2024 16:30:12 +0300 Subject: Solved two dp problems on cses --- codeforces/UltraFastMathmatician/main.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'codeforces/UltraFastMathmatician/main.cpp') 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 +#include 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; } -- cgit v1.2.3