QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#237692 | #7679. Master of Both IV | ucup-team112# | AC ✓ | 91ms | 24804kb | C++23 | 14.4kb | 2023-11-04 14:43:53 | 2023-11-04 14:43:54 |
Judging History
answer
//#define _GLIBCXX_DEBUG
//#pragma GCC target("avx2")
//#pragma GCC optimize("O3")
//#pragma GCC optimize("unroll-loops")
#include<bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include <debug_print.hpp>
#define OUT(...) debug_print::multi_print(#__VA_ARGS__, __VA_ARGS__)
#else
#define OUT(...) (static_cast<void>(0))
#endif
#define endl '\n'
#define lfs cout<<fixed<<setprecision(15)
#define ALL(a) (a).begin(),(a).end()
#define ALLR(a) (a).rbegin(),(a).rend()
#define UNIQUE(a) (a).erase(unique((a).begin(),(a).end()),(a).end())
#define spa << " " <<
#define fi first
#define se second
#define MP make_pair
#define MT make_tuple
#define PB push_back
#define EB emplace_back
#define rep(i,n,m) for(ll i = (n); i < (ll)(m); i++)
#define rrep(i,n,m) for(ll i = (ll)(m) - 1; i >= (ll)(n); i--)
using ll = long long;
using ld = long double;
const ll MOD1 = 1e9+7;
const ll MOD9 = 998244353;
const ll INF = 1e18;
using P = pair<ll, ll>;
template<typename T> using PQ = priority_queue<T>;
template<typename T> using QP = priority_queue<T,vector<T>,greater<T>>;
template<typename T1, typename T2>bool chmin(T1 &a,T2 b){if(a>b){a=b;return true;}else return false;}
template<typename T1, typename T2>bool chmax(T1 &a,T2 b){if(a<b){a=b;return true;}else return false;}
ll median(ll a,ll b, ll c){return a+b+c-max({a,b,c})-min({a,b,c});}
void ans1(bool x){if(x) cout<<"Yes"<<endl;else cout<<"No"<<endl;}
void ans2(bool x){if(x) cout<<"YES"<<endl;else cout<<"NO"<<endl;}
void ans3(bool x){if(x) cout<<"Yay!"<<endl;else cout<<":("<<endl;}
template<typename T1,typename T2>void ans(bool x,T1 y,T2 z){if(x)cout<<y<<endl;else cout<<z<<endl;}
template<typename T1,typename T2,typename T3>void anss(T1 x,T2 y,T3 z){ans(x!=y,x,z);};
template<typename T>void debug(const T &v,ll h,ll w,string sv=" "){for(ll i=0;i<h;i++){cout<<v[i][0];for(ll j=1;j<w;j++)cout<<sv<<v[i][j];cout<<endl;}};
template<typename T>void debug(const T &v,ll n,string sv=" "){if(n!=0)cout<<v[0];for(ll i=1;i<n;i++)cout<<sv<<v[i];cout<<endl;};
template<typename T>void debug(const vector<T>&v){debug(v,v.size());}
template<typename T>void debug(const vector<vector<T>>&v){for(auto &vv:v)debug(vv,vv.size());}
template<typename T>void debug(stack<T> st){while(!st.empty()){cout<<st.top()<<" ";st.pop();}cout<<endl;}
template<typename T>void debug(queue<T> st){while(!st.empty()){cout<<st.front()<<" ";st.pop();}cout<<endl;}
template<typename T>void debug(deque<T> st){while(!st.empty()){cout<<st.front()<<" ";st.pop_front();}cout<<endl;}
template<typename T>void debug(PQ<T> st){while(!st.empty()){cout<<st.top()<<" ";st.pop();}cout<<endl;}
template<typename T>void debug(QP<T> st){while(!st.empty()){cout<<st.top()<<" ";st.pop();}cout<<endl;}
template<typename T>void debug(const set<T>&v){for(auto z:v)cout<<z<<" ";cout<<endl;}
template<typename T>void debug(const multiset<T>&v){for(auto z:v)cout<<z<<" ";cout<<endl;}
template<typename T,size_t size>void debug(const array<T, size> &a){for(auto z:a)cout<<z<<" ";cout<<endl;}
template<typename T,typename V>void debug(const map<T,V>&v){for(auto z:v)cout<<"["<<z.first<<"]="<<z.second<<",";cout<<endl;}
template<typename T>vector<vector<T>>vec(ll x, ll y, T w){vector<vector<T>>v(x,vector<T>(y,w));return v;}
vector<ll>dx={1,-1,0,0,1,1,-1,-1};vector<ll>dy={0,0,1,-1,1,-1,1,-1};
template<typename T>vector<T> make_v(size_t a,T b){return vector<T>(a,b);}
template<typename... Ts>auto make_v(size_t a,Ts... ts){return vector<decltype(make_v(ts...))>(a,make_v(ts...));}
template<typename T1, typename T2>ostream &operator<<(ostream &os, const pair<T1, T2>&p){return os << "(" << p.first << "," << p.second << ")";}
template<typename T>ostream &operator<<(ostream &os, const vector<T> &v){os<<"[";for(auto &z:v)os << z << ",";os<<"]"; return os;}
template<typename T>void rearrange(vector<int>&ord, vector<T>&v){
auto tmp = v;
for(int i=0;i<tmp.size();i++)v[i] = tmp[ord[i]];
}
template<typename Head, typename... Tail>void rearrange(vector<int>&ord,Head&& head, Tail&&... tail){
rearrange(ord, head);
rearrange(ord, tail...);
}
template<typename T> vector<int> ascend(const vector<T>&v){
vector<int>ord(v.size());iota(ord.begin(),ord.end(),0);
sort(ord.begin(),ord.end(),[&](int i,int j){return make_pair(v[i],i)<make_pair(v[j],j);});
return ord;
}
template<typename T> vector<int> descend(const vector<T>&v){
vector<int>ord(v.size());iota(ord.begin(),ord.end(),0);
sort(ord.begin(),ord.end(),[&](int i,int j){return make_pair(v[i],-i)>make_pair(v[j],-j);});
return ord;
}
template<typename T> vector<T> inv_perm(const vector<T>&ord){
vector<T>inv(ord.size());
for(int i=0;i<ord.size();i++)inv[ord[i]] = i;
return inv;
}
ll FLOOR(ll n,ll div){assert(div>0);return n>=0?n/div:(n-div+1)/div;}
ll CEIL(ll n,ll div){assert(div>0);return n>=0?(n+div-1)/div:n/div;}
ll digitsum(ll n){ll ret=0;while(n){ret+=n%10;n/=10;}return ret;}
ll modulo(ll n,ll d){return (n%d+d)%d;};
template<typename T>T min(const vector<T>&v){return *min_element(v.begin(),v.end());}
template<typename T>T max(const vector<T>&v){return *max_element(v.begin(),v.end());}
template<typename T>T acc(const vector<T>&v){return accumulate(v.begin(),v.end(),T(0));};
template<typename T>T reverse(const T &v){return T(v.rbegin(),v.rend());};
//mt19937 mt(chrono::steady_clock::now().time_since_epoch().count());
int popcount(ll x){return __builtin_popcountll(x);};
int poplow(ll x){return __builtin_ctzll(x);};
int pophigh(ll x){return 63 - __builtin_clzll(x);};
template<typename T>T poll(queue<T> &q){auto ret=q.front();q.pop();return ret;};
template<typename T>T poll(priority_queue<T> &q){auto ret=q.top();q.pop();return ret;};
template<typename T>T poll(QP<T> &q){auto ret=q.top();q.pop();return ret;};
template<typename T>T poll(stack<T> &s){auto ret=s.top();s.pop();return ret;};
ll MULT(ll x,ll y){if(LLONG_MAX/x<=y)return LLONG_MAX;return x*y;}
ll POW2(ll x, ll k){ll ret=1,mul=x;while(k){if(mul==LLONG_MAX)return LLONG_MAX;if(k&1)ret=MULT(ret,mul);mul=MULT(mul,mul);k>>=1;}return ret;}
ll POW(ll x, ll k){ll ret=1;for(int i=0;i<k;i++){if(LLONG_MAX/x<=ret)return LLONG_MAX;ret*=x;}return ret;}
namespace converter{
int dict[500];
const string lower="abcdefghijklmnopqrstuvwxyz";
const string upper="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
const string digit="0123456789";
const string digit1="123456789";
void regi_str(const string &t){
for(int i=0;i<t.size();i++){
dict[t[i]]=i;
}
}
void regi_int(const string &t){
for(int i=0;i<t.size();i++){
dict[i]=t[i];
}
}
vector<int>to_int(const string &s,const string &t){
regi_str(t);
vector<int>ret(s.size());
for(int i=0;i<s.size();i++){
ret[i]=dict[s[i]];
}
return ret;
}
vector<int>to_int(const string &s){
auto t=s;
sort(t.begin(),t.end());
t.erase(unique(t.begin(),t.end()),t.end());
return to_int(s,t);
}
vector<vector<int>>to_int(const vector<string>&s,const string &t){
regi_str(t);
vector<vector<int>>ret(s.size(),vector<int>(s[0].size()));
for(int i=0;i<s.size();i++){
for(int j=0;j<s[0].size();j++){
ret[i][j]=dict[s[i][j]];
}
}
return ret;
}
vector<vector<int>>to_int(const vector<string>&s){
string t;
for(int i=0;i<s.size();i++){
t+=s[i];
}
sort(t.begin(),t.end());t.erase(unique(t.begin(),t.end()),t.end());
return to_int(s,t);
}
string to_str(const vector<int>&s,const string &t){
regi_int(t);
string ret;
for(auto z:s)ret+=dict[z];
return ret;
}
vector<string> to_str(const vector<vector<int>>&s,const string &t){
regi_int(t);
vector<string>ret(s.size());
for(int i=0;i<s.size();i++){
for(auto z:s[i])ret[i]+=dict[z];
}
return ret;
}
}
template< typename T = int >
struct edge {
int to;
T cost;
int id;
edge():to(-1),id(-1){};
edge(int to, T cost = 1, int id = -1):to(to), cost(cost), id(id){}
operator int() const { return to; }
};
template<typename T>
using Graph = vector<vector<edge<T>>>;
template<typename T>
Graph<T>revgraph(const Graph<T> &g){
Graph<T>ret(g.size());
for(int i=0;i<g.size();i++){
for(auto e:g[i]){
int to = e.to;
e.to = i;
ret[to].push_back(e);
}
}
return ret;
}
template<typename T>
Graph<T> readGraph(int n,int m,int indexed=1,bool directed=false,bool weighted=false){
Graph<T> ret(n);
for(int es = 0; es < m; es++){
int u,v;
T w=1;
cin>>u>>v;u-=indexed,v-=indexed;
if(weighted)cin>>w;
ret[u].emplace_back(v,w,es);
if(!directed)ret[v].emplace_back(u,w,es);
}
return ret;
}
template<typename T>
Graph<T> readParent(int n,int indexed=1,bool directed=true){
Graph<T>ret(n);
for(int i=1;i<n;i++){
int p;cin>>p;
p-=indexed;
ret[p].emplace_back(i);
if(!directed)ret[i].emplace_back(p);
}
return ret;
}
vector< bool > prime_table(ll n) {
vector< bool > prime(n + 1, true);
if(n >= 0) prime[0] = false;
if(n >= 1) prime[1] = false;
for(ll i = 2; i * i <= n; i++) {
if(!prime[i]) continue;
for(ll j = i + i; j <= n; j += i) {
prime[j] = false;
}
}
return prime;
}
template<typename T>
struct nazo_basis{
vector<T>basis;
nazo_basis() = default;
ll rank(){return basis.size();};
T insert(T k){
for(auto b:basis)chmin(k, k^b);
if(k){
basis.push_back(k);
}
return k;
}
void insert(nazo_basis<T>basis){
for(auto b:basis.basis){
insert(b);
}
}
bool include(T k){
for(auto b:basis)chmin(k, k^b);
return !k;
}
T subset_max(){
T k=0;
for(auto b:basis)chmax(k, k^b);
return k;
}
nazo_basis<T>orthogonal_complement(int dim){
nazo_basis<T>ret;
vector<T>top(basis.size());
T exist=0;
for(int i=0;i<basis.size();i++){
for(int j=dim-1;;j--){
if(basis[i]>>j&1){
top[i]=T(1)<<j;
exist|=top[i];
break;
}
}
for(int j=0;j<i;j++){
chmin(basis[j],basis[i]^basis[j]);
}
}
for(int i=0;i<dim;i++){
if(exist>>i&1)continue;
T w=T(1)<<i;
for(int j=0;j<basis.size();j++){
if(__builtin_popcountll(basis[j]&w)&1){
w^=top[j];
}
}
ret.insert(w);
}
return ret;
}
void print(){
for(auto b:basis)cout<<b<<" ";
cout<<endl;
}
};
template< int mod >
struct ModInt {
int x;
ModInt() : x(0) {}
ModInt(int64_t y) : x(y >= 0 ? y % mod : (mod - (-y) % mod) % mod) {}
ModInt &operator+=(const ModInt &p) {
if((x += p.x) >= mod) x -= mod;
return *this;
}
ModInt &operator-=(const ModInt &p) {
if((x += mod - p.x) >= mod) x -= mod;
return *this;
}
ModInt &operator*=(const ModInt &p) {
x = (int) (1LL * x * p.x % mod);
return *this;
}
ModInt &operator/=(const ModInt &p) {
*this *= p.inverse();
return *this;
}
ModInt operator-() const { return ModInt(-x); }
friend ModInt operator+(const ModInt& lhs, const ModInt& rhs) {
return ModInt(lhs) += rhs;
}
friend ModInt operator-(const ModInt& lhs, const ModInt& rhs) {
return ModInt(lhs) -= rhs;
}
friend ModInt operator*(const ModInt& lhs, const ModInt& rhs) {
return ModInt(lhs) *= rhs;
}
friend ModInt operator/(const ModInt& lhs, const ModInt& rhs) {
return ModInt(lhs) /= rhs;
}
bool operator==(const ModInt &p) const { return x == p.x; }
bool operator!=(const ModInt &p) const { return x != p.x; }
ModInt inverse() const {
int a = x, b = mod, u = 1, v = 0, t;
while(b > 0) {
t = a / b;
swap(a -= t * b, b);
swap(u -= t * v, v);
}
return ModInt(u);
}
ModInt pow(int64_t n) const {
ModInt ret(1), mul(x);
while(n > 0) {
if(n & 1) ret *= mul;
mul *= mul;
n >>= 1;
}
return ret;
}
friend ostream &operator<<(ostream &os, const ModInt &p) {
return os << p.x;
}
friend istream &operator>>(istream &is, ModInt &a) {
int64_t t;
is >> t;
a = ModInt< mod >(t);
return (is);
}
static int get_mod() { return mod; }
};
template< typename T >
struct Combination {
vector< T > _fact, _rfact, _inv;
Combination(ll sz) : _fact(sz + 1), _rfact(sz + 1), _inv(sz + 1) {
_fact[0] = _rfact[sz] = _inv[0] = 1;
for(ll i = 1; i <= sz; i++) _fact[i] = _fact[i - 1] * i;
_rfact[sz] /= _fact[sz];
for(ll i = sz - 1; i >= 0; i--) _rfact[i] = _rfact[i + 1] * (i + 1);
for(ll i = 1; i <= sz; i++) _inv[i] = _rfact[i] * _fact[i - 1];
}
inline T fact(ll k) const { return _fact[k]; }
inline T rfact(ll k) const { return _rfact[k]; }
inline T inv(ll k) const { return _inv[k]; }
T P(ll n, ll r) const {
if(r < 0 || n < r) return 0;
return fact(n) * rfact(n - r);
}
T C(ll p, ll q) const {
if(q < 0 || p < q) return 0;
return fact(p) * rfact(q) * rfact(p - q);
}
T RC(ll p, ll q) const {
if(q < 0 || p < q) return 0;
return rfact(p) * fact(q) * fact(p - q);
}
T H(ll n, ll r) const {
if(n < 0 || r < 0) return (0);
return r == 0 ? 1 : C(n + r - 1, r);
}
//+1がm個、-1がn個で prefix sumが常にk以上
T catalan(ll m,ll n,ll k){
if(n>m-k)return 0;
else return C(n+m,m)-C(n+m,n+k-1);
}
};
using modint = ModInt< MOD9 >;modint mpow(ll n, ll x){return modint(n).pow(x);}modint mpow(modint n, ll x){return n.pow(x);}
//using modint=ld;modint mpow(ll n, ll x){return pow(n,x);}modint mpow(modint n, ll x){return pow(n,x);}
using Comb=Combination<modint>;
int main(){
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
ll res=0,buf=0;
bool judge = true;
ll t;cin>>t;
while(t--){
ll n;cin>>n;
auto pt=prime_table(n+1);
using B=nazo_basis<int>;
vector<B>b(n+1);
vector<ll>c(n+1);
vector<ll>sc(n+1);
B all;
rep(i,0,n){
ll a;cin>>a;
c[a]++;
sc[a]++;
b[a].insert(a);
all.insert(a);
}
rep(i,1,n+1){
if(!pt[i])continue;
for(int j=1;j*i<=n;j++){
for(auto z:b[j].basis)b[j*i].insert(z);
sc[i*j]+=sc[j];
}
}
//OUT(sc);
modint ret=mpow(2,n-all.rank());
//OUT(ret);
rep(i,1,n+1){
if(b[i].include(i)){
//OUT(i,b[i].rank(),sc[i]);
ret+=mpow(2,sc[i]-b[i].rank());
}
}
cout<<ret-1<<endl;
}
return 0;
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3432kb
input:
2 3 1 2 3 5 3 3 5 1 1
output:
4 11
result:
ok 2 number(s): "4 11"
Test #2:
score: 0
Accepted
time: 23ms
memory: 3480kb
input:
40000 5 4 2 5 5 5 5 5 5 5 5 4 5 1 4 4 4 2 5 2 5 2 4 1 5 3 2 4 5 3 5 1 5 5 3 4 5 5 5 5 4 3 5 4 3 3 5 1 5 4 5 5 2 1 5 2 5 4 2 5 5 3 4 3 4 3 5 5 3 5 1 3 5 5 1 2 4 4 5 4 2 5 1 5 5 5 4 2 5 4 5 5 2 5 2 4 5 1 4 5 4 5 5 4 2 3 2 3 5 1 4 1 3 5 5 1 1 2 1 5 5 5 2 5 1 3 5 3 1 2 5 3 5 5 5 1 1 5 5 2 2 2 1 3 5 3 1 ...
output:
9 16 9 9 8 8 9 8 8 9 13 8 8 8 8 9 12 9 11 15 8 8 17 13 8 11 8 8 8 13 15 9 9 8 8 8 11 9 11 13 15 9 17 9 8 8 8 13 11 8 9 11 8 8 11 15 9 8 9 8 8 15 11 8 17 9 15 8 8 8 12 9 9 11 8 13 9 8 15 8 8 9 8 8 8 15 8 11 13 8 9 11 8 19 11 13 19 17 13 15 8 8 8 9 8 9 13 15 17 9 9 17 9 11 9 9 11 9 9 11 8 9 9 13 15 11...
result:
ok 40000 numbers
Test #3:
score: 0
Accepted
time: 24ms
memory: 3528kb
input:
20000 10 1 3 6 8 3 1 10 7 2 3 10 8 2 8 9 10 5 8 4 8 3 10 2 2 10 1 6 4 4 3 4 7 10 6 5 10 7 8 7 3 1 6 6 10 3 2 3 7 8 4 9 8 8 7 10 9 9 6 4 9 3 9 10 5 9 10 10 8 9 10 10 4 5 1 4 3 10 2 10 4 5 8 10 2 2 7 2 10 2 6 4 10 1 1 1 1 2 3 10 1 10 2 8 1 5 9 4 3 1 10 8 1 8 1 9 5 6 7 2 9 10 1 6 7 4 8 8 7 3 5 7 10 10 ...
output:
97 77 82 74 75 84 75 105 159 95 81 74 78 75 73 73 83 93 90 84 79 77 73 89 77 74 81 79 80 207 83 77 83 78 87 85 84 97 75 80 117 75 113 74 75 95 77 83 86 77 99 73 77 83 91 96 77 80 77 76 84 81 73 95 83 74 75 81 77 79 75 78 78 81 97 77 85 73 92 83 73 80 73 81 74 73 142 83 99 78 91 77 76 81 77 74 78 76 ...
result:
ok 20000 numbers
Test #4:
score: 0
Accepted
time: 23ms
memory: 3544kb
input:
10000 20 5 12 4 16 11 20 3 1 3 13 19 16 3 17 15 9 10 18 19 13 20 4 17 14 3 3 10 6 17 16 17 16 8 1 15 13 12 8 12 10 9 20 18 11 5 11 5 5 9 3 17 10 6 8 5 10 11 15 19 9 10 11 20 7 7 12 13 20 9 14 17 1 10 13 20 10 19 3 12 1 8 8 3 20 13 20 17 12 6 1 16 5 3 2 18 7 2 7 20 1 12 4 7 1 20 15 6 13 1 10 5 13 3 4...
output:
32801 32799 32832 32817 32955 65621 32919 32865 32843 32798 32792 32843 32796 32823 32803 32807 32797 32859 32806 32799 32806 32813 32893 32798 32798 32799 32832 32792 32825 32817 32867 32795 32806 32796 32794 32943 32795 32791 65732 32842 32841 32841 32806 32804 32852 32795 32867 32798 32841 32823 ...
result:
ok 10000 numbers
Test #5:
score: 0
Accepted
time: 25ms
memory: 3412kb
input:
16666 12 11 11 9 7 10 9 7 5 4 8 3 3 12 8 6 8 9 3 10 10 9 1 4 5 10 12 2 1 4 1 2 8 7 11 8 7 5 9 12 4 6 11 11 9 11 3 10 4 9 10 6 12 6 2 11 4 10 9 5 9 5 8 9 2 12 9 10 5 2 2 2 3 6 4 11 8 8 12 7 6 5 4 1 11 1 6 11 9 9 3 12 4 5 11 12 1 3 3 9 4 4 1 11 12 6 9 9 11 4 7 10 5 6 9 8 1 12 7 1 2 1 6 11 8 5 8 8 2 6 ...
output:
269 268 283 268 274 283 277 295 268 291 269 855 275 287 344 299 291 277 329 274 281 276 267 268 268 270 338 275 297 315 273 307 303 302 269 279 272 278 281 302 270 301 295 268 303 279 303 267 279 297 326 272 270 287 287 277 273 276 296 307 274 271 281 278 277 311 273 277 275 315 272 272 293 278 285 ...
result:
ok 16666 numbers
Test #6:
score: 0
Accepted
time: 74ms
memory: 21688kb
input:
1 199999 31326 93089 143392 198151 77233 59844 54715 190000 165927 171095 37063 5018 63088 44405 71037 25580 164377 88095 161549 177275 27730 70339 43759 118378 142428 109706 184253 60233 148241 30394 137958 92664 199171 166535 103239 164430 53636 191124 72007 81005 84139 162416 72120 123920 67659 1...
output:
201346582
result:
ok 1 number(s): "201346582"
Test #7:
score: 0
Accepted
time: 91ms
memory: 22192kb
input:
1 200000 170638 5636 88928 129268 153767 88291 149068 48393 141101 184304 94311 9175 191831 49369 148252 116494 143778 82929 154524 119427 98000 4334 67480 110892 23718 90985 175496 1895 30892 65569 66919 99699 93681 154168 93236 151988 192901 64308 133298 132467 145277 32832 174696 98652 70963 7005...
output:
91986751
result:
ok 1 number(s): "91986751"
Test #8:
score: 0
Accepted
time: 26ms
memory: 3476kb
input:
10000 20 1 1 1 1 1 1 1 6 1 7 1 7 8 17 9 6 4 4 12 1 20 10 1 1 1 1 1 8 1 1 1 1 6 1 1 11 18 16 17 1 5 20 8 1 8 4 18 1 8 1 15 1 13 1 3 7 7 20 1 1 18 6 20 1 12 1 1 2 1 1 1 1 1 1 4 1 1 20 1 4 1 1 4 20 1 1 11 13 9 6 1 16 1 1 1 1 1 6 20 1 1 19 19 4 20 17 1 8 6 1 4 1 1 9 14 1 8 1 20 17 1 14 1 6 2 20 1 1 7 1 ...
output:
40447 51199 33727 147455 38399 34431 75775 44031 43519 39935 53247 47103 61439 71423 43007 38399 35839 38399 34431 39423 51199 65535 65535 39423 33919 43007 35455 76799 36607 69631 34303 33919 34815 39423 34943 40447 83967 44031 53247 43007 43007 61439 43007 38911 34239 43007 38399 36351 146431 3942...
result:
ok 10000 numbers
Test #9:
score: 0
Accepted
time: 73ms
memory: 21936kb
input:
1 200000 337 89 53250 295 11 52707 208 194232 272 48579 42662 7 134511 375 126116 204 203 23 154649 257 47442 219 122 626 133238 12761 125572 240 1746 264 83473 165545 386 85154 420 736 36400 91303 71984 140 103 2 83438 163 678 67336 130520 464 155504 202 393 758 28195 257 137 165 469 178634 385 265...
output:
399453367
result:
ok 1 number(s): "399453367"
Test #10:
score: 0
Accepted
time: 84ms
memory: 21936kb
input:
1 199999 334 31415 2 88681 173009 93665 47 392 6 145850 37791 382 96220 160151 28469 52299 139234 144008 168 9690 217 114488 414 5000 113 269 145035 178 177807 248 139 48314 60601 234 67019 20308 17 55 22881 212 72 81873 929 86915 111 185437 178991 657 609 133 39 211 609 219 99908 77856 31177 64 644...
output:
198391398
result:
ok 1 number(s): "198391398"
Test #11:
score: 0
Accepted
time: 79ms
memory: 24588kb
input:
1 200000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100...
output:
797193212
result:
ok 1 number(s): "797193212"
Test #12:
score: 0
Accepted
time: 89ms
memory: 24804kb
input:
1 199999 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100...
output:
883064837
result:
ok 1 number(s): "883064837"
Test #13:
score: 0
Accepted
time: 75ms
memory: 12712kb
input:
2 100000 36897 43 23607 5522 77238 3 36262 218 61672 90359 156 233 87 87100 263 27042 96656 334 31389 12 88845 18919 78780 214 50549 11 22758 1727 22810 6114 182 70041 147 42626 166 84476 25553 44119 82 43747 74160 58 36290 694 147 43135 84111 15 266 503 47753 56 12930 54880 64358 35344 92159 66 224...
output:
839775113 741669021
result:
ok 2 number(s): "839775113 741669021"
Test #14:
score: 0
Accepted
time: 81ms
memory: 21944kb
input:
1 198989 158 85097 186 206 525 575 105386 99561 11794 184 289 19 79753 126796 108148 131374 145483 41597 593 291 14640 159064 73 184628 561 186 72043 96 5323 398 15 13562 70812 99 62 169090 75017 143560 29690 118200 122412 1007 122274 78 51038 10433 59897 244 181 137246 345 26 37 169768 106486 173 4...
output:
457061394
result:
ok 1 number(s): "457061394"
Test #15:
score: 0
Accepted
time: 42ms
memory: 3424kb
input:
200000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
result:
ok 200000 numbers
Test #16:
score: 0
Accepted
time: 26ms
memory: 3536kb
input:
100000 2 2 1 2 2 2 2 2 1 2 2 2 2 1 1 2 2 1 2 2 2 2 1 1 2 2 1 2 2 2 2 2 2 2 1 1 2 2 2 2 1 2 2 1 2 2 2 1 2 1 1 2 2 2 2 2 1 2 1 2 2 2 2 2 2 2 2 1 1 2 2 2 2 1 1 2 2 2 2 2 2 2 2 1 2 2 1 2 1 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 1 2 2 1 2 2 1 2 2 1 2 2 2 2 1 1 2 2 1 2 1 2 2 1 2 2 2 1 2 1 1 2 1 1 2 1 1 2 2 2 2 1 1...
output:
2 3 2 3 3 2 3 3 2 3 3 3 3 2 2 2 3 3 2 2 3 3 3 3 3 3 3 2 2 2 3 3 2 3 2 2 2 2 3 3 2 2 2 2 3 3 3 3 3 2 2 2 3 2 2 2 3 3 2 3 2 3 2 3 2 3 3 3 3 2 3 3 2 2 3 2 3 3 2 2 3 3 3 2 2 2 2 2 2 2 3 2 3 3 2 3 3 3 2 2 2 3 3 2 2 3 2 3 2 2 3 2 3 2 2 2 3 3 2 3 2 2 3 3 2 3 2 3 3 3 3 3 2 3 3 3 3 3 3 3 2 2 3 2 3 3 3 3 3 3 ...
result:
ok 100000 numbers
Test #17:
score: 0
Accepted
time: 27ms
memory: 3444kb
input:
6666 30 10 8 8 27 24 19 10 4 24 18 16 20 10 2 9 25 12 19 26 1 9 1 26 11 21 16 9 20 20 30 30 29 4 10 4 26 8 16 9 6 2 19 28 16 29 27 16 22 4 12 7 5 24 14 23 5 19 30 17 9 28 30 24 2 29 9 22 7 27 9 13 7 28 2 15 27 3 8 1 1 28 14 26 24 2 1 17 8 20 26 13 2 30 2 12 9 11 22 1 4 6 16 7 7 12 13 21 2 1 18 27 6 ...
output:
33554553 33554509 33555227 33554999 33554517 33554687 33554520 33554531 33554489 33554571 33554518 33554496 33554691 33554477 33554467 33554488 33554536 33554467 33554531 33554479 33554529 33554494 33554470 33554485 33554543 33554547 33554488 33554493 33554581 33554549 33554491 33554492 33554979 335...
result:
ok 6666 numbers
Test #18:
score: 0
Accepted
time: 29ms
memory: 3412kb
input:
5555 36 12 32 36 14 18 30 6 4 13 21 23 10 15 17 11 25 9 7 21 20 7 3 2 6 29 17 18 32 21 30 6 16 14 30 7 27 36 6 5 34 8 26 14 6 15 13 33 33 32 8 23 19 33 9 29 18 3 11 13 16 33 28 29 28 12 19 21 29 1 14 9 1 34 36 10 13 7 14 18 27 14 32 7 21 1 20 7 8 9 30 25 2 1 9 26 17 21 24 4 26 14 13 14 34 12 33 29 2...
output:
75497600 75497568 75498054 75497552 75497641 75497514 75497750 150995104 75497651 75497946 75497591 75497561 75497603 75497560 75497628 75497815 75497939 75497538 75497566 75497570 75497594 75497746 75499606 75497562 75497565 75497567 75497679 75497534 75498086 75498108 75497525 75497758 75497538 75...
result:
ok 5555 numbers
Test #19:
score: 0
Accepted
time: 33ms
memory: 3488kb
input:
4000 50 14 20 49 42 22 44 19 13 23 48 20 21 38 48 42 14 39 24 32 21 35 46 48 10 42 39 28 41 31 49 32 45 18 4 3 46 47 6 19 33 33 31 3 16 19 48 41 44 26 27 50 14 46 12 2 1 21 41 34 32 31 14 33 19 17 45 31 4 1 36 37 50 21 42 24 41 9 23 35 7 31 49 29 39 32 12 6 40 22 44 1 36 21 16 41 44 47 9 14 49 38 50...
output:
125811603 125811972 125812936 125811577 125811789 125811893 125811625 125811637 125811941 125811610 125811700 125811767 125812392 125811748 125811626 125811563 125811735 125812528 125811648 125811614 125811630 125812036 125811784 125811595 125812218 125811762 125811736 125811669 125811646 125811578 ...
result:
ok 4000 numbers
Test #20:
score: 0
Accepted
time: 26ms
memory: 3444kb
input:
66666 3 1 1 1 3 2 1 1 3 3 1 1 3 1 2 1 3 2 2 1 3 3 2 1 3 1 3 1 3 2 3 1 3 3 3 1 3 1 1 2 3 2 1 2 3 3 1 2 3 1 2 2 3 2 2 2 3 3 2 2 3 1 3 2 3 2 3 2 3 3 3 2 3 1 1 3 3 2 1 3 3 3 1 3 3 1 2 3 3 2 2 3 3 3 2 3 3 1 3 3 3 2 3 3 3 3 3 3 3 1 1 1 3 2 1 1 3 3 1 1 3 1 2 1 3 2 2 1 3 3 2 1 3 1 3 1 3 2 3 1 3 3 3 1 3 1 1 ...
output:
7 5 5 5 4 4 5 4 4 5 4 4 4 7 4 4 4 4 5 4 4 4 4 4 4 4 7 7 5 5 5 4 4 5 4 4 5 4 4 4 7 4 4 4 4 5 4 4 4 4 4 4 4 7 7 5 5 5 4 4 5 4 4 5 4 4 4 7 4 4 4 4 5 4 4 4 4 4 4 4 7 7 5 5 5 4 4 5 4 4 5 4 4 4 7 4 4 4 4 5 4 4 4 4 4 4 4 7 7 5 5 5 4 4 5 4 4 5 4 4 4 7 4 4 4 4 5 4 4 4 4 4 4 4 7 7 5 5 5 4 4 5 4 4 5 4 4 4 7 4 ...
result:
ok 66666 numbers
Test #21:
score: 0
Accepted
time: 23ms
memory: 3508kb
input:
50000 4 1 1 1 1 4 2 1 1 1 4 3 1 1 1 4 4 1 1 1 4 1 2 1 1 4 2 2 1 1 4 3 2 1 1 4 4 2 1 1 4 1 3 1 1 4 2 3 1 1 4 3 3 1 1 4 4 3 1 1 4 1 4 1 1 4 2 4 1 1 4 3 4 1 1 4 4 4 1 1 4 1 1 2 1 4 2 1 2 1 4 3 1 2 1 4 4 1 2 1 4 1 2 2 1 4 2 2 2 1 4 3 2 2 1 4 4 2 2 1 4 1 3 2 1 4 2 3 2 1 4 3 3 2 1 4 4 3 2 1 4 1 4 2 1 4 2 ...
output:
15 11 11 11 11 9 9 7 11 9 9 7 11 7 7 9 11 9 9 7 9 8 7 6 9 7 7 5 7 6 5 5 11 9 9 7 9 7 7 5 9 7 8 5 7 5 5 5 11 7 7 9 7 6 5 5 7 5 5 5 9 5 5 8 11 9 9 7 9 8 7 6 9 7 7 5 7 6 5 5 9 8 7 6 8 15 8 11 7 8 7 6 6 11 6 9 9 7 7 5 7 8 7 6 7 7 8 5 5 6 5 5 7 6 5 5 6 11 6 9 5 6 5 5 5 9 5 8 11 9 9 7 9 7 7 5 9 7 8 5 7 5 ...
result:
ok 50000 numbers
Test #22:
score: 0
Accepted
time: 23ms
memory: 3412kb
input:
40000 5 1 1 1 1 1 5 2 1 1 1 1 5 3 1 1 1 1 5 4 1 1 1 1 5 5 1 1 1 1 5 1 2 1 1 1 5 2 2 1 1 1 5 3 2 1 1 1 5 4 2 1 1 1 5 5 2 1 1 1 5 1 3 1 1 1 5 2 3 1 1 1 5 3 3 1 1 1 5 4 3 1 1 1 5 5 3 1 1 1 5 1 4 1 1 1 5 2 4 1 1 1 5 3 4 1 1 1 5 4 4 1 1 1 5 5 4 1 1 1 5 1 5 1 1 1 5 2 5 1 1 1 5 3 5 1 1 1 5 4 5 1 1 1 5 5 5 ...
output:
31 23 23 23 23 23 19 19 15 15 23 19 19 15 15 23 15 15 19 19 23 15 15 19 19 23 19 19 15 15 19 17 15 13 11 19 15 15 11 11 15 13 11 11 11 15 11 11 11 11 23 19 19 15 15 19 15 15 11 11 19 15 17 11 11 15 11 11 11 11 15 11 11 11 11 23 15 15 19 19 15 13 11 11 11 15 11 11 11 11 19 11 11 17 15 19 11 11 15 15 ...
result:
ok 40000 numbers
Test #23:
score: 0
Accepted
time: 23ms
memory: 3484kb
input:
33333 6 1 1 1 1 1 1 6 2 1 1 1 1 1 6 3 1 1 1 1 1 6 4 1 1 1 1 1 6 5 1 1 1 1 1 6 6 1 1 1 1 1 6 1 2 1 1 1 1 6 2 2 1 1 1 1 6 3 2 1 1 1 1 6 4 2 1 1 1 1 6 5 2 1 1 1 1 6 6 2 1 1 1 1 6 1 3 1 1 1 1 6 2 3 1 1 1 1 6 3 3 1 1 1 1 6 4 3 1 1 1 1 6 5 3 1 1 1 1 6 6 3 1 1 1 1 6 1 4 1 1 1 1 6 2 4 1 1 1 1 6 3 4 1 1 1 1 ...
output:
63 47 47 47 47 47 47 39 39 31 31 31 47 39 39 31 31 31 47 31 31 39 39 31 47 31 31 39 39 31 47 31 31 31 31 39 47 39 39 31 31 31 39 35 31 27 23 27 39 31 31 23 23 27 31 27 23 23 23 23 31 23 23 23 23 23 31 27 27 23 23 23 47 39 39 31 31 31 39 31 31 23 23 27 39 31 35 23 23 27 31 23 23 23 23 23 31 23 23 23 ...
result:
ok 33333 numbers
Test #24:
score: 0
Accepted
time: 22ms
memory: 3528kb
input:
28571 7 1 1 1 1 1 1 1 7 2 1 1 1 1 1 1 7 3 1 1 1 1 1 1 7 4 1 1 1 1 1 1 7 5 1 1 1 1 1 1 7 6 1 1 1 1 1 1 7 7 1 1 1 1 1 1 7 1 2 1 1 1 1 1 7 2 2 1 1 1 1 1 7 3 2 1 1 1 1 1 7 4 2 1 1 1 1 1 7 5 2 1 1 1 1 1 7 6 2 1 1 1 1 1 7 7 2 1 1 1 1 1 7 1 3 1 1 1 1 1 7 2 3 1 1 1 1 1 7 3 3 1 1 1 1 1 7 4 3 1 1 1 1 1 7 5 3 ...
output:
127 95 95 95 95 95 95 95 79 79 63 63 63 63 95 79 79 63 63 63 63 95 63 63 79 79 63 63 95 63 63 79 79 63 63 95 63 63 63 63 79 79 95 63 63 63 63 79 79 95 79 79 63 63 63 63 79 71 63 55 47 55 47 79 63 63 47 47 55 47 63 55 47 47 47 47 47 63 47 47 47 47 47 47 63 55 55 47 47 47 47 63 47 47 47 47 47 47 95 79...
result:
ok 28571 numbers
Test #25:
score: 0
Accepted
time: 21ms
memory: 3416kb
input:
20000 10 1 1 1 1 1 1 1 1 1 1 10 2 1 1 1 1 1 1 1 1 1 10 3 1 1 1 1 1 1 1 1 1 10 4 1 1 1 1 1 1 1 1 1 10 5 1 1 1 1 1 1 1 1 1 10 6 1 1 1 1 1 1 1 1 1 10 7 1 1 1 1 1 1 1 1 1 10 8 1 1 1 1 1 1 1 1 1 10 9 1 1 1 1 1 1 1 1 1 10 10 1 1 1 1 1 1 1 1 1 10 1 2 1 1 1 1 1 1 1 1 10 2 2 1 1 1 1 1 1 1 1 10 3 2 1 1 1 1 1 ...
output:
1023 767 767 767 767 767 767 767 767 767 767 639 639 511 511 511 511 511 511 511 767 639 639 511 511 511 511 511 511 511 767 511 511 639 639 511 511 511 511 511 767 511 511 639 639 511 511 511 511 511 767 511 511 511 511 639 639 511 511 511 767 511 511 511 511 639 639 511 511 511 767 511 511 511 511...
result:
ok 20000 numbers
Test #26:
score: 0
Accepted
time: 21ms
memory: 3476kb
input:
16666 12 1 1 1 1 1 1 1 1 1 1 1 1 12 2 1 1 1 1 1 1 1 1 1 1 1 12 3 1 1 1 1 1 1 1 1 1 1 1 12 4 1 1 1 1 1 1 1 1 1 1 1 12 5 1 1 1 1 1 1 1 1 1 1 1 12 6 1 1 1 1 1 1 1 1 1 1 1 12 7 1 1 1 1 1 1 1 1 1 1 1 12 8 1 1 1 1 1 1 1 1 1 1 1 12 9 1 1 1 1 1 1 1 1 1 1 1 12 10 1 1 1 1 1 1 1 1 1 1 1 12 11 1 1 1 1 1 1 1 1 1...
output:
4095 3071 3071 3071 3071 3071 3071 3071 3071 3071 3071 3071 3071 2559 2559 2047 2047 2047 2047 2047 2047 2047 2047 2047 3071 2559 2559 2047 2047 2047 2047 2047 2047 2047 2047 2047 3071 2047 2047 2559 2559 2047 2047 2047 2047 2047 2047 2047 3071 2047 2047 2559 2559 2047 2047 2047 2047 2047 2047 2047 ...
result:
ok 16666 numbers
Test #27:
score: 0
Accepted
time: 19ms
memory: 3424kb
input:
15384 13 1 1 1 1 1 1 1 1 1 1 1 1 1 13 2 1 1 1 1 1 1 1 1 1 1 1 1 13 3 1 1 1 1 1 1 1 1 1 1 1 1 13 4 1 1 1 1 1 1 1 1 1 1 1 1 13 5 1 1 1 1 1 1 1 1 1 1 1 1 13 6 1 1 1 1 1 1 1 1 1 1 1 1 13 7 1 1 1 1 1 1 1 1 1 1 1 1 13 8 1 1 1 1 1 1 1 1 1 1 1 1 13 9 1 1 1 1 1 1 1 1 1 1 1 1 13 10 1 1 1 1 1 1 1 1 1 1 1 1 13 ...
output:
8191 6143 6143 6143 6143 6143 6143 6143 6143 6143 6143 6143 6143 6143 5119 5119 4095 4095 4095 4095 4095 4095 4095 4095 4095 4095 6143 5119 5119 4095 4095 4095 4095 4095 4095 4095 4095 4095 4095 6143 4095 4095 5119 5119 4095 4095 4095 4095 4095 4095 4095 4095 6143 4095 4095 5119 5119 4095 4095 4095 ...
result:
ok 15384 numbers
Test #28:
score: 0
Accepted
time: 19ms
memory: 3500kb
input:
13333 15 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 15 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 15 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 15 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 15 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 15 6 1 1 1 1 1 1 1 1 1 1 1 1 1 1 15 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 15 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 15 9 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
32767 24575 24575 24575 24575 24575 24575 24575 24575 24575 24575 24575 24575 24575 24575 24575 20479 20479 16383 16383 16383 16383 16383 16383 16383 16383 16383 16383 16383 16383 24575 20479 20479 16383 16383 16383 16383 16383 16383 16383 16383 16383 16383 16383 16383 24575 16383 16383 20479 20479 ...
result:
ok 13333 numbers
Test #29:
score: 0
Accepted
time: 18ms
memory: 3484kb
input:
11764 17 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 17 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 17 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 17 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 17 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 17 6 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 17 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 17 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...
output:
131071 98303 98303 98303 98303 98303 98303 98303 98303 98303 98303 98303 98303 98303 98303 98303 98303 98303 81919 81919 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 98303 81919 81919 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535 65535...
result:
ok 11764 numbers
Test #30:
score: 0
Accepted
time: 18ms
memory: 3444kb
input:
11111 18 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 18 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 18 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 18 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 18 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 18 6 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 18 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 18 8 1 1 1 1 1 1 1 1 ...
output:
262143 196607 196607 196607 196607 196607 196607 196607 196607 196607 196607 196607 196607 196607 196607 196607 196607 196607 196607 163839 163839 131071 131071 131071 131071 131071 131071 131071 131071 131071 131071 131071 131071 131071 131071 131071 196607 163839 163839 131071 131071 131071 131071...
result:
ok 11111 numbers
Test #31:
score: 0
Accepted
time: 18ms
memory: 3504kb
input:
10000 20 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 20 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 20 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 20 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 20 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 20 6 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 20 7 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
1048575 786431 786431 786431 786431 786431 786431 786431 786431 786431 786431 786431 786431 786431 786431 786431 786431 786431 786431 786431 786431 655359 655359 524287 524287 524287 524287 524287 524287 524287 524287 524287 524287 524287 524287 524287 524287 524287 524287 524287 786431 655359 65535...
result:
ok 10000 numbers
Extra Test:
score: 0
Extra Test Passed