QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#791017#997. 2-SAT 问题XY_ElevenAC ✓78ms18316kbC++204.6kb2024-11-28 16:28:162024-11-28 16:28:23

Judging History

你现在查看的是最新测评结果

  • [2024-11-28 16:28:23]
  • 评测
  • 测评结果:AC
  • 用时:78ms
  • 内存:18316kb
  • [2024-11-28 16:28:16]
  • 提交

answer

#include <bits/stdc++.h>
// #include <windows.h>
#include <bits/extc++.h>
using namespace __gnu_pbds;
using namespace std;
//#pragma GCC optimize(3)
#define DB long double
#define LL long long
#define ULL unsigned long long
#define in128 __int128
#define cint const int
#define cLL const LL
#define For(z,e1,e2) for(int z=(e1);z<=(e2);z++)
#define Rof(z,e1,e2) for(int z=(e2);z>=(e1);z--)
#define For_(z,e1,e2) for(int z=(e1);z<(e2);z++)
#define Rof_(z,e1,e2) for(int z=(e2);z>(e1);z--)
#define inint(e) scanf("%d",&e)
#define inll(e) scanf("%lld",&e)
#define inpr(e1,e2) scanf("%d%d",&e1,&e2)
#define in3(e1,e2,e3) scanf("%d%d%d",&e1,&e2,&e3)
#define outint(e) printf("%d\n",e)
#define outint_(e) printf("%d%c",e," \n"[i==n])
#define outint2_(e,e1,e2) printf("%d%c",e," \n"[(e1)==(e2)])
#define outll(e) printf("%lld\n",e)
#define outll_(e) printf("%lld%c",e," \n"[i==n])
#define outll2_(e,e1,e2) printf("%lld%c",e," \n"[(e1)==(e2)])
#define exc(e) if(e) continue
#define stop(e) if(e) break
#define ret(e) if(e) return
#define ll(e) (1ll*(e))
#define pb push_back
#define ft first
#define sc second
#define pii pair<int,int> 
#define pli pair<long long,int> 
#define vct vector 
#define clean(e) while(!e.empty()) e.pop()
#define all(ev) ev.begin(),ev.end()
#define sz(ev) ((int)ev.size())
#define debug(x) printf("%s=%d\n",#x,x)
#define x0 __xx00__
#define y1 __yy11__
#define ffo fflush(stdout)
cLL mod=998244353,G=404;
// cLL mod[2]={1686688681ll,1666888681ll},base[2]={166686661ll,188868881ll};
template <typename Type> void get_min(Type &w1,const Type w2) { if(w2<w1) w1=w2; } template <typename Type> void get_max(Type &w1,const Type w2) { if(w2>w1) w1=w2; }
template <typename Type> Type up_div(Type w1,Type w2) { return (w1/w2+(w1%w2?1:0)); }
template <typename Type> Type gcd(Type X_,Type Y_) { Type R_=X_%Y_; while(R_) { X_=Y_; Y_=R_; R_=X_%Y_; } return Y_; } template <typename Type> Type lcm(Type X_,Type Y_) { return (X_/gcd(X_,Y_)*Y_); }
template <typename Type> Type md(Type w1,const Type w2=mod) { w1%=w2; if(w1<0) w1+=w2; return w1; } template <typename Type> Type md_(Type w1,const Type w2=mod) { w1%=w2; if(w1<=0) w1+=w2; return w1; }
void ex_gcd(LL &X_,LL &Y_,LL A_,LL B_) { if(!B_) { X_=1ll; Y_=0ll; return ; } ex_gcd(Y_,X_,B_,A_%B_); X_=md(X_,B_); Y_=(1ll-X_*A_)/B_; } LL inv(LL A_,LL B_=mod) { LL X_=0ll,Y_=0ll; ex_gcd(X_,Y_,A_,B_); return X_; }
template <typename Type> void add(Type &w1,const Type w2,const Type M_=mod) { w1=md(w1+w2,M_); } void mul(LL &w1,cLL w2,cLL M_=mod) { w1=md(w1*md(w2,M_),M_); } template <typename Type> Type pw(Type X_,Type Y_,Type M_=mod) { Type S_=1; while(Y_) { if(Y_&1) mul(S_,X_,M_); Y_>>=1; mul(X_,X_,M_); } return S_; }
template <typename Type> Type bk(vector <Type> &V_) { auto T_=V_.back(); V_.pop_back(); return T_; } template <typename Type> Type tp(stack <Type> &V_) { auto T_=V_.top(); V_.pop(); return T_; } template <typename Type> Type frt(queue <Type> &V_) { auto T_=V_.front(); V_.pop(); return T_; }
template <typename Type> Type bg(set <Type> &V_) { auto T_=*V_.begin(); V_.erase(V_.begin()); return T_; } template <typename Type> Type bk(set <Type> &V_) { auto T_=*prev(V_.end()); V_.erase(*prev(V_.end())); return T_; }
mt19937 gen(43); int rd() { return abs((int)gen()); }
int rnd(int l,int r) { return rd()%(r-l+1)+l; }
void main_init()
{
    
}
cint N=1.02e5;
int n,m;
vct <int> v[N<<1];
void bld(int x,int y)
{
    v[x].pb(y);
}
int dfn[N<<1],low[N<<1],id;
bool ins[N<<1]; stack <int> st;
int co[N<<1],tot;
void dfs(int p)
{
    dfn[p]=low[p]=++id;
    st.push(p),ins[p]=true;
    for(auto i:v[p])
    {
        if(!dfn[i])
        {
            dfs(i);
            get_min(low[p],low[i]);
        }
        else if(ins[i])
            get_min(low[p],dfn[i]);
    }
    ret(low[p]!=dfn[p]);
    tot++;
    while(true)
    {
        int t=st.top();
        st.pop(),ins[t]=false;
        co[t]=tot;
        stop(t==p);
    }
}
void main_solve()
{
    inpr(n,m);
    while(m--)
    {
        int x,y,lx,ly; inpr(x,lx); inpr(y,ly);
        bld(x<<1|(!lx),y<<1|ly);
        bld(y<<1|(!ly),x<<1|lx);
    }
    id=tot=0;
    For(i,1,n<<1|1) if(!dfn[i])
        dfs(i);
    For(i,1,n) if(co[i<<1]==co[i<<1|1])
    {
        printf("No\n");
        return ;
    }
    printf("Yes\n");
    For(i,1,n) outint_((int)(co[i<<1|1]<co[i<<1]));
}
int main()
{
    // ios::sync_with_stdio(0); cin.tie(0);
    // freopen("in.txt","r",stdin);
    // freopen("out.txt","w",stdout);
    // srand(time(NULL));
    main_init();
    // int _; inint(_); For(__,1,_) // T>1 ?
        // printf("\n------------\n\n"),
        main_solve();
    return 0;
}
/*

*/

詳細信息

Test #1:

score: 100
Accepted
time: 32ms
memory: 13508kb

input:

86354 86418
14615 0 14903 1
13605 0 4458 0
15604 0 77112 0
52311 1 64996 0
22711 1 74245 1
39042 1 57372 1
2994 1 84183 1
80574 0 58791 1
27780 1 9336 1
61809 0 7216 0
71113 0 42287 1
20073 0 72448 0
73840 0 77048 0
28955 0 4165 0
16322 1 14075 1
43512 0 58600 1
45219 0 53858 0
14919 0 22576 0
16594...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #2:

score: 0
Accepted
time: 60ms
memory: 9172kb

input:

17625 186889
17290 0 17616 1
8909 0 15829 0
9807 0 9920 1
14912 0 3052 1
14426 0 16910 1
8910 1 10153 1
5163 1 1118 1
2764 0 2787 1
2998 0 2344 1
17573 1 5693 1
9120 0 4529 1
9836 0 4832 0
4021 0 16206 1
1109 0 13286 1
12402 1 16982 0
6311 1 1218 1
147 0 5411 0
3958 1 1571 0
4848 1 16678 0
7433 1 31...

output:

Yes
1 0 0 1 0 1 1 1 1 1 0 1 1 1 1 0 1 0 0 0 1 0 0 1 0 1 1 1 1 0 0 0 1 1 0 1 1 1 1 0 1 0 0 0 0 1 0 1 0 1 1 1 1 0 1 1 1 1 1 1 0 1 1 0 1 1 0 1 1 1 1 1 0 0 0 0 0 1 0 0 0 1 1 0 0 1 0 1 1 0 0 1 1 1 0 1 0 0 0 0 1 1 1 0 0 1 1 0 1 0 1 0 0 1 1 0 0 1 1 1 1 0 0 0 0 0 0 1 1 1 0 0 1 1 1 1 1 0 0 1 1 0 0 0 1 1 0 1 ...

result:

ok Good plan

Test #3:

score: 0
Accepted
time: 53ms
memory: 10312kb

input:

27276 180666
4575 1 13941 1
23689 1 276 1
8916 1 5504 1
10230 1 19907 1
15820 1 27258 0
18040 0 11405 0
23944 1 23049 1
12183 1 24927 0
26509 1 20881 0
14596 1 766 0
5071 1 10703 0
15926 1 25575 1
15486 1 35 0
11290 1 26937 0
3475 0 20672 1
10309 0 22343 1
22873 0 21025 0
14802 1 22377 0
7701 1 1185...

output:

Yes
0 1 0 0 0 0 1 1 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 1 0 1 1 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 0 0 0 1 1 1 1 0 0 1 0 0 1 0 0 1 1 1 0 1 1 1 0 1 1 0 0 1 0 1 1 1 1 0 0 1 1 0 0 0 1 1 1 0 1 0 0 0 1 0 0 0 0 0 0 1 1 1 0 0 0 1 1 0 1 0 0 0 1 1 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 1 1 ...

result:

ok Good plan

Test #4:

score: 0
Accepted
time: 36ms
memory: 11840kb

input:

70213 93094
53616 1 59247 1
16687 0 63568 0
10114 1 55521 1
58830 1 22082 0
46298 0 65072 0
2622 1 16071 0
66725 0 46161 1
4204 1 7255 0
39103 1 19710 1
33819 1 19406 0
24055 1 6494 1
45844 0 59888 0
63714 1 30868 0
12762 0 43441 0
59330 1 35278 0
2212 0 1284 0
45959 1 17786 1
17744 0 66761 1
54970 ...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #5:

score: 0
Accepted
time: 68ms
memory: 18316kb

input:

66484 178501
3057 1 32192 1
19941 0 37367 1
56292 0 54533 0
20407 1 27938 1
28653 1 37219 1
64377 0 63482 0
25218 0 12814 1
29736 0 34360 0
61150 0 38346 1
1116 0 56594 0
7410 1 58121 1
41370 0 36704 0
23807 1 60815 1
63396 0 55650 1
26564 1 5193 0
65150 1 27578 0
13215 0 5871 0
56406 1 63683 0
1321...

output:

No

result:

ok No Solution

Test #6:

score: 0
Accepted
time: 43ms
memory: 9568kb

input:

9650 160962
4804 1 3956 0
4557 0 7207 1
4157 1 7867 0
1045 0 5033 0
8623 0 5770 1
4090 1 3088 1
2846 0 8117 1
4827 1 474 0
2822 0 4035 1
2245 1 4894 0
5093 0 8553 1
9160 1 641 1
5302 1 7701 1
4246 0 718 0
2096 1 2709 1
4288 0 850 1
4262 0 1309 0
2713 1 286 0
7228 1 5945 1
7481 0 770 1
1617 1 4784 1
...

output:

Yes
1 1 0 0 1 0 1 0 0 1 1 1 1 1 0 0 0 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 0 1 0 1 0 0 0 1 0 0 1 1 1 0 1 0 1 0 1 0 0 1 1 0 0 1 1 1 1 1 1 0 0 1 0 0 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 0 1 1 1 1 1 0 1 1 1 0 1 0 0 0 1 0 1 0 1 0 0 0 1 1 1 0 0 1 1 0 0 1 1 0 1 1 1 1 1 1 1 0 0 1 0 0 1 1 1 1 0 1 0 0 0 0 1 0 0 0 0 1 1 1 ...

result:

ok Good plan

Test #7:

score: 0
Accepted
time: 63ms
memory: 14232kb

input:

82878 170546
59669 0 52924 1
4674 1 27496 0
81463 1 82234 0
22606 0 30346 1
70787 1 16429 0
46983 0 80599 0
82208 0 51421 1
31035 0 74680 0
48903 1 55211 1
46935 1 76651 1
78465 0 18656 0
55607 1 13210 1
14749 1 25929 0
69893 1 23187 1
8840 0 5696 1
30898 1 14164 0
55439 1 68798 0
29324 1 6831 1
103...

output:

