結果

問題 No.427 テレビ
コンテスト
ユーザー umaumax
提出日時 2017-05-01 16:19:53
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 209 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 495 ms
コンパイル使用メモリ 57,708 KB
最終ジャッジ日時 2026-04-04 09:25:46
合計ジャッジ時間 909 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
main.cpp: In function 'int main(int, const char**)':
main.cpp:7:9: error: 'uint64_t' was not declared in this scope
    7 |         uint64_t H, W;
      |         ^~~~~~~~
main.cpp:2:1: note: 'uint64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
    1 | #include <iostream>
  +++ |+#include <cstdint>
    2 | 
main.cpp:8:16: error: 'H' was not declared in this scope
    8 |         cin >> H >> W;
      |                ^
main.cpp:8:21: error: 'W' was not declared in this scope
    8 |         cin >> H >> W;
      |                     ^

ソースコード

diff #
raw source code

#include <iostream>

using namespace std;

int main(int argc, const char* argv[])
{
	uint64_t H, W;
	cin >> H >> W;
	if (H > W) {
		cout << "TATE" << endl;
	}
	else {
		cout << "YOKO" << endl;
	}
	return 0;
}
0