結果

問題 No.427 テレビ
ユーザー iYaipHiYaipH
提出日時 2016-11-19 12:29:27
言語 Crystal
(1.11.2)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 378 bytes
コンパイル時間 20,477 ms
コンパイル使用メモリ 254,672 KB
実行使用メモリ 4,524 KB
最終ジャッジ日時 2023-09-13 09:21:56
合計ジャッジ時間 19,150 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,392 KB
testcase_01 AC 3 ms
4,388 KB
testcase_02 AC 3 ms
4,464 KB
testcase_03 AC 3 ms
4,524 KB
testcase_04 AC 3 ms
4,508 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 3 ms
4,376 KB
testcase_07 AC 3 ms
4,408 KB
testcase_08 AC 3 ms
4,428 KB
testcase_09 AC 3 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

 class Application
    def main
      puts judgment( cut_received_code(get_code) )
    end

    def judgment(value : Array) : String
      return value[0] >= value[1] ? "TATE" : "YOKO"
    end

    def cut_received_code(value : String) : Array
      value.split(" ").map(&.to_i)
    end

    def get_code : String
      return gets.to_s.chomp
    end
 end

 Application.new.main
0