From ae102ff9d47683f19a656f61725e6d328d8deb2f Mon Sep 17 00:00:00 2001 From: RohanChaudhary1805 Date: Sat, 29 Oct 2022 19:48:46 +0530 Subject: [PATCH 1/2] C++ code --- C++/p_binary.cpp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 C++/p_binary.cpp diff --git a/C++/p_binary.cpp b/C++/p_binary.cpp new file mode 100644 index 0000000..98d4a36 --- /dev/null +++ b/C++/p_binary.cpp @@ -0,0 +1,42 @@ +#include +using namespace std; +#define ll long long +long long takat(long long a,long long b){ + long long c=a; + if(b==0){ + a=1; + } + for(long long i=0;i>n>>m; + char c; + string s="",s1="",s2=""; + map mp; + for(ll i=0;i Date: Sat, 29 Oct 2022 19:52:36 +0530 Subject: [PATCH 2/2] c++ code modified --- C++/p_binary.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C++/p_binary.cpp b/C++/p_binary.cpp index 98d4a36..f5d6030 100644 --- a/C++/p_binary.cpp +++ b/C++/p_binary.cpp @@ -1,3 +1,5 @@ +//C++ code +//https://codeforces.com/contest/1225/problem/C #include using namespace std; #define ll long long