# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
900290 | 2024-01-08T04:12:41 Z | Sir_Ahmed_Imran | Parrots (IOI11_parrots) | C++17 | 0 ms | 0 KB |
///~~~LOTA~~~/// #include <bits/stdc++.h> using namespace std; #define nl '\n' #define ff first #define ss second #define ll long long #define append push_back #define pii pair<int,int> #define all(x) (x).begin(),(x).end() #define MAXN 100000 void encode(int n,int m[64]){ int pwr[8]; for(int i=pwr[0]=1;i<8;i++) pwr[i]=pwr[i-1]*2; for(int i=0;i<n;i++) for(int j=0;j<8;j++) if(m[i]&pwr[j]) send(j+i*8); }