B4117 题解

· · 题解

直接按照题意模拟即可。

int A,B,C;
cin>>A>>B>>C;
putchar(A+B+C<=21?'1':'0');