#693

https://codeforces.com/contest/1472/problem/A

重点:每折叠一次纸的片数都会增加一倍

//
// Created by w on 2021/1/4.
//

#include <iostream>
using namespace  std;
int main()
{
    long long  t;
    cin>>t;
    while (t--)
    {
        long long  w,h,n;
        cin>>w>>h>>n;
//        if(n==1)
//            cout<<"YES"<<endl;
//        else if(w%2==1&&h%2==1)
//            cout<<"NO"<<endl;

            long long  tmp1=1;

                while (w%2==0)
                {
                    tmp1*=2;
                    w=w/2;
                    //cout<<w<<endl;
                }

                while (h%2==0)
                {
                    tmp1*=2;
                    h/=2;
                    //cout<<h<<endl;
                }

//            int minn=min(w,h);
//            int maxx=max(w,h);
//            cout<<tmp1<<endl;
//            cout<<tmp2<<endl;
            if(tmp1>=n)
                cout<<"YES"<<endl;
            else
                cout<<"NO"<<endl;

    }
    return  0;
}

 

posted @ 2021-01-05 17:14  BlackSnow  阅读(57)  评论(0)    收藏  举报