Yes
0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 1 1 0 1 1 0 0 0 1 1 1 0 0 1 1 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 1 0 1 0 1 0 0 ...

result:

ok Good plan

Test #8:

score: 0
Accepted
time: 34ms
memory: 11792kb

input:

22849 108511
22633 1 9868 1
1838 0 11979 0
16493 0 14662 1
4359 1 14080 1
1440 0 15825 1
1248 0 10522 0
5832 0 2369 0
16359 0 21931 1
4219 1 11059 1
17857 1 15021 0
527 0 12410 1
3606 1 11872 1
16771 1 695 0
21988 1 314 0
4674 1 18090 0
5861 1 21034 1
4147 1 7422 0
6607 1 9159 0
20501 1 16673 1
2152...

output:

No

result:

ok No Solution

Test #9:

score: 0
Accepted
time: 61ms
memory: 10304kb

input:

29366 167993
17695 1 9514 0
14236 0 9220 0
25155 0 5701 0
19605 0 26072 0
14919 1 9254 0
10628 0 11786 0
27612 1 25759 0
10256 1 7615 1
67 1 23478 0
17423 0 2671 0
22262 1 13960 0
13269 1 27431 0
13753 0 22134 0
22823 1 1997 1
24737 1 20863 1
6278 0 16541 0
4130 1 16469 0
29271 0 14263 1
21310 1 225...

output:

Yes
1 0 1 0 1 1 1 0 0 1 0 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 0 1 1 1 0 0 1 1 1 1 1 1 0 0 1 0 0 1 0 0 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 1 1 1 1 0 0 0 1 0 1 1 1 0 1 0 1 1 0 0 1 1 0 1 1 1 0 1 0 0 1 0 0 0 0 1 0 1 1 1 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 0 1 1 0 1 0 1 0 1 0 0 0 0 0 0 1 1 1 1 1 1 0 1 1 0 1 1 1 0 0 0 ...

result:

ok Good plan

Test #10:

score: 0
Accepted
time: 36ms
memory: 8532kb

input:

1682 170188
916 0 1392 1
1635 1 1351 0
357 0 243 0
1225 0 254 1
266 0 1215 1
36 0 730 1
1544 0 526 0
316 1 1633 0
356 1 1231 0
940 0 1121 0
875 1 933 1
625 1 1241 1
1654 1 890 0
558 1 137 0
192 1 1131 0
1420 0 361 0
1507 1 739 1
1092 0 1090 0
1539 0 314 0
267 0 1152 1
1175 0 383 0
1585 1 1349 1
516 ...

output:

Yes
1 0 0 0 0 0 1 0 1 0 0 1 0 1 1 1 0 0 0 1 0 0 0 0 0 1 1 1 1 1 1 1 0 0 1 0 0 0 1 0 0 0 1 1 0 1 1 1 1 1 1 1 0 0 0 0 1 0 1 0 1 0 0 0 1 1 1 1 0 1 0 1 1 0 0 0 0 0 0 1 1 0 1 1 0 0 0 1 1 1 0 0 0 1 1 1 1 1 0 0 1 0 0 0 1 0 1 1 0 0 0 0 0 1 1 0 0 0 1 0 1 1 1 1 0 0 1 1 1 1 1 0 1 0 1 1 1 0 1 0 1 0 1 1 1 0 1 1 ...

result:

ok Good plan

Test #11:

score: 0
Accepted
time: 28ms
memory: 6372kb

input:

7196 105048
2859 0 287 1
689 0 3417 1
3339 1 5290 1
5024 1 386 0
1640 0 1248 1
3055 0 3501 1
6028 1 5555 0
5646 1 496 1
4043 0 2944 0
873 1 4251 1
4797 1 1369 0
198 1 6382 0
3985 1 4455 1
4165 1 7099 0
5910 1 6402 1
3784 0 5072 1
5727 0 5485 0
2384 0 1394 1
74 1 6712 0
7153 1 471 1
5020 1 3669 0
425...

output:

Yes
1 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 1 1 0 0 0 0 1 1 0 0 0 0 0 1 1 1 0 0 0 1 1 1 1 1 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 1 1 1 0 1 0 1 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 1 1 0 1 1 0 0 1 1 0 0 0 0 0 1 1 1 1 0 0 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 1 1 0 0 0 1 0 0 0 0 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 0 0 1 ...

result:

ok Good plan

Test #12:

score: 0
Accepted
time: 24ms
memory: 8196kb

input:

34766 55624
17816 1 18059 1
19359 1 7703 1
12707 1 8183 1
17814 0 4110 0
6119 0 12379 0
17510 0 34439 0
16709 0 22739 1
9555 1 3063 0
7258 0 21772 1
31924 1 4232 0
29692 0 29094 1
13653 1 16895 1
17462 1 27019 0
23572 1 18400 0
5748 0 1302 0
10769 1 15962 0
33973 1 14837 1
29160 0 12055 0
4429 1 114...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #13:

score: 0
Accepted
time: 29ms
memory: 6572kb

input:

5092 137430
2799 1 4966 1
542 1 1484 0
3411 0 1710 1
444 0 811 1
183 0 4372 0
3608 0 4255 0
729 1 2191 0
1917 1 1324 0
858 0 580 0
4222 0 4198 0
1169 0 4526 1
3296 0 1355 1
187 1 2818 0
4284 1 802 1
155 0 925 0
4226 0 1703 0
2990 0 3210 0
1106 0 3759 0
4922 1 1115 1
4740 1 4469 0
493 1 1264 1
1697 1...

output:

Yes
0 1 1 1 1 1 0 1 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0 1 1 0 0 1 0 0 0 1 1 1 0 0 0 1 0 1 0 0 1 1 1 1 0 0 1 0 1 1 1 0 1 1 1 0 1 0 1 1 1 1 1 1 0 0 1 1 1 0 0 1 0 0 1 1 1 0 0 0 1 1 0 1 1 0 1 0 1 1 1 0 1 0 0 0 1 1 1 0 0 1 0 0 1 0 1 1 0 0 0 0 0 1 0 1 1 1 0 0 1 0 0 1 0 0 0 1 0 1 0 1 0 0 1 0 0 1 1 1 0 1 0 0 1 0 ...

result:

ok Good plan

Test #14:

score: 0
Accepted
time: 54ms
memory: 14988kb

input:

99252 104959
94974 1 15504 0
58094 0 8774 1
34526 1 90367 1
91897 1 17003 1
94791 0 20819 1
88290 0 1709 1
38261 1 55494 0
87494 0 59118 1
78954 0 664 0
94268 0 78725 0
26422 0 90161 1
65923 1 11045 0
37446 0 75065 1
59505 1 37830 1
88362 0 4670 1
82177 1 52868 1
72263 1 61602 0
80445 0 47243 0
6121...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #15:

score: 0
Accepted
time: 43ms
memory: 9576kb

input:

40296 111028
37666 0 2212 1
11395 0 38653 1
11819 0 8871 0
13615 1 9629 0
16681 1 38246 0
17062 1 26243 0
34484 0 33388 0
21118 0 15952 0
9391 0 28190 1
38841 1 22721 0
17949 1 28537 1
23998 0 2167 0
18529 0 38047 0
37808 1 28816 0
35241 1 22402 0
22784 0 2297 1
25196 1 8670 0
36433 1 15279 1
1130 0...

output:

Yes
0 1 1 0 0 0 0 1 0 0 0 0 1 1 0 1 0 0 0 1 0 0 1 1 1 0 1 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 1 0 1 1 1 0 0 0 1 1 1 1 1 0 1 0 0 1 0 1 0 0 1 0 1 1 0 0 0 1 1 0 0 0 0 1 1 1 1 1 0 1 0 1 1 0 1 0 1 0 0 1 1 1 0 0 1 1 0 0 0 0 1 0 0 0 1 0 1 1 1 1 0 1 1 0 0 0 0 1 0 1 0 1 1 1 1 0 1 0 1 1 1 0 1 0 0 0 1 0 0 0 0 ...

result:

ok Good plan

Test #16:

score: 0
Accepted
time: 57ms
memory: 14848kb

input:

92878 130583
2583 0 59729 1
85821 0 58252 1
53911 0 17767 1
26714 0 35804 1
15922 0 2072 0
75557 0 50848 0
90087 0 6297 0
4452 1 78035 0
2685 1 77616 0
47898 0 62183 0
69458 0 84245 0
33397 0 32662 0
74382 0 34515 1
89011 0 46016 1
12618 1 26596 1
59925 1 24264 0
45648 0 26222 0
13023 0 19083 1
3433...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #17:

score: 0
Accepted
time: 72ms
memory: 12412kb

input:

48141 196323
32751 1 42687 1
4125 0 15596 1
606 1 43075 0
1841 0 30134 1
42601 1 30544 0
11839 1 3441 1
21547 1 39174 0
9434 0 29547 0
2925 0 19007 0
9003 0 45620 0
38248 0 48067 1
40510 1 16017 1
33022 1 25302 0
2547 0 10595 1
18810 0 23374 1
35005 1 6479 1
44333 1 39743 1
47531 1 29607 1
17381 0 1...

output:

Yes
0 1 0 1 0 0 1 0 1 1 1 0 1 1 1 0 1 0 1 1 1 0 0 1 0 1 0 1 1 0 0 0 0 1 0 1 0 1 1 0 0 0 1 0 0 1 0 1 1 1 1 0 1 1 0 1 1 1 0 1 1 0 1 0 1 0 0 0 1 0 1 0 0 1 0 1 0 0 1 1 0 0 0 1 1 1 0 1 1 0 1 0 1 0 1 0 0 1 1 1 1 0 1 1 1 0 0 1 1 1 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 1 1 1 1 0 0 0 1 1 0 1 0 1 1 1 1 0 1 1 1 0 1 1 ...

result:

ok Good plan

Test #18:

score: 0
Accepted
time: 67ms
memory: 15588kb

input:

98824 152442
89196 0 24768 0
26301 1 97460 1
56004 1 57742 0
6046 1 53060 0
40053 1 48477 0
16132 0 76397 0
34551 1 88548 0
3622 0 60598 0
37403 1 64570 1
76957 0 11365 0
14077 1 8907 1
78209 1 17994 1
79720 1 70492 1
87573 0 20675 1
593 1 764 0
52653 0 81690 1
25826 0 12820 0
20072 0 21127 0
54256 ...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #19:

score: 0
Accepted
time: 34ms
memory: 9152kb

input:

40538 95720
513 0 4106 0
5662 0 2491 1
24406 0 18066 1
37034 0 18529 0
3074 0 40294 1
35959 0 32310 0
31276 0 20719 0
29421 0 33716 0
3131 0 17239 0
4684 1 21184 0
4907 1 3113 0
17445 1 30012 1
1238 0 38330 0
26476 1 9595 1
37525 0 23627 0
26877 1 36268 1
20410 1 23686 1
33524 0 17975 1
27291 0 3691...

output:

Yes
0 0 0 0 0 0 1 1 1 1 0 1 0 0 0 1 0 1 1 1 0 0 1 1 0 1 0 0 1 1 1 0 1 0 1 1 1 0 0 0 0 0 0 1 1 1 0 1 0 1 1 1 0 1 1 0 0 1 1 0 1 0 0 0 1 1 1 1 0 1 1 0 1 0 1 0 1 1 0 1 1 1 1 0 0 1 0 0 0 0 1 0 0 1 0 1 1 0 0 0 0 0 1 1 0 1 0 0 0 0 1 0 1 1 0 0 1 0 1 1 1 0 1 1 0 1 0 1 1 1 0 1 0 0 1 0 0 1 0 1 0 1 0 0 1 1 1 0 ...

result:

ok Good plan

Test #20:

score: 0
Accepted
time: 57ms
memory: 10164kb

input:

27562 175398
19666 1 20049 0
7156 0 23482 0
6924 1 6428 0
21135 0 21772 0
18765 1 1042 0
23624 0 23263 0
15434 1 23464 0
7097 0 8916 1
6713 1 13182 1
1822 0 597 0
17635 1 20174 1
7737 1 23600 1
1099 0 3629 1
22991 1 9350 1
9548 0 24824 0
16212 0 22676 1
19541 1 6033 0
11968 1 16635 0
14737 1 24178 0...

output:

Yes
1 1 0 1 1 1 1 0 1 0 0 1 0 0 0 0 1 1 0 1 1 0 0 1 1 1 1 1 1 0 0 1 0 1 1 1 0 1 1 1 1 1 0 1 0 1 1 1 0 0 1 0 1 0 1 1 0 1 1 0 1 1 0 1 1 0 0 0 0 0 1 0 1 0 1 0 1 1 1 1 0 1 1 1 1 1 1 1 0 0 1 1 1 1 0 1 0 1 1 0 0 1 1 1 1 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 1 1 0 1 1 1 1 0 1 0 1 1 ...

