// compile: make data
// run: ./data < data.in
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
#ifdef LOCAL
#include <debug/codeforces.h>
#define debug(x...) _debug_print(#x, x);
#define Debug(x...) _debug_print_format(#x, x);
std::ifstream terminal("/dev/tty");
#define PP cerr<<"\033[1;30mpause...\e[0m",terminal.ignore();
#else
#define debug(x...)
#define Debug(x...)
#define PP
#endif
template<typename...Args> void print_(Args...args){((cout<<args<<" "),...)<<endl;}
#define rep(i,a,b) for(int i=(a);i<(int)(b);++i)
#define sz(v) ((int)(v).size())
#define print(...) print_(__VA_ARGS__);
#define FIND(a, x) ((find(a.begin(),a.end(),(x))!=a.end())?1:0)
#define cmin(x,...) x=min({(x),__VA_ARGS__})
#define cmax(x,...) x=max({(x),__VA_ARGS__})
#define INTMAX (int)(9223372036854775807)
#define INF (int)(1152921504606846976)
#define NaN (int)(0x8b88e1d0595d51d1)
#define double long double
#define int long long
#define uint unsigned long long
#define MAXN 200010
int32_t main() {
ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
int n, s; cin >> n >> s;
vector<int> a(n);
map<int, vector<int>> m;
rep(i, 0, n) {
cin >> a[i];
if (sz(m[a[i]]) < 2) m[a[i]].push_back(i);
}
rep(i, 0, n) {
int r = s - a[i];
auto v = m[r];
int cnt = sz(v);
if (cnt && r != a[i]) {
cout << i+1 << " " << v[0]+1 << endl;
return 0;
}
else if (cnt > 1 && r == a[i]) {
if (i == v[0]) cout << i+1 << " " << v[1]+1 << endl;
else cout << i+1 << " " << v[0]+1 << endl;
return 0;
}
}
cout << "IMPOSSIBLE\n";
return 0;
}
Yo, anyone else tried 11ccbet? Been hearing whispers about it. Think I might throw down a few dollars this weekend, see what’s what. Fingers crossed! Check it out 11ccbet.
Just landed on 1gom.com bong88, looks promising. Fingers crossed for some wins!
I love the loyalty program on 37winbet. I’d recommend checking them out to see if you can also get perks such as free bets! Check it out: 37winbet
Heard good things about gamev9. Gonna check it out for some chill gaming sessions. Hope it lives up to the hype! Check out gamev9
Gobetplayvip, here I come! Looking to see what kind of VIP treatment they’re offering. High hopes for some big wins and cool perks. Go VIP at gobetplayvip
Time to check out bk664epson! Wonder what they’re offering and if its worth the buzz. Hope I find some great deals. Browse the selection at bk664epson
18winapp is the real deal; I play on the app and its awesome. Easy to use app, plenty of games and it is safe. You can always get customer service when needed. 18winapp
99bon is a top resource, they have all the best and newest games. Very easy to navigate the site. I highly recommend them. 99bon
Looking for a new place to play? I’d say check out cpc5. Their site is easy to find all the cool games on, and quick to load. Customer service is helpful as well! cpc5
The app installation was a breeze and the login process is super fast. It makes the whole experience much more convenient on mobile. superlgloginappapk
Sangat puas main di sini, proses deposit dan withdraw sangat cepat. Mantap sekali pelayanan dari idkudaemas88, recommended banget buat semua.
Finally found a platform that actually treats its players right. The bonuses are generous and the customer service is very helpful. Give perabetcasino a try!
I really love the interface of this app. It is smooth and the payouts are surprisingly fast. Definitely my new favorite spot to play! cassino222app
The graphics are stunning and the gameplay is very immersive. I spent hours here and didn’t even notice the time passing. I love inyyycasino so much.
I’ve tried a few sites lately but this one really stands out. The interface is super smooth and the payouts are legit. Definitely my new go-to spot. Check out selayar88slot for a great experience.
I have tried plenty of sportsbooks over the years and this one stands out for its clean layout and honest odds. Navigating between prematch and live events is effortless and the bet slip remembers my preferences. Withdrawals reach my wallet within the stated timeframe and I never feel rushed to deposit. A solid choice for anyone who values consistency. bdbet299
Finally found a site that doesn’t crash during peak hours. The bonuses are actually fair and easy to claim at xin883.