| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1360795 | chubyxdxd | Gift Boxes (EGOI25_giftboxes) | C++20 | 239 ms | 25756 KiB |
#include <bits/stdc++.h>
#define pb push_back
#define sc second
#define ff first
#define all(a) a.begin(),a.end()
#define mem(a,i) memset(a,i,sizeof a)
#define forr(i,n) for(int i=0;i<n;i++)
#define nl '\n'
using namespace std;
typedef long long ll;
typedef pair<ll,ll> ii;
typedef vector<int> vi;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
int t,n;
cin>>t>>n;//number of teams and contestants
int v[n+1];
set<int> se;
int piv=0;
for(int i=1;i<=n;i++){
cin>>v[i];
if(se.find(v[i])!=se.end()){
piv=i;
}
se.insert(v[i]);
}
cout<<piv<<" "<<piv<<endl;
}
// pineapple
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