result:

ok Good plan

Test #21:

score: 0
Accepted
time: 50ms
memory: 12092kb

input:

58189 128656
56943 0 36725 1
7047 1 34831 1
10440 1 30138 0
25725 1 45528 1
31809 0 48830 1
23001 1 18303 1
15112 0 18872 1
32552 0 15299 0
4056 1 45551 0
45193 1 53342 0
25262 1 14330 1
15127 0 9351 0
24215 0 57814 0
7788 1 41714 1
7665 1 41641 0
19285 1 14053 1
43863 0 29771 0
42227 1 49964 0
1012...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 1 1 0 1 0 1 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 1 1 1 0 1 1 0 1 1 1 0 0 0 0 1 0 0 0 1 0 0 1 0 0 0 1 1 0 0 1 0 1 0 0 0 0 0 1 1 0 1 0 0 0 0 0 1 1 0 1 0 0 1 0 0 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 0 ...

result:

ok Good plan

Test #22:

score: 0
Accepted
time: 35ms
memory: 13140kb

input:

80979 108868
23585 1 75369 1
32072 1 32409 1
35478 1 43154 0
63944 0 39515 0
24812 0 64049 0
57607 0 51475 0
53454 1 30060 0
25716 1 77227 0
67258 0 23222 1
51689 0 6109 1
68676 0 13867 0
13015 0 8513 0
2783 1 11662 0
61761 1 26445 0
32173 0 47162 0
12047 0 61342 0
33440 0 27945 1
44387 1 10025 1
78...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #23:

score: 0
Accepted
time: 78ms
memory: 14856kb

input:

72865 195389
10303 0 18260 1
31240 1 16493 0
52545 0 39657 1
61912 0 55281 0
70455 0 13770 0
72547 0 9211 0
54432 1 55131 0
65702 0 45945 1
49224 0 63538 0
9720 0 69478 1
10135 0 56923 0
21682 1 20249 1
51405 0 11235 1
48699 1 3755 0
7481 1 50028 1
70529 0 50304 0
24391 0 70902 0
35780 0 48466 1
188...

output:

Yes
0 0 1 0 1 0 0 0 0 0 0 1 0 1 0 0 1 0 1 1 1 0 1 1 1 1 1 0 1 0 1 1 1 0 1 0 0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 1 1 1 1 1 0 0 1 1 0 0 0 1 1 0 1 1 1 1 1 0 0 0 1 1 0 1 0 0 0 1 1 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 1 1 0 1 0 0 1 0 0 0 1 0 0 0 1 1 1 0 1 1 1 0 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 1 0 1 1 0 1 1 1 1 0 ...

result:

ok Good plan

Test #24:

score: 0
Accepted
time: 71ms
memory: 14044kb

input:

78095 158730
58578 0 57469 1
5714 0 53189 1
57385 0 30974 0
38098 1 69975 0
21307 1 47962 0
49682 0 73183 1
56635 0 58692 1
21813 1 33407 0
16212 1 7416 1
16382 1 25827 1
28025 0 53089 0
38678 0 37511 1
16569 1 42247 0
39327 1 68176 1
76322 0 59459 1
73509 1 13329 1
74354 0 25893 1
43616 0 65378 0
3...

output:

Yes
0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 1 0 ...

result:

ok Good plan

Test #25:

score: 0
Accepted
time: 27ms
memory: 8144kb

input:

6669 101491
3839 1 4980 1
5457 0 5564 1
646 0 4867 0
2906 1 3901 1
5538 0 2248 0
830 1 5468 0
664 0 5179 0
773 1 4491 0
144 0 1182 0
4548 1 4457 1
5172 0 6111 0
1382 0 5257 1
1664 0 178 1
1317 0 3951 1
3863 0 2957 1
2642 1 6364 1
1266 0 6388 0
2863 1 2794 0
6176 0 6479 1
813 0 1916 1
3223 0 3332 1
4...

output:

Yes
0 1 1 1 1 1 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 1 1 0 1 0 1 0 1 0 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 0 1 0 0 1 1 1 0 0 0 1 0 1 0 1 1 1 0 0 1 0 1 1 0 1 0 0 0 1 0 0 1 1 0 1 0 1 1 0 0 0 1 0 0 1 0 0 1 1 0 0 1 0 0 1 0 0 0 0 1 1 0 1 1 0 0 0 1 1 1 0 1 1 1 0 1 0 0 0 1 1 0 ...

result:

ok Good plan

Test #26:

score: 0
Accepted
time: 66ms
memory: 14100kb

input:

79117 160549
76671 0 58639 0
15114 0 38236 0
12203 0 4550 0
30820 0 8794 1
42542 1 55557 0
33064 0 59334 0
46109 1 37275 1
26799 0 38587 0
18232 0 60406 1
5976 1 67106 1
37222 0 66335 0
66605 1 32215 0
73859 1 73262 0
77736 1 29993 0
26731 1 58406 1
27614 0 40828 0
24255 1 15310 1
42996 1 16631 1
17...

output:

Yes
0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 1 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 ...

result:

ok Good plan

Test #27:

score: 0
Accepted
time: 42ms
memory: 6984kb

input:

4583 182336
1629 0 3049 0
3068 0 4279 1
2069 0 3463 1
2718 1 2822 1
3975 0 3674 0
1925 0 919 0
369 1 2915 1
2389 0 3049 1
3642 0 4149 1
1062 1 4547 0
2830 0 3611 1
1684 1 160 1
3288 1 1073 1
104 1 2748 1
3972 1 84 0
2872 0 608 0
1195 1 4176 1
2474 1 2273 1
1349 0 2212 0
773 1 3523 1
3900 0 1160 0
24...

output:

Yes
1 1 0 1 1 1 0 0 1 1 1 1 1 1 1 0 0 1 0 1 0 0 0 0 1 0 1 1 1 0 0 1 1 0 1 1 0 0 0 0 1 0 0 1 1 0 0 0 0 0 1 1 0 0 1 0 0 1 1 1 0 1 0 0 1 1 1 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 1 1 1 1 0 1 0 0 1 1 0 0 1 0 0 1 1 0 0 1 1 1 1 1 0 0 0 1 1 1 1 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 1 1 0 0 1 1 0 1 0 1 0 0 ...

result:

ok Good plan

Test #28:

score: 0
Accepted
time: 12ms
memory: 6968kb

input:

20787 33642
1307 0 3386 0
7784 1 11905 1
3631 1 14408 0
3009 1 4321 1
4826 0 15897 1
18370 1 9539 1
18738 1 18170 0
11396 1 10192 0
1704 1 2467 1
13090 0 15667 1
11415 1 19895 1
19364 1 3988 1
3721 0 16609 1
11448 0 5747 1
16229 1 1989 1
15911 1 15360 1
18766 1 8717 1
1660 1 8907 1
17646 1 2494 0
40...

output:

No

result:

ok No Solution

Test #29:

score: 0
Accepted
time: 33ms
memory: 7336kb

input:

13508 105892
7297 1 8141 0
11470 0 3790 0
2640 1 10031 1
384 0 1972 0
5938 1 13272 0
8974 0 11188 0
4039 1 11094 0
4972 1 4169 1
12317 1 13443 0
459 1 7837 0
8576 0 1302 1
9328 0 9815 1
639 1 2566 0
7178 1 6224 1
235 0 4193 0
5498 0 2342 1
6232 0 3533 0
7192 1 12892 0
13346 1 12251 0
11716 0 240 0
5...

output:

Yes
1 0 1 1 0 1 0 0 0 0 0 1 0 0 1 0 1 0 1 1 0 0 1 1 1 1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 0 1 1 0 1 1 0 1 1 0 1 0 1 1 0 1 0 0 1 0 0 1 1 1 0 0 1 0 0 1 0 0 0 0 0 1 1 0 1 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 1 1 1 1 0 1 ...

result:

ok Good plan

Test #30:

score: 0
Accepted
time: 54ms
memory: 13576kb

input:

44208 134113
5489 0 41981 1
40887 0 20887 1
44022 1 26435 0
35915 0 24771 1
38092 0 38538 0
18371 0 16778 1
15399 1 14264 0
16196 1 1847 0
29281 1 12833 1
30462 1 38267 1
40126 0 5914 1
20318 1 31904 1
12838 0 31476 1
32151 1 9805 0
3236 1 26664 0
20927 0 18281 1
38992 1 13975 0
31053 0 20712 0
3510...

output:

No

result:

ok No Solution

Test #31:

score: 0
Accepted
time: 47ms
memory: 13256kb

input:

80600 102069
80435 1 63579 1
60602 1 68006 1
28353 1 3150 1
65388 0 62632 1
78321 0 10601 1
4551 0 22676 0
73844 0 67261 1
49736 1 69539 1
48051 0 67136 0
31372 0 12129 1
2462 1 9316 1
27230 0 38737 1
1903 0 60657 1
3778 1 61732 1
8709 1 73852 1
41842 0 25658 1
72247 0 67459 1
76390 1 74942 0
27304 ...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #32:

score: 0
Accepted
time: 45ms
memory: 9664kb

input:

30118 140804
18893 0 22293 1
22421 0 4786 0
344 1 27471 0
899 0 10925 1
16592 1 25177 0
12719 1 2757 1
12578 1 3521 1
29040 0 24488 1
10735 0 12440 0
18751 1 19657 0
20879 1 2195 1
25304 0 6860 1
11778 0 25191 0
20674 1 26139 1
2809 1 7735 1
13085 1 20416 1
26298 1 28971 0
2014 1 5182 0
14302 0 1051...

output:

Yes
0 1 0 0 1 1 1 0 1 0 1 1 1 1 0 0 1 0 1 0 0 1 0 1 0 1 1 0 0 0 0 1 1 1 0 0 0 1 1 0 0 1 1 0 1 1 1 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 0 1 0 0 0 0 1 0 0 0 1 0 1 1 1 1 1 0 0 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 1 0 1 0 1 1 1 1 1 0 0 0 0 0 1 0 1 0 0 0 1 0 1 1 1 0 1 0 0 1 1 0 0 1 0 0 0 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 ...

result:

ok Good plan

Test #33:

score: 0
Accepted
time: 31ms
memory: 9784kb

input:

30002 94908
19733 1 5886 1
19426 1 19450 1
27031 0 24759 1
1789 1 20024 0
6029 1 25158 0
9708 1 13886 0
14968 0 16157 0
1321 0 20003 1
12700 0 20996 1
28343 1 11124 0
19068 1 24874 0
7663 1 11638 1
10316 1 19969 0
1546 0 15122 1
25434 1 4531 0
14636 1 23856 1
19313 1 7534 1
5454 0 1194 0
27981 0 135...

output:

Yes
0 0 0 0 1 1 0 1 0 1 1 0 1 0 1 0 1 0 0 0 1 0 1 1 1 1 0 1 0 0 0 1 1 1 0 0 0 1 0 0 0 0 0 0 1 1 1 1 0 1 1 0 0 0 1 1 1 1 0 0 0 0 1 0 1 1 1 1 0 0 0 1 1 0 0 1 0 1 1 1 1 1 1 0 0 0 1 1 1 1 0 1 1 0 1 1 1 1 0 0 0 0 1 1 0 0 0 1 0 0 0 1 1 1 1 0 1 1 1 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 1 0 0 1 0 1 ...

result:

ok Good plan

Test #34:

score: 0
Accepted
time: 31ms
memory: 12208kb

input:

76103 81606
59421 0 12253 1
16422 0 58124 1
17034 1 14346 0
5856 0 24302 0
8638 1 31741 0
8332 1 5003 0
65569 0 39000 0
30365 0 18754 1
32223 0 1145 0
52945 0 16017 0
32427 1 13268 0
40823 1 4011 0
38583 0 25097 0
22963 1 73776 1
73174 0 40531 1
29859 1 10556 0
11918 0 19085 0
30173 1 4656 1
26132 1...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #35:

score: 0
Accepted
time: 6ms
memory: 4712kb

input:

7393 14554
4311 0 1821 0
6334 1 1987 1
3363 1 2111 0
1138 1 5270 1
4608 1 6399 0
2402 1 3366 1
2806 0 6976 0
3613 0 3280 1
6563 0 958 0
3582 1 4468 0
5003 0 3175 0
719 0 2609 0
10 1 6024 1
597 1 6138 1
3113 0 5723 0
36 1 3185 0
2990 0 4216 1
6712 0 3748 1
6767 1 6849 1
1326 1 1464 1
1270 1 4813 1
59...

output:

