結果

問題 No.427 テレビ
ユーザー himohimo
提出日時 2019-09-20 16:29:43
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 286 bytes
コンパイル時間 1,674 ms
コンパイル使用メモリ 144,148 KB
実行使用メモリ 4,480 KB
最終ジャッジ日時 2023-10-12 08:07:15
合計ジャッジ時間 2,077 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,352 KB
testcase_01 WA -
testcase_02 AC 1 ms
4,352 KB
testcase_03 WA -
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 2 ms
4,352 KB
testcase_07 AC 1 ms
4,352 KB
testcase_08 WA -
testcase_09 AC 2 ms
4,352 KB
権限があれば一括ダウンロードができます

ソースコード

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