結果

問題 No.427 テレビ
ユーザー velfare_nagata
提出日時 2016-10-03 20:13:02
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 515 bytes
コンパイル時間 2,267 ms
コンパイル使用メモリ 108,480 KB
実行使用メモリ 26,008 KB
最終ジャッジ日時 2024-12-21 17:10:43
合計ジャッジ時間 1,757 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections;
using System.Diagnostics;

namespace CodeIq
{
	internal class Program
	{
		private static void Main()
		{
			// パラメータ取得
			var line = Console.ReadLine();
			if( string.IsNullOrEmpty( line ) )
				return;

			// 縦:横の比率が4:3(縦)、3:4(横)しかこないならこれで良いのかな?
			var h = int.Parse( line.Split( ' ' )[0] );
			var w = int.Parse( line.Split( ' ' )[1] );
			Console.WriteLine( ( h > w ) ? "TATE" : "YOKO" );
		}
	}
}
0