結果

問題 No.3032 Unavailability of Inequality Signs
ユーザー simansiman
提出日時 2021-03-28 17:31:22
言語 Ruby
(3.3.0)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 480 ms
コンパイル使用メモリ 11,276 KB
実行使用メモリ 15,300 KB
最終ジャッジ日時 2023-08-19 15:42:46
合計ジャッジ時間 3,390 ms
ジャッジサーバーID
(参考情報)
judge10 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,100 KB
testcase_01 AC 76 ms
15,144 KB
testcase_02 AC 76 ms
15,024 KB
testcase_03 AC 76 ms
15,168 KB
testcase_04 AC 75 ms
15,136 KB
testcase_05 AC 76 ms
15,064 KB
testcase_06 AC 78 ms
15,076 KB
testcase_07 AC 76 ms
15,160 KB
testcase_08 AC 76 ms
15,248 KB
testcase_09 AC 77 ms
15,300 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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

Q.each do |a, b|
  res = eval("%d %c=%c %d" % [a, 60.chr, 62.chr, b])

  if res == 0
    puts '='
  elsif res.negative?
    puts 60.chr
  else
    puts 62.chr
  end
end
0