結果

問題 No.3032 Unavailability of Inequality Signs
ユーザー gemmarogemmaro
提出日時 2020-04-30 12:08:07
言語 Ruby
(3.3.0)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 212 bytes
コンパイル時間 671 ms
コンパイル使用メモリ 11,480 KB
実行使用メモリ 15,340 KB
最終ジャッジ日時 2023-08-21 15:40:03
合計ジャッジ時間 2,821 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,088 KB
testcase_01 AC 79 ms
15,332 KB
testcase_02 AC 78 ms
15,336 KB
testcase_03 AC 78 ms
15,328 KB
testcase_04 AC 78 ms
15,292 KB
testcase_05 AC 79 ms
15,092 KB
testcase_06 AC 79 ms
15,340 KB
testcase_07 AC 78 ms
15,232 KB
testcase_08 AC 79 ms
15,160 KB
testcase_09 AC 79 ms
15,168 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# frozen_string_literal: true

N = gets.to_i
A = N.times.map { gets.chomp.split.map(&:to_i) }

RESULT = A.map do |a, b|
  if (a - b).negative?
    60
  elsif a == b
    61
  else
    62
  end.chr
end

puts RESULT
0