Skip to content

Instantly share code, notes, and snippets.

@emladevops
Created June 1, 2024 02:04
Show Gist options
  • Save emladevops/22d94f7df80d4fac20971b710f21452f to your computer and use it in GitHub Desktop.
Save emladevops/22d94f7df80d4fac20971b710f21452f to your computer and use it in GitHub Desktop.
#include <bits/stdc++.h>
#define bit(n,i) ((n>>i)&1)
#define ll long long
#define pb push_back
#define fi first
#define se second
#define el '\n'
#define p push
#define task "BADPAIR"
using namespace stdconst int o_3a354d4d74025ce6522d37303bc83fd4=3e6 + (0x000000000000000A + 0x0000000000000205 + 0x0000000000000805 - 0x0000000000000A0F);const int o_42ada5458f8bdd0244c5d0018aea9230=1e6 + (0x0000000000000064 + 0x0000000000000232 + 0x0000000000000832 - 0x0000000000000A96);const int o_94e2bc4f54262dcc163fa274bed7cb69=2e5 + (0x0000000000000064 + 0x0000000000000232 + 0x0000000000000832 - 0x0000000000000A96);const int o_792b6e86933a08ce9bb00fa81dc08c8b=5e3 + (0x0000000000000064 + 0x0000000000000232 + 0x0000000000000832 - 0x0000000000000A96);const int o_a3fcc8301ffae7780ce174c9ab1caf78=1e9 + (0x000000000000000E + 0x0000000000000207 + 0x0000000000000807 - 0x0000000000000A15);const int o_c1d010f9ef9296702280e546a07a2dbe=(0x000000000000003E + 0x000000000000021F + 0x000000000000081F - 0x0000000000000A5D);const int o_2f64776b0af695a2ef4e735bfc22ec4c=1e7 + (0x000000000000000A + 0x0000000000000205 + 0x0000000000000805 - 0x0000000000000A0F);int o_b282ee9501b274d7f7aa92dd576e545c[]={0,0,-1,1,1,-1,1,-1};int o_0cb7f0b28cb214050cf0855db42c6063[]={-1,1,0,0,1,1,-1,-1};int o_f3b753c38729e8f726b2e022a99a3bf8[]={2,2,-2,-2,1,1,-1,-1};int o_db646b072b14fb1af5b104057260762f[]={-1,1,-1,1,-2,2,-2,2};int o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8;int o_5c19a4cd72c421a0925164c4bd410851[o_42ada5458f8bdd0244c5d0018aea9230];int o_c0ed214ecf8eb665ffe9e792e0b86744[o_42ada5458f8bdd0244c5d0018aea9230];int o_dd32dd9daccbb591ab4d054060e359cb;long long o_ecc45a448475cfc418ae9dfc8f381515;void o_f4bfc8db4dce5cf91e345eeb3f8dc77b(){for (int o_cf7d9c8ca5bab12d438ab737f283107d=(0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03);(o_cf7d9c8ca5bab12d438ab737f283107d <= o_42ada5458f8bdd0244c5d0018aea9230) & !!(o_cf7d9c8ca5bab12d438ab737f283107d <= o_42ada5458f8bdd0244c5d0018aea9230);o_cf7d9c8ca5bab12d438ab737f283107d++)o_5c19a4cd72c421a0925164c4bd410851[o_cf7d9c8ca5bab12d438ab737f283107d] = (0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03);for (int o_5414621ecae3e2e3e5a5e5e4fb484c7b=(0x0000000000000004 + 0x0000000000000202 + 0x0000000000000802 - 0x0000000000000A06);(o_5414621ecae3e2e3e5a5e5e4fb484c7b <= o_42ada5458f8bdd0244c5d0018aea9230) & !!(o_5414621ecae3e2e3e5a5e5e4fb484c7b <= o_42ada5458f8bdd0244c5d0018aea9230);o_5414621ecae3e2e3e5a5e5e4fb484c7b++){if (!(o_5c19a4cd72c421a0925164c4bd410851[o_5414621ecae3e2e3e5a5e5e4fb484c7b] ^ 0x0000000000000001)){for (int o_97187f20dfc2a32827e4463ec78ff81a=o_5414621ecae3e2e3e5a5e5e4fb484c7b;(o_97187f20dfc2a32827e4463ec78ff81a <= o_42ada5458f8bdd0244c5d0018aea9230) & !!(o_97187f20dfc2a32827e4463ec78ff81a <= o_42ada5458f8bdd0244c5d0018aea9230);o_97187f20dfc2a32827e4463ec78ff81a += o_5414621ecae3e2e3e5a5e5e4fb484c7b)o_5c19a4cd72c421a0925164c4bd410851[o_97187f20dfc2a32827e4463ec78ff81a] *= o_5414621ecae3e2e3e5a5e5e4fb484c7b;};};cin>>o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8;for (int o_37342c3ee27491846b66bfc3a0df4e47=(0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03);(o_37342c3ee27491846b66bfc3a0df4e47 <= o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8) & !!(o_37342c3ee27491846b66bfc3a0df4e47 <= o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8);o_37342c3ee27491846b66bfc3a0df4e47++){cin>>o_dd32dd9daccbb591ab4d054060e359cb;o_ecc45a448475cfc418ae9dfc8f381515 += o_c0ed214ecf8eb665ffe9e792e0b86744[o_5c19a4cd72c421a0925164c4bd410851[o_dd32dd9daccbb591ab4d054060e359cb]];o_c0ed214ecf8eb665ffe9e792e0b86744[o_5c19a4cd72c421a0925164c4bd410851[o_dd32dd9daccbb591ab4d054060e359cb]]++;};cout<<o_ecc45a448475cfc418ae9dfc8f381515;};int main(){std::ios_basesync_with_stdio((0x0000000000000000 + 0x0000000000000200 + 0x0000000000000800 - 0x0000000000000A00));cin.tie((0x0000000000000000 + 0x0000000000000200 + 0x0000000000000800 - 0x0000000000000A00));cout.tie((0x0000000000000000 + 0x0000000000000200 + 0x0000000000000800 - 0x0000000000000A00));if (fopen("\x42""A\104P\x41""I\122.\x69""n\160","\x72""")){freopen("\x42""A\104P\x41""I\122.\x69""n\160","\x72""",stdin);freopen("\x42""A\104P\x41""I\122.\x6F""u\164","\x77""",stdout);};int o_54a16cf3511bcd850d83f564c88854f3=(0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03);while (o_54a16cf3511bcd850d83f564c88854f3--){o_f4bfc8db4dce5cf91e345eeb3f8dc77b();};};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment