题解 CF1337B 【Kana and Dragon Quest game】
题意:有一条生命为
贪心。
肯定先使用 A,操作,因为
所以,先一直使用 A 操作直到
#include<cstdio>
#define re register
inline int read(){
re int t=0;re char v=getchar();
while(v<'0')v=getchar();
while(v>='0')t=(t<<3)+(t<<1)+v-48,v=getchar();
return t;
}
int t,n,m,a,b,c,d;
int main(){
t=read();
while(t--){
n=read();a=read();b=read();
for(re int i=1;i<=a;++i)if(n/2+10>n)break;else n=n/2+10;
if(b*10>=n)puts("YES");
else puts("NO");
}
}