Yes
0 0 1 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 1 0 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 1 0 0 0 1 1 0 1 0 1 0 0 0 1 0 0 1 0 1 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 1 0 0 0 0 1 1 1 1 0 0 0 1 0 1 1 0 1 1 1 1 1 1 0 1 1 0 0 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 1 0 1 1 1 0 1 1 0 1 ...

result:

ok Good plan

Test #36:

score: 0
Accepted
time: 43ms
memory: 12672kb

input:

31601 145745
30194 0 30053 0
2875 1 31052 0
26179 0 26422 1
19854 0 17602 1
19690 1 16817 0
2380 1 17040 1
28276 0 1859 1
29072 0 9261 1
9948 1 21234 1
2822 1 30726 1
1941 0 7826 0
20287 0 5849 0
7215 0 6624 0
3606 1 20042 1
29593 1 329 0
19515 1 23939 0
6326 1 29090 0
20147 0 16628 0
9849 1 10525 0...

output:

No

result:

ok No Solution

Test #37:

score: 0
Accepted
time: 11ms
memory: 8200kb

input:

40178 41165
24759 0 33929 0
27519 1 25965 0
1696 0 11272 1
20778 1 15942 0
24981 1 33294 0
15942 0 18407 0
12630 1 18355 1
9687 0 23642 0
29203 0 15974 1
1804 1 35469 1
29068 1 28401 0
10415 1 24515 1
17590 1 18354 0
7060 1 36917 0
24674 0 26945 0
2537 1 18661 1
9665 1 15640 1
2301 1 18500 1
26738 1...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #38:

score: 0
Accepted
time: 64ms
memory: 17924kb

input:

52589 198829
19071 0 8663 0
43756 1 29603 1
44656 1 30496 0
6787 0 2651 1
45629 1 38929 0
5726 1 24729 0
12284 0 39670 0
44541 0 29970 1
25364 1 9978 1
40033 1 26077 1
10146 0 1417 1
20367 1 37220 0
3764 1 45735 0
40035 0 39170 1
49641 0 35700 0
5073 0 29745 0
7976 1 33334 1
9420 0 35077 1
28426 1 1...

output:

No

result:

ok No Solution

Test #39:

score: 0
Accepted
time: 53ms
memory: 11312kb

input:

36268 138138
20384 0 18841 0
19037 1 28343 0
30565 1 33349 1
28645 0 15850 1
34152 1 3822 1
13180 1 17725 1
35374 1 3105 0
11008 1 15432 0
35235 0 24505 0
32013 1 11178 0
2370 1 33705 1
29254 1 21278 1
34625 0 6055 1
30544 1 9978 1
18913 0 13412 0
26985 0 22514 1
10217 1 21168 1
5582 1 22396 0
16831...

output:

Yes
0 0 0 1 1 1 1 1 1 1 1 1 0 0 0 1 1 1 0 1 0 0 1 0 0 1 1 0 0 1 1 1 0 0 0 0 1 1 1 1 0 0 0 1 1 1 0 1 0 1 0 1 1 0 0 0 0 1 0 1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 1 1 0 1 1 1 1 1 0 0 0 0 0 0 1 1 1 0 1 0 1 0 0 1 0 1 0 0 1 0 0 1 0 0 0 1 0 0 1 0 1 1 1 1 1 0 0 1 0 0 1 0 1 1 0 0 0 1 0 0 1 1 0 0 0 1 1 1 1 0 1 1 1 ...

result:

ok Good plan

Test #40:

score: 0
Accepted
time: 33ms
memory: 8656kb

input:

8181 120482
747 0 5905 0
5707 1 3718 1
1161 0 3216 0
1681 0 148 0
4613 0 3492 0
5560 1 3653 1
6633 1 6674 1
1221 0 192 1
12 0 5868 1
5819 0 4955 1
4440 1 7748 0
7105 0 4752 1
3961 0 705 0
1749 0 3846 0
7575 0 5533 0
5265 0 2030 1
2680 1 6783 1
178 0 358 1
1687 1 5632 0
1682 0 2765 1
1738 1 163 1
475...

output:

Yes
1 0 1 0 0 1 0 1 0 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 0 1 1 1 1 1 0 1 1 1 1 0 0 0 0 1 0 1 1 1 1 1 1 1 0 0 1 1 0 1 1 0 1 1 1 1 1 1 1 1 1 0 1 0 0 0 1 1 1 0 0 0 0 1 1 1 1 0 1 0 1 0 0 1 0 1 1 1 1 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 1 1 0 1 0 0 0 0 1 1 1 1 0 1 1 1 0 1 0 1 0 0 1 0 1 0 0 1 1 0 0 1 1 1 1 1 1 0 ...

result:

ok Good plan

Test #41:

score: 0
Accepted
time: 57ms
memory: 14700kb

input:

85678 139928
15513 1 15590 0
19620 1 20574 0
75008 1 70540 1
63129 0 37001 0
4506 1 57988 0
8253 1 66890 1
6754 0 79170 1
83034 0 3911 0
68985 0 44542 1
22035 1 899 0
61436 0 70866 1
55983 0 81178 1
77942 0 71842 1
24456 1 28769 0
23471 1 23759 0
82369 0 66403 0
64799 0 27907 0
5589 1 80335 0
84705 ...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #42:

score: 0
Accepted
time: 19ms
memory: 6724kb

input:

18449 50773
13536 1 13338 1
8692 0 16168 1
14479 0 7273 0
10576 0 12780 0
10353 1 1336 0
4099 1 16751 1
2598 0 10434 0
7872 0 8235 0
13893 1 7002 1
7115 1 13961 1
16016 1 6023 1
15863 0 5821 0
1926 0 16309 1
6678 1 17770 0
10632 0 10424 0
18390 1 5528 0
15553 1 16168 1
4281 0 1148 1
12443 0 473 0
52...

output:

Yes
1 0 1 1 1 0 1 0 0 0 1 1 0 1 1 0 0 1 0 1 1 1 0 1 0 1 1 1 0 0 1 0 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 1 1 1 1 0 0 0 0 1 1 0 1 1 1 0 1 0 1 0 0 1 1 0 1 0 1 1 1 1 0 0 1 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 1 1 1 1 0 0 0 0 0 0 0 1 0 0 0 1 1 0 1 0 0 1 0 0 1 1 1 0 1 1 1 0 1 0 1 1 1 1 0 0 0 1 0 0 0 0 1 1 1 0 0 1 0 ...

result:

ok Good plan

Test #43:

score: 0
Accepted
time: 12ms
memory: 4824kb

input:

1139 56468
1130 1 929 1
456 0 777 0
900 1 81 0
1115 1 71 0
84 0 122 1
770 0 932 1
792 0 527 1
286 1 929 1
387 1 379 1
501 1 31 0
240 1 339 1
1 1 442 1
459 1 710 1
385 1 680 0
567 1 325 0
91 1 997 0
566 0 1012 0
946 0 96 1
529 0 920 0
1101 0 849 1
389 1 26 0
560 0 793 1
586 1 548 1
1121 1 579 1
858 0...

output:

Yes
1 0 1 0 0 0 1 1 0 1 0 0 0 0 1 0 1 1 0 0 1 1 0 0 0 0 1 0 1 0 1 0 0 0 1 0 1 1 0 0 0 0 1 1 1 0 0 0 1 0 1 1 0 1 1 1 1 1 1 0 0 0 0 1 0 1 0 1 0 1 1 1 1 0 1 1 1 0 0 1 0 0 1 1 0 1 1 1 1 1 1 0 1 0 0 1 0 0 0 1 1 0 0 0 0 1 0 1 0 1 1 0 1 0 0 0 1 1 0 0 1 1 1 0 0 1 0 1 0 0 1 1 1 1 1 1 1 0 0 1 0 1 0 1 1 0 0 0 ...

result:

ok Good plan

Test #44:

score: 0
Accepted
time: 62ms
memory: 9504kb

input:

20094 192506
10355 0 15680 0
12603 0 2685 1
7936 0 1270 1
14402 0 19415 0
16824 0 9992 1
13384 0 18323 0
3523 1 11847 1
8057 0 13530 0
13404 1 16100 0
19720 1 18987 0
8029 1 217 0
9819 0 9985 1
6587 0 1062 0
3696 0 8931 1
18907 0 4769 0
4481 1 19008 1
12966 0 545 0
16722 0 16564 0
4470 1 7273 1
4027...

output:

Yes
0 0 0 1 1 1 0 1 1 1 1 0 0 1 1 0 1 1 0 1 0 0 1 0 0 1 1 0 0 0 1 0 0 0 1 1 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 1 0 0 0 1 1 1 1 0 0 1 1 0 0 1 0 0 1 0 0 0 1 0 0 0 1 0 1 0 0 0 1 0 0 0 1 1 1 0 0 1 1 0 0 1 0 1 0 0 0 1 1 1 1 0 1 0 0 0 0 0 0 1 0 1 0 1 1 0 0 1 1 0 1 1 1 0 1 1 1 0 0 0 1 0 1 0 1 1 0 1 ...

result:

ok Good plan

Test #45:

score: 0
Accepted
time: 36ms
memory: 14104kb

input:

87463 95463
84574 1 18008 0
10895 0 65778 1
10201 1 61246 1
82132 1 18475 1
30721 0 60120 0
57094 0 31775 1
3724 0 43601 1
25655 0 56735 1
81130 1 18241 1
73503 1 25831 0
85940 1 4525 0
14498 1 81215 0
57264 0 72705 0
42207 1 54360 1
38120 1 39914 0
6185 1 35616 0
23391 1 37016 1
1752 1 13381 1
5123...

output:

No

result:

ok No Solution

Test #46:

score: 0
Accepted
time: 69ms
memory: 15188kb

input:

92808 159730
65725 0 22963 1
16540 1 89432 0
79646 1 68199 0
89942 1 67607 1
47758 1 18304 0
13642 1 40851 1
51471 0 36675 0
25676 1 29727 0
73180 0 82749 0
42141 1 64457 0
82177 1 18144 0
76305 1 47448 0
42407 1 24781 1
70294 1 21850 0
11936 0 75999 1
44598 1 17110 1
2440 0 64342 1
77067 0 63724 1
...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 ...

result:

ok Good plan

Test #47:

score: 0
Accepted
time: 50ms
memory: 9452kb

input:

23274 162707
13954 0 6065 0
20344 1 2651 0
11625 0 6167 0
3990 0 15979 0
21611 0 9058 0
3460 1 17249 0
21 1 10607 1
15299 1 9179 0
1106 1 18807 0
20097 0 12413 0
15213 0 5811 0
1614 0 7237 1
5817 0 5299 0
18373 1 7913 0
353 1 13055 1
5333 0 21170 0
15046 1 20759 1
22845 1 19563 1
23225 1 20534 0
686...

output:

Yes
1 0 1 1 1 1 0 1 1 1 0 1 0 1 1 0 1 1 0 0 0 0 0 0 1 1 0 1 1 0 1 0 0 0 1 0 1 0 0 0 1 1 1 1 0 1 1 0 0 0 0 1 1 0 0 0 0 0 0 0 1 1 0 1 1 1 0 1 0 0 0 1 1 1 1 1 0 0 0 1 0 1 0 1 0 1 0 0 1 1 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 1 1 1 1 1 0 1 0 1 0 1 0 0 1 0 0 1 0 1 1 1 0 1 0 0 0 0 1 1 1 0 1 0 1 1 1 0 0 1 1 0 0 0 ...

result:

ok Good plan

Test #48:

score: 0
Accepted
time: 11ms
memory: 5004kb

input:

4511 37072
748 1 3509 0
1320 1 1193 1
320 1 3753 1
1957 0 1569 1
1552 1 2710 0
3213 0 1923 0
1255 0 4339 1
1238 0 2300 1
3759 1 3539 1
2636 0 85 0
923 0 2221 0
3284 0 2845 1
588 0 3927 0
99 0 4318 0
1709 0 1315 1
4250 0 2182 1
113 1 1802 0
2970 1 1116 1
570 1 3332 1
1394 0 944 1
2124 1 1623 0
1437 1...

output:

Yes
1 1 0 0 1 0 0 0 0 1 0 0 0 1 1 1 1 1 1 1 0 1 1 0 0 0 1 0 1 0 1 1 1 1 0 0 0 0 0 0 1 0 1 1 0 1 0 0 0 1 0 1 1 1 0 0 0 0 0 1 1 0 0 0 1 0 0 1 0 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 1 0 0 1 1 0 0 0 1 0 0 1 0 0 0 1 1 0 0 0 1 0 1 0 0 0 0 1 1 0 0 0 1 0 1 0 1 1 1 1 0 1 0 1 0 0 1 1 1 0 0 0 1 1 0 0 0 1 1 1 1 1 0 0 ...

result:

ok Good plan

Test #49:

