Codeforces 1337B. Kana and Dragon Quest game Solution
Solution in C++:
- ///**********ALLAH IS ALMIGHTY************///
- ///AH Tonmoy
- ///Department of CSE,23rd batch
- ///Islamic University,Bangladesh
- #include<iostream>
- using namespace std;
- int main()
- {
- int t,m,n,a,v,c;
- cin>>t;
- while(t--)
- {
- cin>>a>>n>>m;
- while(n--)
- {
- c=a;
- v=a/2+10;
- a=min(v,c);
- }
- if(a-(m*10)<=0)
- cout<<"YES"<<endl;
- else
- cout<<"NO"<<endl;
- }
- }
No comments