結果

問題 No.427 テレビ
ユーザー yuma220284
提出日時 2019-04-05 11:36:34
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 138 bytes
コンパイル時間 1,565 ms
コンパイル使用メモリ 154,548 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2025-01-02 23:31:14
合計ジャッジ時間 2,287 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 5 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:9: warning: ‘H’ is used uninitialized [-Wuninitialized]
    6 |         if (H > W) cout << "TATE" << endl;
      |         ^~
main.cpp:5:13: note: ‘H’ was declared here
    5 |         int H, W;
      |             ^
main.cpp:6:9: warning: ‘W’ is used uninitialized [-Wuninitialized]
    6 |         if (H > W) cout << "TATE" << endl;
      |         ^~
main.cpp:5:16: note: ‘W’ was declared here
    5 |         int H, W;
      |                ^

ソースコード

diff #

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

int main() {
	int H, W;
	if (H > W) cout << "TATE" << endl;
	else cout << "YOKO" << endl;
}
0