score: 0
Accepted
time: 67ms
memory: 15688kb

input:

96406 180377
27230 0 4538 1
36090 0 39988 0
18838 1 71103 1
59232 1 63895 1
71126 1 58462 1
72143 1 95585 0
17893 1 68584 0
6546 1 79447 0
56606 1 18804 0
47950 1 17089 1
53890 0 32984 0
52932 1 46420 1
35540 0 92626 0
89680 1 35604 1
42720 0 54314 1
40688 1 1840 1
46978 0 4794 0
53345 0 7107 1
6417...

output:

Yes
0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #50:

score: 0
Accepted
time: 55ms
memory: 13976kb

input:

78195 156821
3595 1 33128 0
19821 1 62562 1
10552 1 41677 0
72207 0 19189 0
77390 1 37089 1
41124 1 2519 0
34606 0 34476 0
67375 0 16008 0
54444 1 38157 0
77195 0 48799 0
65132 1 62647 1
17124 0 63543 0
53078 1 39009 1
22330 1 38923 0
17244 0 48872 1
48909 0 34111 0
33760 1 5679 1
13670 1 35457 1
75...

output:

Yes
0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 0 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #51:

score: 0
Accepted
time: 60ms
memory: 10780kb

input:

30806 188299
4280 0 4004 1
16896 0 7090 0
1440 1 26898 1
5710 1 30060 1
21452 1 11394 0
6077 0 24238 0
7549 0 28939 0
3814 1 4582 1
8208 1 6832 0
5676 1 19180 1
29737 0 21904 0
18731 0 16457 1
28407 1 23968 0
16804 1 23960 1
23344 1 15485 1
20513 1 3703 1
25759 1 16916 1
13684 1 8818 1
18032 1 8723 ...

output:

Yes
1 0 0 0 0 1 1 1 1 1 1 0 1 0 1 0 0 0 1 0 1 0 0 0 1 0 1 1 0 1 0 1 0 1 0 0 1 1 1 1 0 1 1 1 1 0 1 0 0 0 1 1 1 1 0 1 0 1 0 0 1 1 1 0 1 0 0 1 1 0 0 0 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 0 1 1 0 1 0 0 1 0 1 1 0 1 0 1 0 0 1 0 0 0 0 1 1 1 0 0 1 0 0 1 1 0 0 1 0 1 0 0 0 0 1 1 1 1 0 0 1 0 0 1 1 0 0 0 0 1 0 ...

result:

ok Good plan

Test #52:

score: 0
Accepted
time: 36ms
memory: 9316kb

input:

15195 110914
10431 1 9221 0
2600 0 5703 1
9313 1 15032 0
11116 1 13630 0
14094 1 1973 1
4048 1 14855 1
2202 0 9550 1
8838 0 11173 1
3821 1 11473 0
7316 0 768 1
1483 0 12148 0
11326 1 7106 1
3063 0 3409 0
6055 0 10113 1
6845 0 3051 1
12438 1 2641 1
9251 0 3944 1
2358 1 5073 0
10163 1 3502 0
8607 0 45...

output:

Yes
1 1 1 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 1 1 1 1 1 0 1 0 1 1 1 1 1 1 0 0 0 0 1 1 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 0 0 0 0 1 0 0 1 1 1 0 1 0 1 1 1 0 0 1 0 0 0 1 0 1 1 0 1 1 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 0 0 1 1 1 0 1 1 0 0 1 0 1 0 0 1 1 0 0 1 0 1 0 0 1 1 0 0 0 0 ...

result:

ok Good plan

Test #53:

score: 0
Accepted
time: 64ms
memory: 13496kb

input:

62417 175377
24538 0 30372 1
42383 1 4800 0
32771 1 11254 0
40480 1 31256 0
45037 1 29177 0
9589 0 31885 0
28662 1 18307 1
22165 1 56918 1
48768 1 49202 0
23741 1 35450 1
49742 1 739 0
28283 1 14300 1
49820 1 12739 1
51121 1 23368 0
5559 1 19594 0
11653 0 49513 1
20334 0 33198 1
8234 1 47015 0
36860...

output:

Yes
0 0 0 1 1 0 0 1 1 0 0 0 1 1 0 0 1 0 0 0 0 0 0 1 0 0 0 1 1 1 0 1 0 0 1 1 1 1 0 0 1 0 1 0 1 0 0 0 0 1 0 1 0 0 0 0 0 0 1 0 1 1 1 0 1 1 1 0 0 0 0 0 1 1 1 0 0 1 1 1 1 1 0 1 1 0 0 1 1 0 0 1 0 1 1 0 1 1 0 1 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 1 1 1 1 0 1 0 0 0 0 0 0 0 1 1 1 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 1 1 ...

result:

ok Good plan

Test #54:

score: 0
Accepted
time: 33ms
memory: 10136kb

input:

21437 109983
308 1 3588 0
11804 0 1929 0
8461 0 10600 1
9752 1 6027 1
9145 1 4063 1
12852 0 6606 0
12783 1 19362 1
18364 1 4416 1
7540 0 4574 0
3219 0 1155 1
20666 0 20488 0
12376 1 5014 1
19681 0 3302 0
3687 1 2136 1
3276 0 14239 1
9443 1 11632 0
16764 0 5449 0
1934 1 1030 1
17235 0 13320 0
7134 0 ...

output:

Yes
0 1 1 1 0 1 0 1 0 1 1 0 1 1 1 1 1 0 0 1 1 0 0 0 1 1 0 1 1 0 1 1 0 0 0 1 1 0 1 1 1 1 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 1 0 0 1 1 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 1 1 1 1 0 0 0 1 0 1 0 1 1 1 0 1 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 1 1 1 0 0 0 0 1 0 0 0 1 1 1 0 1 1 1 0 1 1 1 0 0 0 ...

result:

ok Good plan

Test #55:

score: 0
Accepted
time: 24ms
memory: 6152kb

input:

5039 111371
4761 1 4717 1
4248 0 143 1
2340 1 3687 0
1983 0 577 1
4462 0 1576 0
1262 1 4037 1
1735 1 4319 1
2075 1 2785 0
4921 0 2631 1
4952 0 1767 1
2912 0 4854 1
3702 0 3480 0
3685 1 3987 0
787 1 1141 0
3715 1 201 0
2704 0 1575 1
1945 1 3437 0
2678 0 656 0
3118 0 4626 0
2113 1 3374 0
1642 1 638 1
...

output:

Yes
1 1 1 1 0 0 0 1 0 1 1 0 0 0 1 0 0 0 0 1 1 0 1 0 0 1 1 1 1 1 1 1 0 1 1 1 1 0 1 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 1 0 1 0 0 0 1 0 1 0 0 0 1 0 1 0 0 0 1 0 1 1 1 1 0 0 0 1 1 0 0 0 0 1 0 0 0 1 0 0 0 1 1 1 0 0 0 1 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 1 1 0 0 0 0 1 1 0 1 1 0 0 ...

result:

ok Good plan

Test #56:

score: 0
Accepted
time: 61ms
memory: 14140kb

input:

82828 166416
22105 0 57362 1
52597 1 40693 0
64470 1 45770 1
74484 0 58869 0
4169 0 9294 1
80527 1 27549 0
68865 1 25235 0
25761 0 40063 1
45202 1 78713 1
39033 0 66026 1
23285 0 31054 0
82192 0 32613 0
35088 0 1781 0
42413 0 31568 0
61274 1 33236 0
26577 0 51662 1
63323 1 14191 1
9545 0 31117 1
225...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 1 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 1 0 1 0 0 0 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 ...

result:

ok Good plan

Test #57:

score: 0
Accepted
time: 52ms
memory: 13692kb

input:

83463 108481
31251 0 47012 0
17181 0 27603 1
71381 0 9172 0
62146 1 47422 0
23189 1 12640 1
55771 0 25594 0
33892 0 33169 1
75746 0 24383 1
9493 1 33895 0
76665 0 14373 0
62862 1 39942 1
26964 1 32095 1
66262 0 40368 0
14809 1 67569 0
27318 1 19823 1
26656 0 21703 1
46989 0 51983 0
26051 0 15072 1
2...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #58:

score: 0
Accepted
time: 59ms
memory: 11328kb

input:

42415 157947
36441 0 18268 1
25783 1 30885 0
16733 1 6976 0
33282 0 29584 1
35817 1 37891 0
25835 1 20102 1
29595 0 32405 1
7413 0 39919 0
2213 1 36199 0
21680 1 29660 0
7706 1 25028 0
11789 0 32331 0
33698 1 26252 0
15021 0 29443 1
29823 0 14226 0
25317 0 24061 1
8204 1 17527 0
22392 0 15943 0
2382...

output:

Yes
0 0 0 1 0 0 0 0 1 0 0 1 0 1 1 0 0 0 1 0 0 0 1 1 0 0 1 0 1 1 1 1 1 1 0 0 0 0 1 0 1 0 0 1 1 0 1 1 0 1 0 1 1 0 1 0 1 1 1 1 0 0 0 1 0 0 1 1 1 1 1 0 0 1 1 1 0 0 1 1 1 1 0 1 0 0 1 0 0 1 1 1 1 1 1 0 0 1 0 0 1 0 1 1 0 1 1 1 1 0 1 0 0 0 1 1 0 1 0 0 0 0 1 1 0 1 0 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1 0 1 1 0 0 0 ...

result:

ok Good plan

Test #59:

score: 0
Accepted
time: 57ms
memory: 12528kb

input:

53093 176555
33711 1 35024 0
36874 0 20193 1
30063 1 3689 1
23699 1 904 1
8763 0 47755 1
35600 1 31897 1
47461 0 9483 1
27959 1 7791 1
23953 1 16046 1
39763 0 46716 1
50365 1 8169 1
34960 1 16907 1
15957 0 49286 1
22060 1 3152 0
31779 1 26243 0
15804 1 39669 0
22877 1 32433 0
20173 1 39906 0
23033 0...

output:

Yes
1 0 0 0 1 1 1 0 1 1 0 1 1 0 0 1 1 1 1 1 1 1 0 1 1 0 1 0 0 1 0 1 1 1 0 1 1 0 1 0 1 1 1 0 1 1 1 0 0 1 1 0 1 1 0 0 0 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 1 0 0 1 1 1 0 0 1 1 1 0 0 0 1 1 1 0 1 0 0 1 0 1 0 0 0 1 0 1 0 1 1 1 0 0 0 0 0 0 0 0 1 1 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 0 1 1 ...

result:

ok Good plan

Test #60:

score: 0
Accepted
time: 60ms
memory: 13052kb

input:

49021 172689
41061 1 7738 0
5342 1 17906 1
32506 0 30320 0
8825 1 3322 1
45344 0 36204 1
15097 1 41221 1
14162 0 5471 0
2130 0 10276 1
11707 0 18303 0
23925 1 36370 1
2593 1 25635 1
42935 1 13071 0
17109 0 36113 0
48178 0 1780 1
8604 1 37608 0
42606 0 34269 1
1161 0 32826 0
24082 1 1787 0
15270 1 21...

output:

Yes
0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 1 1 0 0 0 1 0 0 1 1 0 1 0 0 1 1 1 1 1 1 0 0 1 1 1 1 0 1 1 1 1 0 0 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 1 1 1 1 0 1 1 1 0 0 0 0 1 1 1 1 1 1 0 0 1 0 1 1 1 0 1 1 1 0 0 1 1 0 0 1 1 1 0 1 1 0 0 1 1 1 0 0 0 1 1 0 0 0 0 0 1 0 1 1 0 1 0 1 1 0 0 1 0 ...

result:

ok Good plan

Test #61:

score: 0
Accepted
time: 26ms
memory: 7488kb

input:

28940 65636
5787 0 21497 0
15112 1 8152 0
24975 1 23699 1
19191 1 7143 0
9184 0 25262 0
17157 1 10033 1
21678 1 26368 1
25016 1 11614 1
15194 0 13462 0
18297 1 4677 0
13366 1 28491 1
19857 0 4616 1
17636 0 6244 1
20892 1 15419 1
25665 1 27546 0
1655 0 8688 1
17836 0 11021 1
14468 1 23801 1
14819 0 7...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 1 0 0 0 1 0 0 0 0 1 1 0 1 0 1 1 1 1 1 0 1 0 0 1 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 1 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 1 1 0 1 1 0 0 1 0 0 0 0 1 0 0 0 1 0 1 1 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 0 ...

result:

ok Good plan

Test #62:

score: 0
Accepted
time: 53ms
memory: 14780kb

input:

