結果

問題 No.427 テレビ
ユーザー yukiteruyukiteru
提出日時 2017-10-21 21:57:34
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 495 bytes
コンパイル時間 674 ms
コンパイル使用メモリ 76,908 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-05-01 09:20:24
合計ジャッジ時間 1,449 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
6,944 KB
testcase_02 WA -
testcase_03 AC 1 ms
6,944 KB
testcase_04 AC 1 ms
6,944 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 1 ms
6,940 KB
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:24:13: warning: 'h' is used uninitialized [-Wuninitialized]
   24 |         if(h/4==w/3){
      |            ~^~
main.cpp:23:13: note: 'h' was declared here
   23 |         int h, w;
      |             ^
main.cpp:24:18: warning: 'w' is used uninitialized [-Wuninitialized]
   24 |         if(h/4==w/3){
      |                 ~^~
main.cpp:23:16: note: 'w' was declared here
   23 |         int h, w;
      |                ^

ソースコード

diff #

#include<iostream>
#include<string>
#include<string.h>
#include<algorithm>
#include<stdio.h>
#include<cmath>
#include<vector>
#include<utility>
#include<stack>
#include<queue>
#include<list>
#include<bitset>

#define FOR(i, a, b) for(int i=(a);i<=(b);i++)
#define RFOR(i, a, b) for(int i=(a);i>=(b);i--)
#define MOD 1000000007
#define INF 1000000000

using namespace std;


int main(void) {
	int h, w;
	if(h/4==w/3){
		cout << "TATE" << endl;
	}
	else {
		cout << "YOKO" << endl;
	}
	return 0;
}
0