From ae43f71d91ea7d7548c8ee0b69f167b0037beba0 Mon Sep 17 00:00:00 2001 From: Hardik Aggarwal Date: Mon, 1 Apr 2019 23:57:57 +0530 Subject: [PATCH 1/4] changed README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 75ccc6c..949f16a 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Your entry should maintain alphabetic order and it should be in the format: ### Entries + Hardik Aggarwal[hardik-kgp](http://githun.com/hardik-kgp) ## Task 2 After all of you send a Pull Request, I'll add my name to 'Entries'. From 95ce87ccd52f65884fbbf3636fd3d396290010f4 Mon Sep 17 00:00:00 2001 From: Hardik Aggarwal Date: Tue, 2 Apr 2019 00:05:51 +0530 Subject: [PATCH 2/4] changed README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 949f16a..2415892 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Your entry should maintain alphabetic order and it should be in the format: ### Entries - Hardik Aggarwal[hardik-kgp](http://githun.com/hardik-kgp) + Hardik Aggarwal[hardik-kgp](http://githun.com/hardik-kgp) ## Task 2 After all of you send a Pull Request, I'll add my name to 'Entries'. From f3d9e37a939fb45ad1c880c8c2468d7cfab29333 Mon Sep 17 00:00:00 2001 From: Hardik Aggarwal Date: Tue, 2 Apr 2019 00:13:32 +0530 Subject: [PATCH 3/4] added a dummy code --- dummy.cpp | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 dummy.cpp diff --git a/dummy.cpp b/dummy.cpp new file mode 100644 index 0000000..2c57386 --- /dev/null +++ b/dummy.cpp @@ -0,0 +1,76 @@ +/************************Code by Hardik Aggarwal!!!!***********************************/ + +#include +using namespace std; + +#define IOS ios_base::sync_with_stdio(false);cin.tie(NULL); + +#define ff first +#define ss second +#define pb push_back +#define pf push_front +#define mp make_pair +#define pu push +#define pp pop_back +#define in insert +#define ld long double +#define endl '\n' +#define debug cout << "Hold right there sparky.....\n"; +#define forn(low,high,i) for(i=low;i= low;i--) +#define trace(x) cerr << #x << ": " << x << " " << endl; + +typedef long long int ll; + +typedef vector vi; +typedef vector vl; +typedef vector vvi; +typedef vector vvl; +typedef pair pii; +typedef pair pll; +typedef vector vpii; +typedef vector vpll; +const ll mod =998244353; + + +int main() +{ + #ifndef ONLINE_JUDGE + // for getting input from input.txt + freopen("input.txt", "r", stdin); + // for writing output to output.txt + freopen("output.txt", "w", stdout); + #endif + + IOS + ll n,i,ans; + cin>>n; + bool a[n]; + for(i=0;i>a[i]; + } + + + for(i=n-2;i>=0;i--) + { + if(a[i]==!a[n-1]) + { + ans=i; + break; + } + + } + + + + cout< Date: Tue, 2 Apr 2019 00:15:09 +0530 Subject: [PATCH 4/4] Revert "added a dummy code" This reverts commit f3d9e37a939fb45ad1c880c8c2468d7cfab29333. --- dummy.cpp | 76 ------------------------------------------------------- 1 file changed, 76 deletions(-) delete mode 100644 dummy.cpp diff --git a/dummy.cpp b/dummy.cpp deleted file mode 100644 index 2c57386..0000000 --- a/dummy.cpp +++ /dev/null @@ -1,76 +0,0 @@ -/************************Code by Hardik Aggarwal!!!!***********************************/ - -#include -using namespace std; - -#define IOS ios_base::sync_with_stdio(false);cin.tie(NULL); - -#define ff first -#define ss second -#define pb push_back -#define pf push_front -#define mp make_pair -#define pu push -#define pp pop_back -#define in insert -#define ld long double -#define endl '\n' -#define debug cout << "Hold right there sparky.....\n"; -#define forn(low,high,i) for(i=low;i= low;i--) -#define trace(x) cerr << #x << ": " << x << " " << endl; - -typedef long long int ll; - -typedef vector vi; -typedef vector vl; -typedef vector vvi; -typedef vector vvl; -typedef pair pii; -typedef pair pll; -typedef vector vpii; -typedef vector vpll; -const ll mod =998244353; - - -int main() -{ - #ifndef ONLINE_JUDGE - // for getting input from input.txt - freopen("input.txt", "r", stdin); - // for writing output to output.txt - freopen("output.txt", "w", stdout); - #endif - - IOS - ll n,i,ans; - cin>>n; - bool a[n]; - for(i=0;i>a[i]; - } - - - for(i=n-2;i>=0;i--) - { - if(a[i]==!a[n-1]) - { - ans=i; - break; - } - - } - - - - cout<