95302 121087
72472 1 91587 1
68038 1 30414 1
11846 1 14781 0
68638 1 14192 1
17711 1 52825 0
67216 0 49935 1
86682 0 35515 0
79997 0 47866 1
87550 0 2504 1
69613 1 11824 1
23555 1 36149 1
77998 1 42502 0
1962 1 11062 0
54350 0 26933 1
43433 0 89496 1
43877 1 34663 1
53381 0 25639 1
66219 0 78835 0
3...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #63:

score: 0
Accepted
time: 65ms
memory: 14448kb

input:

88564 127971
34287 1 35603 1
25508 1 20121 1
72344 1 85840 1
82651 1 35204 0
74926 1 37961 1
11824 0 24233 0
87196 1 64770 1
41247 0 38887 0
13841 0 50291 0
19841 0 6594 0
81748 1 83043 0
1133 0 65066 0
61767 0 40275 1
11008 1 1513 1
69437 0 52622 0
3416 1 20710 0
51502 0 66040 1
61345 1 25264 0
730...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #64:

score: 0
Accepted
time: 54ms
memory: 12480kb

input:

49269 149515
6998 0 48435 0
13905 1 48123 0
18971 1 37556 0
26212 0 30207 0
38360 1 43670 1
25251 0 13362 0
9342 1 16951 0
35512 0 45131 1
37108 0 5448 1
4857 1 40638 0
16088 1 46677 0
20986 0 11 1
30329 1 17140 0
24234 0 16914 1
11193 0 27320 1
42758 0 40997 0
9143 0 14496 0
7625 0 34823 1
40235 0 ...

output:

Yes
0 0 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 0 1 0 1 1 1 1 1 1 0 1 1 1 0 0 1 1 1 0 0 1 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 1 0 1 0 1 0 0 1 0 0 0 1 0 1 1 1 0 0 0 1 0 1 0 0 0 1 1 1 0 0 1 0 1 1 1 1 0 1 1 0 1 0 0 0 0 1 1 0 1 1 1 0 0 1 1 0 1 0 1 1 1 0 0 1 0 1 0 1 1 0 0 0 0 1 1 0 1 0 0 0 1 ...

result:

ok Good plan

Test #65:

score: 0
Accepted
time: 48ms
memory: 9184kb

input:

19363 163883
15826 1 8384 1
18417 0 15010 0
10158 1 5477 1
2476 0 10116 1
12514 1 6998 0
5132 0 8432 0
10503 1 2501 0
4230 0 2850 1
6861 1 5044 1
1135 1 18079 0
16107 0 13073 0
14182 0 3383 1
11362 1 11434 1
16019 0 15553 0
15896 1 7010 0
6780 1 11039 1
4972 1 4347 1
10228 0 1757 0
7475 1 14557 0
37...

output:

Yes
1 1 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 1 1 0 0 1 1 0 0 0 1 1 0 0 0 1 0 0 1 1 0 0 1 1 1 0 0 1 1 0 1 1 1 0 0 0 0 1 0 1 0 1 0 1 1 1 1 0 1 0 0 1 0 0 1 0 0 0 0 0 1 1 0 1 0 1 0 1 0 0 0 1 1 1 1 1 1 1 1 1 0 1 0 0 0 1 0 1 0 1 0 0 0 0 1 1 0 0 0 0 1 0 1 0 1 1 0 0 1 0 0 0 0 1 0 0 0 1 1 1 0 1 0 1 1 1 ...

result:

ok Good plan

Test #66:

score: 0
Accepted
time: 19ms
memory: 5292kb

input:

891 117549
708 0 205 0
717 1 845 1
765 0 423 0
877 1 772 1
552 0 305 0
620 0 518 0
340 0 2 0
341 1 132 1
678 0 80 1
416 1 203 1
777 1 652 1
556 0 163 0
54 0 735 1
99 0 35 1
82 0 101 0
598 0 205 1
613 0 354 0
665 1 49 1
612 0 85 1
760 1 23 0
210 0 212 1
739 0 31 1
720 0 463 1
398 0 322 0
509 1 543 0
...

output:

Yes
0 0 1 1 1 1 1 1 0 0 1 1 0 1 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 0 1 0 1 0 0 1 1 1 1 1 0 1 0 1 0 0 1 1 1 1 1 0 0 1 1 0 0 1 0 0 1 1 1 1 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 1 1 0 1 0 0 0 0 0 0 1 1 0 0 1 0 0 1 1 1 0 0 0 0 1 0 0 1 0 0 1 1 0 0 0 0 0 0 1 0 0 0 1 1 1 0 0 1 0 0 0 0 1 1 0 0 0 0 1 1 0 1 1 ...

result:

ok Good plan

Test #67:

score: 0
Accepted
time: 56ms
memory: 12448kb

input:

66156 152568
52666 0 33572 0
28312 1 64670 0
28392 1 18794 1
16973 1 57395 0
19954 1 59319 1
62847 1 357 1
30349 1 54189 1
7103 0 11603 0
39904 1 54263 1
65113 1 45204 0
60638 0 37277 1
33146 1 51294 0
39988 1 16714 1
5354 1 37866 1
56312 0 59976 0
24762 0 34307 0
65135 1 54903 1
11667 1 33955 0
438...

output:

Yes
0 0 1 1 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 0 0 1 1 1 1 0 1 0 1 0 0 0 1 1 0 1 0 1 0 0 1 0 0 0 0 1 1 1 0 0 0 1 0 0 1 0 1 1 0 1 0 0 1 0 0 0 0 0 0 1 0 1 0 0 1 1 0 0 1 0 1 1 0 0 0 1 1 0 0 1 0 0 1 0 1 1 1 0 0 1 1 0 1 0 0 0 0 0 1 1 1 0 1 0 1 1 0 0 0 1 0 0 0 0 0 1 0 0 1 1 1 1 1 0 0 0 1 0 0 0 0 1 0 0 1 0 1 0 ...

result:

ok Good plan

Test #68:

score: 0
Accepted
time: 76ms
memory: 13732kb

input:

68728 195190
6828 0 12301 0
50766 0 5232 1
12101 1 30836 0
21788 0 21806 0
52766 0 18415 0
18458 0 13835 1
40353 1 62859 0
32138 1 36999 0
24875 1 12344 0
49640 1 45987 1
48992 0 64556 1
8181 0 8743 1
14083 0 34821 1
17385 1 26483 1
10459 1 67224 1
37916 1 42323 1
6468 0 65257 1
19748 0 43099 1
1113...

output:

Yes
0 0 1 1 0 0 0 0 0 1 1 0 1 1 1 0 0 1 0 0 1 0 1 0 0 1 1 1 1 1 1 1 1 0 0 1 1 1 0 1 0 0 1 1 0 0 1 0 0 0 0 0 1 1 1 1 1 1 1 0 1 1 0 0 1 0 0 1 1 0 0 0 0 1 0 0 1 1 0 1 1 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 1 0 0 1 1 1 0 0 0 1 0 1 0 0 1 0 1 1 0 1 0 0 1 0 1 0 0 1 1 0 0 0 0 0 0 0 0 1 1 0 1 0 0 1 0 1 0 0 1 1 1 1 ...

result:

ok Good plan

Test #69:

score: 0
Accepted
time: 45ms
memory: 13928kb

input:

34373 133385
12386 0 119 0
16962 1 29694 0
12672 1 388 0
19204 1 23160 0
1145 0 4962 1
6838 0 14850 0
10446 1 2108 1
8351 0 9382 1
22589 1 22638 1
28124 1 13274 1
24508 1 31570 1
10127 1 29550 1
17500 0 5315 0
19956 1 31072 1
1520 0 12229 0
24389 1 17567 1
10379 1 6604 0
17306 0 2044 1
33372 1 24938...

output:

No

result:

ok No Solution

Test #70:

score: 0
Accepted
time: 28ms
memory: 9904kb

input:

52214 73004
28841 1 31569 0
38098 1 25018 0
33553 0 38618 0
29112 1 7074 1
34996 1 2560 0
35114 1 2813 1
45949 0 12798 0
19348 1 39784 1
32732 0 30498 1
9584 1 21279 1
44821 1 51526 1
46759 0 45990 1
36080 1 2691 1
44377 1 43113 0
43879 1 3155 0
29259 1 25770 1
50530 1 32047 1
39569 1 353 1
40677 1 ...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 ...

result:

ok Good plan

Test #71:

score: 0
Accepted
time: 47ms
memory: 11476kb

input:

36740 140203
24690 0 276 0
1793 0 25077 0
1546 0 25489 1
26096 0 28720 0
28740 0 36089 0
792 0 34541 1
18864 1 35806 1
9906 1 8913 0
33327 1 31156 0
17384 0 9376 1
202 1 10621 1
14125 0 23116 1
35371 1 32189 0
31670 0 12629 0
18261 0 6597 1
548 1 5669 0
12344 1 12147 1
3035 0 11482 1
6918 0 21690 1
...

output:

Yes
0 0 0 0 1 1 1 1 0 0 0 1 0 0 0 1 1 1 1 1 1 1 0 0 0 0 1 1 0 0 0 1 0 0 0 0 1 0 1 1 1 0 0 1 1 0 0 1 1 1 0 1 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 1 1 0 0 0 1 0 1 1 0 1 0 0 1 0 0 1 1 1 0 1 0 0 1 1 0 0 1 1 0 1 1 1 1 0 1 1 0 1 0 0 1 0 0 0 0 1 0 1 1 1 0 1 0 1 1 0 1 0 0 1 0 0 1 0 1 1 0 0 0 0 0 1 1 0 0 0 0 1 0 ...

result:

ok Good plan

Test #72:

score: 0
Accepted
time: 54ms
memory: 9424kb

input:

17049 188278
16605 0 2014 1
6273 1 11271 1
12918 1 14091 0
15743 1 8842 1
1609 0 299 0
15138 1 7193 1
12940 1 15720 0
5005 1 16512 0
5746 0 4416 1
15252 0 15201 0
128 0 7670 1
10547 0 6577 0
2359 0 15515 0
16327 1 9708 1
14325 1 5036 1
16951 0 1280 0
10385 1 11375 0
8606 1 8066 1
15896 1 6230 0
1667...

output:

Yes
1 0 1 0 0 0 0 0 1 0 1 0 1 1 1 1 0 0 0 0 0 1 0 0 1 1 1 0 0 1 0 0 1 0 1 0 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 0 1 0 1 1 1 0 0 1 1 0 1 1 0 1 0 0 1 1 1 0 1 1 1 1 1 0 1 0 1 0 0 0 0 0 0 0 1 1 1 0 0 1 1 0 1 1 1 1 0 0 0 1 1 1 1 0 1 0 1 1 0 0 0 0 0 1 1 0 1 0 1 1 1 0 1 0 1 1 1 0 1 1 0 1 0 1 1 0 0 0 1 1 0 0 0 1 ...

result:

ok Good plan

Test #73:

score: 0
Accepted
time: 40ms
memory: 12732kb

input:

75754 85401
13508 0 63461 0
72192 0 43042 0
4120 1 45645 0
7110 0 18423 0
66857 0 6700 1
28975 1 68656 1
3533 0 66779 0
21120 1 40852 0
66382 0 45096 1
29492 1 36069 1
60979 1 21474 0
45354 0 46462 1
68322 1 13798 0
55160 0 15697 1
26393 0 55995 0
39190 1 51230 1
9582 0 6369 0
69268 0 44308 0
22071 ...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #74:

score: 0
Accepted
time: 51ms
memory: 14604kb

input:

61186 112133
54586 1 20482 1
39863 1 48329 0
31992 0 1585 0
37396 0 59682 0
1283 0 24938 1
37566 1 1619 0
11054 1 16329 0
21744 0 52784 1
17164 1 8628 1
39763 0 6956 0
53167 1 13269 0
58721 1 52920 1
54525 0 23624 1
313 1 15114 0
50823 1 48716 0
1093 1 50054 0
5286 1 14549 0
31913 0 44782 1
23172 1 ...

output:

No

result:

ok No Solution

Test #75:

score: 0
Accepted
time: 65ms
memory: 13408kb

input:

74688 166273
47704 1 34232 0
15272 1 69222 0
46938 0 47443 1
14768 1 46738 0
40701 0 46157 0
47251 1 44590 1
37977 1 40003 1
29365 0 22589 1
10631 0 72260 1
5510 0 36246 0
73054 1 23148 1
72780 0 9382 1
14481 1 15119 1
37623 0 69736 1
39038 0 60180 0
28224 1 69271 0
15755 0 39657 1
52072 1 60142 1
4...

output:

Yes
0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 1 1 0 0 1 1 0 0 1 0 1 0 0 0 1 1 1 1 1 1 0 0 1 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 1 1 0 0 0 0 0 1 1 0 0 1 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 0 1 1 1 0 0 1 0 1 0 1 0 0 0 0 0 0 1 1 1 0 1 1 1 0 0 0 0 1 1 0 0 0 0 0 1 0 0 1 1 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 1 0 0 ...

