Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
Expand Down
1 change: 1 addition & 0 deletions a.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("hello 1")
1 change: 1 addition & 0 deletions c.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("hello 3")
76 changes: 76 additions & 0 deletions dummy.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/************************Code by Hardik Aggarwal!!!!***********************************/

#include<bits/stdc++.h>
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<high;i++)
#define forrev(high,low,i) for(i = high; i>= low;i--)
#define trace(x) cerr << #x << ": " << x << " " << endl;

typedef long long int ll;

typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef vector<pii> vpii;
typedef vector<pll> 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<n;i++)
{
cin>>a[i];
}


for(i=n-2;i>=0;i--)
{
if(a[i]==!a[n-1])
{
ans=i;
break;
}

}



cout<<ans;


}






1 change: 1 addition & 0 deletions e.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("hello 5")