diff --git a/README.md b/README.md index 75ccc6c..2415892 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'. diff --git a/a.py b/a.py new file mode 100644 index 0000000..ac1973d --- /dev/null +++ b/a.py @@ -0,0 +1 @@ +print("hello 1") diff --git a/c.py b/c.py new file mode 100644 index 0000000..870666a --- /dev/null +++ b/c.py @@ -0,0 +1 @@ +print("hello 3") 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<