result:

ok Good plan

Test #76:

score: 0
Accepted
time: 27ms
memory: 9064kb

input:

39846 79325
34184 0 6193 1
27928 0 7540 0
38506 1 24540 1
10619 0 1805 1
904 0 18586 0
38622 0 19438 0
18662 1 29924 0
5183 0 31058 1
17809 0 25253 0
520 1 19721 0
25253 0 12341 1
16551 1 12378 0
23917 0 15147 1
28925 1 36491 0
18936 0 23914 1
10930 1 26351 0
27997 0 14432 0
14654 1 22445 1
3620 0 3...

output:

Yes
0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 1 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 1 0 0 0 1 0 0 1 0 0 0 1 0 0 0 1 0 0 1 0 1 0 1 1 0 1 ...

result:

ok Good plan

Test #77:

score: 0
Accepted
time: 19ms
memory: 5728kb

input:

1133 150671
658 0 660 1
890 1 526 1
675 1 241 1
839 0 919 0
837 1 1079 0
62 1 542 0
554 0 1111 1
528 1 267 0
718 0 976 1
1061 0 1097 0
25 1 1110 1
781 1 928 1
844 1 641 0
128 0 632 1
183 1 1021 0
799 0 776 0
730 0 338 0
940 0 213 1
584 0 776 0
241 0 758 1
668 1 491 1
427 1 725 1
1083 1 130 1
487 1 8...

output:

Yes
0 1 1 0 0 1 1 0 1 1 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 1 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 1 1 1 0 0 1 0 0 1 0 1 0 1 0 1 0 0 1 1 1 0 1 0 1 1 1 0 0 1 1 1 0 0 1 1 0 1 0 1 0 0 0 1 0 1 0 1 0 0 1 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 0 1 0 0 0 0 0 0 0 1 1 0 0 0 1 1 0 1 0 1 0 0 1 1 0 1 1 1 0 1 1 1 0 1 0 0 0 0 ...

result:

ok Good plan

Test #78:

score: 0
Accepted
time: 48ms
memory: 13572kb

input:

79016 123529
9920 1 70060 1
30312 0 63752 1
22684 0 60626 1
418 0 60919 1
5041 0 71642 0
51596 0 36471 1
44739 0 37626 0
60896 0 74262 1
73408 0 24889 0
59923 1 26275 0
24205 0 4456 0
4943 0 67837 1
78059 1 78994 0
12320 1 27848 0
61630 0 72188 1
29372 0 19941 0
7684 0 60161 0
33486 0 2038 1
16850 1...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #79:

score: 0
Accepted
time: 44ms
memory: 10804kb

input:

53504 123462
1627 0 36575 1
53039 0 22402 0
40107 1 21330 0
34268 0 47903 1
14338 0 38995 0
3380 1 35974 0
38380 0 41597 0
45226 1 38319 1
12471 1 32260 0
9482 1 5249 1
49817 0 12873 0
15797 0 10715 0
14174 0 52438 1
47846 0 24517 1
24240 1 30305 1
873 1 15260 1
20336 1 7102 0
43315 0 12476 0
26554 ...

output:

Yes
0 1 1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0 1 0 0 1 1 0 1 0 1 0 0 1 0 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 1 0 1 1 1 1 1 1 1 0 1 1 0 1 0 1 0 0 0 1 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 1 0 1 0 0 0 0 1 1 0 1 1 0 1 0 0 1 0 1 0 0 0 1 0 0 0 1 0 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1 0 1 1 1 0 ...

result:

ok Good plan

Test #80:

score: 0
Accepted
time: 11ms
memory: 9364kb

input:

22876 35375
6693 0 13071 0
973 0 22291 0
22745 0 6067 1
8466 0 15234 1
15898 0 3032 0
10757 1 11375 1
2675 0 21690 0
4372 0 8826 0
11948 0 2126 1
14285 1 21549 1
15539 0 4900 0
7480 0 9489 1
1644 0 3643 1
11927 0 2079 1
877 0 752 1
5090 0 7380 1
16356 0 10077 1
19833 0 7908 0
22695 0 4423 0
22651 0 ...

output:

No

result:

ok No Solution

Test #81:

score: 0
Accepted
time: 69ms
memory: 13912kb

input:

56348 187659
25980 1 51406 1
14721 1 51747 1
24000 1 8880 1
46587 0 20060 1
45300 0 30244 1
42126 0 29281 1
44503 1 38309 1
51481 1 32894 1
3373 1 21558 1
10730 1 39385 0
39221 0 10319 0
26357 1 5610 0
29236 0 36536 1
12930 0 46836 1
53149 1 25749 1
51112 1 55424 1
10945 0 28446 0
40296 0 47817 0
52...

output:

Yes
1 0 0 1 0 0 0 0 1 0 1 0 0 1 1 1 0 1 1 0 1 1 0 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 0 0 0 1 0 1 0 1 1 0 1 1 0 0 1 1 0 0 1 0 1 1 1 1 0 1 1 1 0 0 0 0 0 1 1 1 0 1 0 1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 0 0 1 0 1 0 1 1 1 0 1 0 0 1 0 1 1 1 0 1 1 1 0 0 0 1 0 1 1 0 1 1 1 1 0 0 1 0 0 0 1 1 1 0 0 0 0 1 1 0 0 1 0 1 ...

result:

ok Good plan

Test #82:

score: 0
Accepted
time: 67ms
memory: 14564kb

input:

82658 177431
35069 1 18782 1
29199 0 57362 1
77638 0 42144 1
80778 0 28693 1
5854 1 40586 1
22257 0 82299 0
79044 0 12190 0
29478 1 46473 0
78226 1 65765 1
29024 0 64251 0
11905 1 12460 1
62184 1 52131 0
12636 1 33691 1
34381 0 16853 0
16704 0 8779 0
17112 1 26483 0
6117 1 77483 1
1864 1 44830 1
729...

output:

Yes
0 0 0 0 1 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 1 0 1 0 1 0 0 0 0 0 1 1 0 0 0 1 1 0 0 0 0 1 1 0 1 1 1 0 0 1 1 1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 1 0 0 1 1 0 0 0 0 1 0 0 0 0 0 1 1 1 0 0 0 0 1 0 1 ...

result:

ok Good plan

Test #83:

score: 0
Accepted
time: 64ms
memory: 13964kb

input:

80517 168891
66040 1 767 1
27426 0 1933 0
31401 1 12210 1
15428 1 37258 1
49955 0 62385 1
42772 0 76835 0
37570 1 68081 0
54490 1 62303 0
80463 1 10707 1
35495 0 12611 0
53531 0 77241 1
21673 1 65734 1
65620 1 8270 1
65648 1 16010 0
27530 0 41284 0
8175 0 79574 0
43333 0 2809 1
46084 0 66386 1
23360...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 1 1 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 1 1 1 0 0 0 1 1 1 1 0 1 0 0 0 0 1 0 1 1 0 1 0 1 0 0 0 0 1 1 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 1 0 1 1 0 0 1 0 0 1 0 1 ...

result:

ok Good plan

Test #84:

score: 0
Accepted
time: 43ms
memory: 12656kb

input:

71206 117891
54656 1 2535 1
43244 0 48736 1
66877 0 41268 1
31539 1 39967 0
1625 1 34347 0
6694 1 38780 1
59259 0 54219 1
33091 0 4290 0
22581 1 10693 0
14752 0 47227 0
23982 0 20808 0
12284 0 39304 1
47097 1 37279 1
22742 1 26324 0
42978 0 29378 1
575 0 50743 0
64068 0 3144 0
8344 0 50804 0
47946 0...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 ...

result:

ok Good plan

Test #85:

score: 0
Accepted
time: 66ms
memory: 13400kb

input:

63200 163055
33761 1 13288 1
44275 1 23333 0
50410 1 15739 1
43832 1 58188 1
922 1 51074 0
14611 1 47964 1
5380 1 2933 0
15374 1 11264 1
17534 1 27654 0
34009 1 27103 1
43691 0 4076 1
27674 0 60637 1
29154 1 60490 0
31631 0 26899 1
7597 0 42704 0
39225 0 298 0
22249 1 42962 1
56220 1 13038 1
50567 1...

output:

Yes
0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 1 1 0 0 1 1 1 0 1 0 0 0 0 0 1 0 1 1 1 0 1 0 0 0 1 0 0 0 0 0 1 0 1 1 1 1 0 0 1 1 0 0 1 0 0 1 1 0 0 0 0 0 1 1 1 0 0 0 0 1 1 0 1 1 0 0 0 1 0 0 1 0 1 1 1 0 0 1 1 0 0 0 1 0 1 1 1 1 1 0 0 0 0 0 0 1 0 0 1 1 0 0 0 1 0 0 1 1 1 1 0 1 0 1 0 0 0 0 1 1 1 0 1 1 1 1 1 0 0 0 ...

result:

ok Good plan

Test #86:

score: 0
Accepted
time: 63ms
memory: 14072kb

input:

67914 176564
19648 0 6912 0
45035 1 28996 0
16155 0 59421 1
9481 1 54356 0
31780 0 62180 1
34716 0 49428 1
16782 0 14634 1
55490 1 12737 1
9450 0 356 0
63283 1 3347 1
22907 0 27019 1
34260 1 50638 1
51978 1 29380 0
12212 1 35667 0
17463 1 48849 1
51768 0 65603 1
52250 0 16068 0
61856 1 58930 0
6877 ...

output:

Yes
1 1 0 0 1 0 1 0 0 1 1 1 0 0 0 1 0 0 0 1 1 1 0 0 0 0 0 1 0 0 1 0 1 1 0 0 1 1 1 0 1 1 0 0 0 1 1 1 1 0 1 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 1 1 1 1 0 1 0 1 1 0 0 0 0 0 1 0 0 1 0 0 1 0 1 0 0 1 1 1 0 1 0 1 0 1 1 1 0 0 1 1 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 1 0 0 1 1 1 0 0 0 0 1 0 1 0 1 0 1 0 ...

result:

ok Good plan

Test #87:

score: 0
Accepted
time: 29ms
memory: 8652kb

input:

17682 84512
15315 0 364 1
2300 1 11450 1
7163 1 9309 0
9501 0 15052 0
8580 0 7449 1
16270 0 12762 1
8053 0 10095 1
2067 0 16423 1
13066 0 6233 1
4653 0 1927 0
5499 1 8444 1
328 1 537 1
10828 0 7080 0
4679 0 17082 0
10416 0 13725 0
8935 0 10966 0
3517 0 12343 1
9839 1 15494 0
12033 1 2493 1
17155 1 1...

output:

No

result:

ok No Solution

Test #88:

score: 0
Accepted
time: 50ms
memory: 11756kb

input:

35345 154821
15905 0 7675 0
18845 1 32536 0
21232 0 25895 1
29043 0 27177 1
20770 1 31780 1
10379 0 24606 1
13022 0 24823 0
24573 1 34702 0
31298 1 16180 1
27191 0 6257 1
11502 0 18782 1
19749 1 34404 1
26976 1 6040 1
31895 0 21060 1
1299 1 23233 1
27481 0 12726 1
17359 0 1837 1
9106 0 24808 0
12209...

output:

Yes
0 0 1 0 0 1 1 0 0 0 1 1 1 0 0 0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 1 0 0 0 0 1 1 0 0 0 0 1 0 1 1 1 1 0 1 1 1 1 0 1 1 0 0 0 1 1 1 0 0 1 0 0 1 1 0 1 1 1 1 0 1 0 0 0 0 1 0 0 1 0 1 1 0 1 1 1 1 1 1 0 0 1 0 1 1 0 0 0 1 1 0 0 1 1 1 1 1 0 0 0 1 1 1 1 0 1 0 1 1 0 0 1 0 1 1 1 1 0 0 0 1 1 0 0 1 0 1 0 0 1 1 1 1 1 ...

result:

ok Good plan

Test #89:

score: 0
Accepted
time: 64ms
memory: 13612kb

input:

68164 189026
25793 1 25405 0
31335 0 48475 1
67294 0 23880 0
59138 0 59110 1
6401 1 37815 0
65743 1 12022 1
19959 1 37205 0
5737 1 50988 0
66248 0 50802 1
56737 1 59611 0
58019 0 20608 0
7733 0 7006 0
1804 0 61706 1
8767 1 29804 1
61374 0 20177 0
16200 1 53928 1
61766 1 59414 1
57665 1 47109 0
65354...

output:

