結果

問題 No.3032 Unavailability of Inequality Signs
ユーザー cs027983cs027983
提出日時 2018-04-02 00:29:24
言語 Ruby
(3.3.0)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 11,196 KB
実行使用メモリ 15,528 KB
最終ジャッジ日時 2023-09-08 13:10:43
合計ジャッジ時間 2,353 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
15,284 KB
testcase_01 AC 93 ms
15,528 KB
testcase_02 AC 91 ms
15,516 KB
testcase_03 AC 92 ms
15,520 KB
testcase_04 AC 91 ms
15,344 KB
testcase_05 AC 94 ms
15,428 KB
testcase_06 AC 92 ms
15,520 KB
testcase_07 AC 93 ms
15,432 KB
testcase_08 AC 92 ms
15,328 KB
testcase_09 AC 93 ms
15,356 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'cgi'

N = gets.to_i
number = []
N.times do
  number.push(gets.to_s.split(' ').map{|i|i.to_i})
end

number.each do |a,b|
  if a.equal?(b)
    puts '='
    next
  end
  puts (a - b).positive? ? CGI.unescape_html('>') : CGI.unescape_html('<')
end
0