QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#770158 | #9274. Hungry Cannibals | N_z_ | AC ✓ | 1ms | 3732kb | C++23 | 6.3kb | 2024-11-21 20:54:16 | 2024-11-21 20:54:20 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
struct time_helper{
#ifdef LOCAL
clock_t time_last;time_helper(){time_last=clock();}void test(){auto time_now=clock();std::cerr<<"time:"<<1.*(time_now-time_last)/CLOCKS_PER_SEC<<";all_time:"<<1.*time_now/CLOCKS_PER_SEC<<std::endl;time_last=time_now;}~time_helper(){test();}
#else
void test(){}
#endif
}time_helper;
#ifdef LOCAL
#include"dbg.h"
#else
#define dbg(...) (__VA_ARGS__)
#endif
namespace Fread{const int SIZE=1<<16;char buf[SIZE],*S,*T;inline char getchar(){if(S==T){T=(S=buf)+fread(buf,1,SIZE,stdin);if(S==T)return'\n';}return *S++;}}namespace Fwrite{const int SIZE=1<<16;char buf[SIZE],*S=buf,*T=buf+SIZE;inline void flush(){fwrite(buf,1,S-buf,stdout);S=buf;}inline void putchar(char c){*S++=c;if(S==T)flush();}struct NTR{~NTR(){flush();}}ztr;}
#define getchar Fread::getchar
#define putchar Fwrite::putchar
int print_precision=10;bool print_T_endl=1;char print_between=' ';
template<typename T>struct is_char{static constexpr bool value=(std::is_same<T,char>::value||std::is_same<T,signed char>::value||std::is_same<T,unsigned char>::value);};template<typename T>struct is_integral_ex{static constexpr bool value=(std::is_integral<T>::value||std::is_same<T,__int128>::value)&&!is_char<T>::value;};template<typename T>struct is_floating_point_ex{static constexpr bool value=std::is_floating_point<T>::value||std::is_same<T,__float128>::value;};namespace Fastio{struct Reader;struct Writer;template<size_t id>struct read_tuple{template<typename...T>static void read(Reader&stream,std::tuple<T...>&x){read_tuple<id-1>::read(stream,x);stream>>get<id-1>(x);}};template<>struct read_tuple<0>{template<typename...T>static void read([[maybe_unused]]Reader&stream,[[maybe_unused]]std::tuple<T...>&x){}};template<size_t id>struct print_tuple{template<typename...T>static void print(Writer&stream,const std::tuple<T...>&x){print_tuple<id-1>::print(stream,x);putchar(print_between);stream<<get<id-1>(x);}};template<>struct print_tuple<1>{template<typename...T>static void print(Writer&stream,const std::tuple<T...>&x){stream<<get<0>(x);}};template<>struct print_tuple<0>{template<typename...T>static void print([[maybe_unused]]Writer&stream,[[maybe_unused]]const std::tuple<T...>&x){}};
struct Reader{template<typename T>typename std::enable_if_t<std::is_class<T>::value,Reader&>operator>>(T&x){for(auto &y:x)*this>>y;return *this;}template<typename...T>Reader&operator>>(std::tuple<T...>&x){read_tuple<sizeof...(T)>::read(*this,x);return *this;}template<typename T>typename std::enable_if_t<is_integral_ex<T>::value,Reader&>operator>>(T&x){char c=getchar();short f=1;while(c<'0'||c>'9'){if(c=='-')f*=-1;c=getchar();}x=0;while(c>='0'&&c<='9'){x=(x<<1)+(x<<3)+(c^48);c=getchar();}x*=f;return *this;}template<typename T>typename std::enable_if_t<is_floating_point_ex<T>::value,Reader&>operator>>(T&x){char c=getchar();short f=1,s=0;x=0;T t=0;while((c<'0'||c>'9')&&c!='.'){if(c=='-')f*=-1;c=getchar();}while(c>='0'&&c<='9'&&c!='.')x=x*10+(c^48),c=getchar();if(c=='.')c=getchar();else return x*=f,*this;while(c>='0'&&c<='9')t=t*10+(c^48),s++,c=getchar();while(s--)t/=10.0;x=(x+t)*f;return*this;}template<typename T>typename std::enable_if_t<is_char<T>::value,Reader&>operator>>(T&c){c=getchar();while(c=='\n'||c==' '||c=='\r')c=getchar();return *this;}Reader&operator>>(char*str){int len=0;char c=getchar();while(c=='\n'||c==' '||c=='\r')c=getchar();while(c!='\n'&&c!=' '&&c!='\r')str[len++]=c,c=getchar();str[len]='\0';return*this;}template<typename T1,typename T2>Reader&operator>>(std::pair<T1,T2>&x){*this>>x.first>>x.second;return *this;}Reader&operator>>(std::string&str){str.clear();char c=getchar();while(c=='\n'||c==' '||c=='\r')c=getchar();while(c!='\n'&&c!=' '&&c!='\r')str.push_back(c),c=getchar();return*this;}Reader(){}}cin;const char endl='\n';
struct Writer{typedef __int128 mxdouble;template<typename T>typename std::enable_if_t<std::is_class<T>::value,Writer&>operator<<(const T&x){for(auto q:x){*this<<q;if(!is_class<decltype(q)>::value)*this<<print_between;}if(!is_class<typename T::value_type>::value&&print_T_endl)*this<<'\n';return *this;}template<typename...T>Writer&operator<<(const std::tuple<T...>&x){print_tuple<sizeof...(T)>::print(*this,x);if(print_T_endl)*this<<'\n';return *this;}template<typename T>typename std::enable_if_t<is_integral_ex<T>::value,Writer&>operator<<(T x){if(x==0)return putchar('0'),*this;if(x<0)putchar('-'),x=-x;static int sta[45];int top=0;while(x)sta[++top]=x%10,x/=10;while(top)putchar(sta[top]+'0'),--top;return*this;}template<typename T>typename std::enable_if_t<is_floating_point_ex<T>::value,Writer&>operator<<(T x){if(x<0)putchar('-'),x=-x;x+=pow(10,-print_precision)/2;mxdouble _=x;x-=(T)_;static int sta[45];int top=0;while(_)sta[++top]=_%10,_/=10;if(!top)putchar('0');while(top)putchar(sta[top]+'0'),--top;putchar('.');for(int i=0;i<print_precision;i++)x*=10;_=x;while(_)sta[++top]=_%10,_/=10;for(int i=0;i<print_precision-top;i++)putchar('0');while(top)putchar(sta[top]+'0'),--top;return*this;}template<typename T>typename std::enable_if_t<is_char<T>::value,Writer&>operator<<(const T&c){putchar(c);return*this;}Writer&operator<<(char*str){int cur=0;while(str[cur])putchar(str[cur++]);return *this;}Writer&operator<<(const char*str){int cur=0;while(str[cur])putchar(str[cur++]);return*this;}template<typename T1,typename T2>Writer&operator<<(const std::pair<T1,T2>&x){*this<<x.first<<print_between<<x.second;if(print_T_endl)*this<<'\n';return *this;}Writer&operator<<(const std::string&str){int st=0,ed=str.size();while(st<ed)putchar(str[st++]);return*this;}Writer(){}}cout;}
#define cin Fastio::cin
#define cout Fastio::cout
#define endl Fastio::endl
template<class Fun>class y_combinator_result{Fun fun_;public:template<class T>explicit y_combinator_result(T &&fun): fun_(std::forward<T>(fun)) {}template<class ...Args>decltype(auto) operator()(Args &&...args){return fun_(std::ref(*this), std::forward<Args>(args)...);}};template<class Fun>decltype(auto) y_combinator(Fun &&fun){return y_combinator_result<std::decay_t<Fun>>(std::forward<Fun>(fun));}
void init();void solve(int tc);
main()
{
init();int t=1;
cin>>t;
for(int tc=1;tc<=t;tc++)solve(tc);
}
void init()
{
}
void solve([[maybe_unused]]int tc)
{
int a,x,b,y;
cin>>a>>x>>b>>y;
if(x+y>=1&&(b-a>=2||b-a>=1&&(x*y>=1||b<=2||y>=1&&b<=3)||b==a&&(x*y>=1&&a<=3||b<=1||y>=1&&b<=2)))cout<<"Yes"<<endl;
else cout<<"No"<<endl;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3652kb
input:
4 2 0 2 1 1 1 4 0 2 1 2 0 3 1 3 1
output:
Yes Yes No Yes
result:
ok 4 tokens
Test #2:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
6 0 0 1 0 1 0 1 0 1 1 1 0 0 0 1 1 1 0 1 1 1 1 1 1
output:
No No Yes Yes Yes Yes
result:
ok 6 tokens
Test #3:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
24 0 0 1 0 1 0 1 0 1 1 1 0 0 0 1 1 1 0 1 1 1 1 1 1 0 0 2 0 1 0 2 0 1 1 2 0 2 0 2 0 2 1 2 0 2 2 2 0 0 0 2 1 1 0 2 1 1 1 2 1 2 0 2 1 2 1 2 1 2 2 2 1 0 0 2 2 1 0 2 2 1 1 2 2 2 0 2 2 2 1 2 2 2 2 2 2
output:
No No Yes Yes Yes Yes No No Yes No No No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
result:
ok 24 tokens
Test #4:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
64 0 0 1 0 1 0 1 0 1 1 1 0 0 0 1 1 1 0 1 1 1 1 1 1 0 0 2 0 1 0 2 0 1 1 2 0 2 0 2 0 2 1 2 0 2 2 2 0 0 0 2 1 1 0 2 1 1 1 2 1 2 0 2 1 2 1 2 1 2 2 2 1 0 0 2 2 1 0 2 2 1 1 2 2 2 0 2 2 2 1 2 2 2 2 2 2 0 0 3 0 1 0 3 0 1 1 3 0 2 0 3 0 2 1 3 0 2 2 3 0 3 0 3 0 3 1 3 0 3 2 3 0 3 3 3 0 0 0 3 1 1 0 3 1 1 1 3 1 2...
output:
No No Yes Yes Yes Yes No No Yes No No No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No No Yes No No No No No No No Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes
result:
ok 64 tokens
Test #5:
score: 0
Accepted
time: 1ms
memory: 3588kb
input:
139 0 0 1 0 1 0 1 0 1 1 1 0 0 0 1 1 1 0 1 1 1 1 1 1 0 0 2 0 1 0 2 0 1 1 2 0 2 0 2 0 2 1 2 0 2 2 2 0 0 0 2 1 1 0 2 1 1 1 2 1 2 0 2 1 2 1 2 1 2 2 2 1 0 0 2 2 1 0 2 2 1 1 2 2 2 0 2 2 2 1 2 2 2 2 2 2 0 0 3 0 1 0 3 0 1 1 3 0 2 0 3 0 2 1 3 0 2 2 3 0 3 0 3 0 3 1 3 0 3 2 3 0 3 3 3 0 0 0 3 1 1 0 3 1 1 1 3 1 ...
output:
No No Yes Yes Yes Yes No No Yes No No No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No No Yes No No No No No No No Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes No No Yes No Yes Yes No No No No No No No No No Yes Yes Yes Yes...
result:
ok 139 tokens
Test #6:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
265 0 0 1 0 1 0 1 0 1 1 1 0 0 0 1 1 1 0 1 1 1 1 1 1 0 0 2 0 1 0 2 0 1 1 2 0 2 0 2 0 2 1 2 0 2 2 2 0 0 0 2 1 1 0 2 1 1 1 2 1 2 0 2 1 2 1 2 1 2 2 2 1 0 0 2 2 1 0 2 2 1 1 2 2 2 0 2 2 2 1 2 2 2 2 2 2 0 0 3 0 1 0 3 0 1 1 3 0 2 0 3 0 2 1 3 0 2 2 3 0 3 0 3 0 3 1 3 0 3 2 3 0 3 3 3 0 0 0 3 1 1 0 3 1 1 1 3 1 ...
output:
No No Yes Yes Yes Yes No No Yes No No No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No No Yes No No No No No No No Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes No No Yes No Yes Yes No No No No No No No No No Yes Yes Yes Yes...
result:
ok 265 tokens
Test #7:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
461 0 0 1 0 1 0 1 0 1 1 1 0 0 0 1 1 1 0 1 1 1 1 1 1 0 0 2 0 1 0 2 0 1 1 2 0 2 0 2 0 2 1 2 0 2 2 2 0 0 0 2 1 1 0 2 1 1 1 2 1 2 0 2 1 2 1 2 1 2 2 2 1 0 0 2 2 1 0 2 2 1 1 2 2 2 0 2 2 2 1 2 2 2 2 2 2 0 0 3 0 1 0 3 0 1 1 3 0 2 0 3 0 2 1 3 0 2 2 3 0 3 0 3 0 3 1 3 0 3 2 3 0 3 3 3 0 0 0 3 1 1 0 3 1 1 1 3 1 ...
output:
No No Yes Yes Yes Yes No No Yes No No No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No No Yes No No No No No No No Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes No No Yes No Yes Yes No No No No No No No No No Yes Yes Yes Yes...
result:
ok 461 tokens
Test #8:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
1000 0 0 3 1 1 0 3 1 0 0 3 0 0 0 6 1 0 0 7 2 4 2 4 2 0 0 7 4 2 0 5 4 1 1 2 1 0 0 2 2 4 4 5 2 0 0 1 0 4 1 5 0 4 3 4 1 4 0 4 3 0 0 4 0 1 1 3 1 2 1 2 1 1 1 2 0 0 0 3 0 0 0 7 2 3 2 4 1 6 1 7 1 1 1 1 0 1 1 4 0 0 0 4 1 0 0 4 3 5 5 7 2 2 1 3 2 0 0 7 1 0 0 5 0 1 1 4 4 2 2 3 0 0 0 3 3 2 1 4 1 4 0 4 2 2 0 4 1...
output:
Yes Yes No Yes Yes No Yes Yes Yes Yes Yes No No No No No Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes No Yes Yes No Yes Yes No Yes Yes No No Yes Yes No Yes No No Yes No Yes Yes Yes Yes No Yes Yes No Yes Yes Yes No No No Yes No No No Yes Yes Yes No Yes Yes No No Yes Yes Yes Yes No Ye...
result:
ok 1000 tokens
Test #9:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
1000 2 1 4 1 1 1 4 0 5 0 8 4 0 0 3 0 6 0 7 7 3 1 3 0 0 0 1 0 1 1 1 0 0 0 3 3 1 0 4 1 4 2 8 0 7 0 7 1 0 0 2 1 0 0 8 1 1 0 2 0 1 1 3 2 4 2 6 5 0 0 8 1 2 1 4 0 4 2 4 4 5 1 5 5 0 0 2 1 0 0 2 0 5 1 5 0 6 1 6 0 3 3 3 2 6 2 7 2 0 0 4 0 5 3 7 0 3 2 3 2 2 1 2 2 1 0 7 0 1 0 2 2 0 0 3 1 1 1 3 0 1 0 3 2 7 2 8 2...
output:
Yes Yes Yes No No No No Yes Yes Yes Yes No Yes Yes No Yes Yes Yes Yes No No Yes No No No Yes Yes No Yes Yes Yes No Yes Yes Yes Yes Yes No Yes Yes No Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No No Yes No Yes Yes No Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes No Yes Yes Yes Ye...
result:
ok 1000 tokens
Test #10:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
1000 7 3 8 8 3 3 3 2 1 1 1 1 1 1 4 2 1 1 4 2 1 1 3 0 0 0 4 1 2 1 5 0 1 1 3 3 4 0 4 0 3 1 4 0 0 0 2 2 3 0 8 1 1 1 2 1 1 0 2 1 7 2 8 2 7 0 9 0 3 1 3 3 3 0 5 2 1 0 8 4 1 0 3 2 2 0 6 0 0 0 3 2 3 0 4 1 7 1 9 0 0 0 3 1 6 4 9 1 0 0 9 2 1 1 2 2 3 0 4 0 0 0 2 0 3 1 3 1 0 0 2 2 1 0 2 1 0 0 9 4 1 1 2 2 0 0 3 1...
output:
Yes Yes Yes Yes Yes Yes Yes Yes Yes No No Yes Yes Yes Yes Yes No Yes Yes Yes Yes No Yes No Yes Yes Yes Yes Yes No No Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes No Yes Yes No Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes No Yes No Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes...
result:
ok 1000 tokens
Test #11:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
1000 7 0 10 2 0 0 6 2 3 0 4 4 1 1 4 0 1 1 1 1 0 0 3 1 3 3 5 2 5 0 8 2 2 0 3 0 0 0 2 2 1 0 6 0 2 1 3 0 0 0 3 2 1 0 2 0 1 1 4 1 2 1 8 4 1 1 3 3 0 0 1 0 3 3 4 2 2 2 5 2 1 0 6 2 0 0 2 0 0 0 3 3 1 1 1 1 1 1 4 3 2 2 4 1 1 1 4 2 2 2 9 0 3 3 6 1 5 2 8 6 2 0 4 1 0 0 10 2 2 1 10 0 1 0 10 1 0 0 2 2 0 0 2 1 2 1...
output:
Yes Yes No Yes Yes Yes Yes Yes No Yes No No Yes No Yes Yes Yes No Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes No No No Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No No Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes No Y...
result:
ok 1000 tokens
Test #12:
score: 0
Accepted
time: 1ms
memory: 3732kb
input:
1000 10 2 13 11 4 2 4 4 3 0 11 4 0 0 13 1 2 1 4 1 14 1 14 2 3 2 3 3 9 2 12 0 1 0 2 0 2 1 2 0 7 2 9 5 0 0 19 2 1 1 1 0 15 14 18 18 0 0 3 3 0 0 3 1 0 0 2 0 13 2 17 0 0 0 1 1 1 1 1 0 3 2 3 3 1 0 4 1 4 2 6 2 0 0 3 3 0 0 2 2 17 2 19 5 0 0 3 3 0 0 1 1 1 0 3 0 1 1 4 0 1 0 3 1 17 0 18 2 1 0 4 3 0 0 2 2 0 0 ...
output:
Yes No Yes Yes Yes No Yes Yes No No Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes No Yes Yes No No Yes Yes Yes Yes Yes Yes Yes No No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes No Yes Yes Yes No Yes Yes Yes No Yes ...
result:
ok 1000 tokens
Test #13:
score: 0
Accepted
time: 1ms
memory: 3588kb
input:
1000 1 1 3 3 2 1 3 0 0 0 2 1 30 2 33 2 21 0 24 0 2 0 3 0 2 1 3 0 41 0 50 0 34 0 37 2 44 13 45 33 1 0 4 1 1 1 2 0 39 0 42 2 2 0 2 2 1 0 2 2 1 0 2 2 20 2 46 2 26 0 28 2 0 0 1 0 2 2 4 1 24 19 27 8 43 1 46 0 2 0 2 1 0 0 3 0 0 0 3 2 2 1 45 1 1 1 1 0 36 0 38 10 0 0 3 0 27 23 47 1 43 40 44 0 0 0 1 1 0 0 2 ...
output:
Yes No Yes Yes No No No No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes No Yes Yes Yes Yes No Yes No Yes No Yes Yes No Yes Yes Yes No Yes No Yes Yes Yes Yes Yes Yes Yes Yes No No Yes Yes No Yes No No Yes Yes No No Yes No No Yes No Yes No Yes Yes Yes Yes Yes Yes No Yes No No Yes Yes No ...
result:
ok 1000 tokens
Test #14:
score: 0
Accepted
time: 1ms
memory: 3584kb
input:
1000 0 0 2 1 0 0 1 0 3 0 3 3 2 1 4 2 0 0 3 0 3 2 3 1 2 0 3 3 2 2 96 1 82 1 84 0 2 1 100 1 1 0 4 1 2 2 4 2 1 1 2 1 4 1 4 1 1 1 3 3 1 1 4 0 3 1 3 0 25 0 75 5 2 1 3 0 38 36 62 0 59 1 61 34 0 0 1 1 0 0 2 1 1 0 1 0 3 3 4 4 1 1 4 0 1 0 3 1 2 1 3 0 1 1 88 1 29 5 93 0 23 4 85 1 3 0 4 0 1 0 2 2 2 2 4 3 2 0 4...
output:
Yes No No Yes No Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes No Yes No Yes Yes Yes Yes No Yes Yes Yes No Yes Yes Yes No Yes Yes Yes No Yes Yes No Yes Yes No No Yes Yes Yes Yes Yes No No Yes Yes Yes Yes No Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No No Yes Yes Yes...
result:
ok 1000 tokens
Test #15:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
1000 81 24 157 2 1 1 4 1 0 0 3 3 18 0 184 0 3 1 4 4 2 2 4 1 2 1 3 1 4 3 4 2 1 1 3 0 0 0 2 2 74 0 74 2 1 1 4 4 2 0 4 1 32 0 35 2 36 1 109 0 0 0 1 1 31 2 32 0 15 2 143 2 1 0 3 3 0 0 2 1 3 0 4 1 1 0 3 1 3 1 4 0 2 0 2 1 1 1 4 2 4 4 4 0 74 1 77 23 1 0 2 0 1 1 2 0 0 0 3 1 1 1 3 3 0 0 1 1 0 0 3 3 151 0 152...
output:
Yes Yes Yes No Yes Yes Yes No Yes Yes No Yes Yes Yes Yes Yes No Yes Yes Yes No Yes No Yes Yes No Yes No Yes Yes Yes Yes Yes No No Yes Yes Yes No Yes No Yes No Yes Yes Yes Yes Yes No Yes Yes No No Yes Yes Yes No Yes Yes No Yes Yes No Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes ...
result:
ok 1000 tokens
Test #16:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
1000 1 0 3 3 4 0 4 0 210 0 270 30 3 0 4 2 2 2 2 1 157 1 159 103 1 0 4 3 3 1 4 4 1 1 3 2 212 152 214 197 96 43 261 1 1 1 2 0 1 0 2 0 273 0 276 2 7 2 469 1 475 2 478 420 0 0 1 1 2 1 4 1 2 1 4 0 1 0 3 2 20 1 361 2 1 0 1 1 298 226 455 2 16 1 434 229 1 1 4 4 119 47 390 0 3 1 3 1 1 0 2 1 0 0 1 0 27 2 29 2...
output:
Yes No Yes No Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes No Yes No Yes Yes No Yes Yes Yes No Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes No Yes Yes Yes Yes No Yes Yes Yes No No Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes...
result:
ok 1000 tokens
Test #17:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
1000 1 1 3 1 450 432 453 2 0 0 3 1 167 1 857 1 4 4 4 2 2 2 4 2 2 1 2 1 1 0 1 0 3 0 3 1 812 0 815 1 644 1 647 1 0 0 3 0 2 1 4 2 1 1 4 0 3 2 3 3 2 2 4 4 90 1 953 1 0 0 3 3 1 0 2 2 0 0 1 0 0 0 1 1 4 2 4 2 0 0 3 0 0 0 1 0 2 1 4 2 1 0 3 3 0 0 1 1 450 183 453 239 1 0 4 3 660 0 976 1 3 0 3 1 186 1 187 109 ...
output:
Yes Yes Yes Yes No Yes Yes No No Yes Yes No Yes Yes Yes Yes Yes Yes Yes No Yes No No No Yes Yes Yes Yes Yes Yes No Yes No No No No No No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes No Yes No No No No No No No Yes Yes Yes No No Yes No Yes Yes Yes Yes Yes Yes No Yes Yes Yes No Yes N...
result:
ok 1000 tokens
Extra Test:
score: 0
Extra Test Passed