結果

問題 No.427 テレビ
ユーザー himo
提出日時 2019-09-20 16:29:43
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 286 bytes
コンパイル時間 1,295 ms
コンパイル使用メモリ 159,916 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-14 07:13:56
合計ジャッジ時間 1,877 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 6 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
using namespace std;

int main(){
int h,w;
cin >>h >>w;
int i=1;
bool ans =false;
while(1){
int H =pow(4,i),W=pow(3,i);
if(h==H&&W==w){
    cout <<"TATE"<<endl;
    ans =true;
    break;
}
if(H>h||W>w){
    break;
}
i++;
}
if(!ans){
    cout <<"YOKO"<<endl;
}
}
0