Yes
0 0 1 0 0 1 0 0 0 1 1 1 0 1 1 1 1 1 0 1 1 0 0 0 1 1 0 1 1 1 1 0 1 0 0 1 0 1 1 1 0 0 1 0 1 1 1 1 0 0 1 1 1 0 1 1 1 1 0 0 0 1 1 0 0 0 1 0 0 0 1 0 0 1 1 0 1 1 0 1 0 0 1 0 0 0 1 1 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 1 0 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 1 1 1 1 1 1 0 1 0 0 0 0 1 1 1 0 0 0 1 1 0 0 1 1 1 1 1 1 ...

result:

ok Good plan

Test #90:

score: 0
Accepted
time: 73ms
memory: 14232kb

input:

71142 181629
68911 1 21802 1
2545 0 140 1
30577 0 67992 0
38281 1 17838 0
44769 1 5125 1
21529 0 53500 0
43683 0 28977 0
23841 1 44799 1
4625 0 7299 1
4 1 59443 1
16133 1 57025 0
59830 1 45441 1
25243 1 31737 0
63231 1 12558 1
6694 0 68087 0
34190 1 59234 1
18652 1 66172 0
25307 0 36939 0
47804 1 40...

output:

Yes
0 0 0 1 0 0 0 0 1 1 0 1 1 1 0 1 0 0 1 0 1 1 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 1 0 1 1 0 1 0 1 1 1 1 0 1 0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 1 1 0 1 0 1 1 1 1 1 1 1 0 1 1 0 1 0 1 1 1 0 1 0 0 0 1 0 0 0 1 0 0 1 1 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 1 1 0 1 0 1 0 0 1 0 1 0 ...

result:

ok Good plan

Test #91:

score: 0
Accepted
time: 36ms
memory: 10764kb

input:

27893 132713
4529 1 15865 1
3152 1 12775 1
9216 0 22100 1
27119 1 26220 0
318 0 8969 0
15481 0 15333 0
14873 0 18223 0
8659 1 3258 1
15056 1 22469 1
19242 1 5757 0
27297 1 5846 0
7519 0 17968 0
26938 0 6549 0
6970 1 6002 0
8407 1 27334 1
25280 1 25212 0
23804 0 17545 0
21330 0 11305 1
13418 1 27433 ...

output:

Yes
0 0 0 1 0 0 0 0 1 1 1 0 1 1 0 1 1 1 1 1 1 0 1 1 1 0 1 0 1 0 0 0 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 1 0 0 1 1 1 1 1 1 0 0 1 1 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 1 0 1 1 0 0 1 1 0 0 0 0 0 1 1 1 1 1 1 0 1 0 0 0 1 0 0 0 0 1 1 1 1 1 0 1 0 1 1 0 1 0 1 1 1 0 0 0 0 1 0 0 1 0 1 0 0 0 ...

result:

ok Good plan

Test #92:

score: 0
Accepted
time: 63ms
memory: 13848kb

input:

73974 184566
32734 0 16793 1
54928 0 26532 0
21375 0 32333 1
34907 0 38197 0
65753 1 46135 1
45717 0 2252 0
73952 0 7364 0
11352 1 39774 0
31458 1 22303 0
40781 0 32141 0
27178 1 58267 1
52490 1 5193 1
7800 1 44839 1
49431 1 14752 1
42647 0 54587 1
6303 1 53643 1
9863 0 36898 1
21901 0 68510 1
48553...

output:

Yes
0 0 0 0 0 0 0 1 1 0 0 1 0 0 1 0 0 0 0 0 0 0 1 1 1 1 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 1 1 1 0 0 0 1 1 0 1 0 1 0 1 0 0 1 1 0 0 0 0 1 1 0 1 0 1 0 1 0 0 0 0 1 0 0 1 1 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1 1 1 0 1 1 0 0 1 0 0 1 1 1 0 1 1 0 1 0 1 0 0 0 0 1 1 1 1 0 0 1 0 0 0 1 1 0 0 0 1 0 0 1 0 0 1 ...

result:

ok Good plan

Test #93:

score: 0
Accepted
time: 3ms
memory: 7168kb

input:

8685 33306
3976 1 1978 0
174 0 3250 0
2070 0 4373 0
3722 0 1280 1
3486 0 6956 0
8284 1 3014 0
7992 0 344 1
1989 1 2418 0
4559 0 7899 1
6607 0 8282 0
144 1 3469 1
2740 1 6654 0
1055 1 1168 0
5486 1 7128 0
2061 0 1339 1
3724 1 8425 0
1590 1 7566 1
8168 0 7702 1
1811 0 702 1
3761 0 7791 0
7148 0 3990 1...

output:

Yes
0 1 1 0 0 0 0 1 1 0 0 1 1 0 0 0 1 0 1 0 0 0 1 0 1 0 1 1 0 0 0 1 1 1 0 0 0 1 0 0 0 1 1 0 1 1 1 1 0 1 1 0 0 1 1 0 1 0 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 1 0 1 0 1 1 1 0 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 0 0 0 1 0 0 1 0 1 1 1 0 1 0 0 0 0 0 0 0 1 0 1 0 1 1 1 1 0 1 1 1 0 0 1 0 0 0 1 0 1 0 1 0 1 1 0 0 1 0 1 1 ...

result:

ok Good plan

Test #94:

score: 0
Accepted
time: 44ms
memory: 9396kb

input:

28332 136836
835 0 11494 0
5462 1 6188 0
16403 1 15335 1
8242 1 12682 1
13628 0 1577 1
12168 0 2711 0
23798 1 7148 1
8806 1 8859 0
25635 0 3456 1
19352 1 18738 1
1524 0 16979 0
17739 1 12383 1
3023 1 10797 0
11839 1 3563 0
17384 1 9161 1
4411 1 58 0
6863 1 17122 1
8871 1 3915 1
27439 1 23692 1
5391 ...

output:

Yes
0 1 0 0 0 1 0 0 1 1 0 0 0 1 1 1 1 0 0 1 1 1 0 1 1 1 1 0 0 1 0 0 0 1 1 0 1 0 1 0 1 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 1 0 1 0 0 1 1 0 1 0 0 0 1 1 0 1 1 0 0 1 0 1 1 1 1 0 1 0 0 1 0 0 0 0 1 0 0 1 0 1 1 0 0 1 1 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 1 1 0 0 1 0 0 0 ...

result:

ok Good plan

Test #95:

score: 0
Accepted
time: 59ms
memory: 11436kb

input:

47653 158849
4154 0 4928 0
13250 1 23139 0
3676 0 19595 1
24210 0 15010 0
47191 0 20078 1
37141 1 39438 0
23070 0 9693 1
35800 0 27288 0
16925 1 10026 1
7550 0 19408 0
29808 1 6684 0
5735 1 7290 1
2217 0 6563 0
22179 1 8252 0
20577 1 19354 0
41827 0 2510 0
31975 0 34465 0
5851 1 4321 0
5057 1 23341 ...

output:

Yes
1 0 0 0 0 1 0 0 1 1 1 0 1 1 0 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 0 1 0 1 0 0 0 0 0 1 0 0 1 0 1 0 1 0 0 0 0 1 0 0 1 1 1 1 1 0 0 1 0 1 0 0 1 1 1 1 1 1 1 1 0 0 1 1 0 0 0 0 0 1 0 1 0 1 0 0 1 0 0 0 1 0 0 1 1 1 0 1 1 1 1 1 0 1 0 1 1 0 0 0 0 0 1 1 1 0 0 1 1 1 1 0 0 0 0 1 1 0 1 0 0 1 0 1 0 0 0 0 0 0 ...

result:

ok Good plan

Test #96:

score: 0
Accepted
time: 44ms
memory: 9876kb

input:

30571 137170
23450 0 30435 1
11347 1 24564 1
21694 0 17578 1
2907 0 23942 1
13694 1 25918 0
13071 0 20377 1
7037 0 16752 0
5887 0 24199 1
3685 1 15005 0
16840 1 7508 0
23633 0 9553 0
9841 1 53 1
13462 0 2036 0
29202 0 12437 0
24487 1 2368 1
1470 0 29606 1
2234 0 23712 1
15454 1 4023 0
15241 0 24853 ...

output:

Yes
1 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 0 1 0 1 0 0 0 0 1 0 0 1 0 0 0 0 1 1 1 1 0 0 1 0 0 0 1 1 1 1 0 0 0 1 1 0 0 1 0 1 1 1 1 1 0 0 1 1 1 0 1 1 1 1 1 1 1 1 1 0 0 1 1 1 0 0 0 0 0 1 0 0 1 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 0 1 0 0 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 0 0 1 1 1 0 0 0 0 0 0 1 1 0 1 1 1 ...

result:

ok Good plan

Test #97:

score: 0
Accepted
time: 30ms
memory: 6700kb

input:

8519 107137
7247 0 7940 1
3411 1 4415 1
7799 1 7330 1
1748 1 5187 1
5838 0 7759 1
3000 1 6590 0
5236 1 8503 0
2837 1 1236 1
8175 0 4443 1
7842 0 2860 0
1263 1 7682 0
3222 0 6856 0
5511 1 5149 1
1468 1 6161 1
5717 1 1212 1
1641 0 1806 0
3216 1 566 0
8460 1 6960 1
7131 0 4004 1
4794 1 6293 1
1790 0 19...

output:

Yes
0 0 1 1 0 1 1 1 0 1 0 1 1 0 0 1 1 1 1 0 0 1 0 0 1 0 0 0 1 1 1 1 1 1 1 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 1 0 0 1 1 0 0 0 1 0 1 0 1 0 0 1 1 1 0 1 1 0 0 0 1 1 1 1 1 0 0 1 0 0 0 1 1 1 0 0 1 0 0 0 0 0 1 1 0 0 0 1 1 0 1 1 1 0 1 1 1 0 0 1 0 0 1 0 1 0 1 0 1 1 1 0 1 0 0 1 0 1 0 1 0 0 1 1 1 0 0 0 1 0 0 1 0 0 ...

result:

ok Good plan

Test #98:

score: 0
Accepted
time: 42ms
memory: 8552kb

input:

21363 121994
5115 0 10659 1
16720 1 7572 1
2026 1 11466 0
5290 0 4606 1
5461 0 2558 1
20548 1 6037 0
12263 0 12895 1
15279 1 18202 1
18294 0 18408 1
12289 1 11323 0
5894 0 5969 1
7017 0 12377 0
3030 0 13197 1
3737 1 10120 1
3245 0 17132 1
1514 0 2620 0
10420 1 7569 0
3688 1 15427 0
12914 1 6285 0
19...

output:

Yes
0 0 1 1 1 1 1 0 1 1 1 0 0 1 1 1 1 1 1 1 0 1 0 0 1 0 0 0 0 1 0 1 1 1 1 1 1 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 1 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 1 1 1 0 0 1 1 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 1 0 1 0 0 0 0 1 1 1 1 1 0 0 1 1 0 1 1 0 0 0 0 1 0 1 1 0 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 1 1 0 1 1 0 0 0 1 0 1 1 ...

result:

ok Good plan

Test #99:

score: 0
Accepted
time: 35ms
memory: 12648kb

input:

74490 82959
39471 1 72183 0
16028 0 66901 1
35043 0 8873 1
51534 1 22843 0
1907 1 35267 1
23216 1 34011 0
63700 1 48878 1
54908 0 52038 0
20156 1 3230 1
63915 0 44176 0
32366 1 44308 0
8136 1 22207 1
68988 1 29672 1
52867 0 42703 1
26499 0 12001 0
20162 0 21865 1
21247 1 19551 0
73830 0 35071 0
1420...

output:

Yes
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok Good plan

Test #100:

score: 0
Accepted
time: 35ms
memory: 7884kb

input:

12579 133166
12196 1 3504 0
8681 1 6620 1
592 0 8507 0
9467 0 5154 0
9258 1 12276 1
2442 0 5068 1
4454 1 8446 1
9476 0 6081 0
12119 1 4593 1
9186 0 3806 0
1095 0 55 0
1421 1 2856 0
11287 1 6442 1
9652 1 3001 0
10096 0 11462 0
2986 0 11147 1
8909 0 9913 1
5460 1 10162 0
3826 0 2992 1
409 0 2088 1
350...

output:

Yes
1 1 0 1 1 0 0 1 1 0 1 0 0 1 0 1 0 0 0 1 0 1 1 1 1 0 0 1 0 1 0 1 1 1 0 1 0 1 0 1 1 1 0 0 1 0 1 1 1 1 0 1 1 1 0 0 1 0 1 0 0 0 0 1 1 0 1 0 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 1 0 1 1 1 0 0 0 1 1 1 1 0 1 1 1 0 0 1 1 0 1 1 0 1 1 0 1 1 0 1 0 0 0 0 0 1 1 1 1 0 1 1 1 1 1 1 1 0 1 0 1 1 0 0 1 0 ...

result:

ok Good plan