結果

問題 No.938 賢人を探せ
ユーザー gemmarogemmaro
提出日時 2020-07-26 13:08:38
言語 Ruby
(3.3.0)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 146 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 11,380 KB
実行使用メモリ 19,744 KB
最終ジャッジ日時 2023-08-21 03:46:19
合計ジャッジ時間 3,847 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
19,516 KB
testcase_01 AC 81 ms
15,136 KB
testcase_02 AC 81 ms
15,124 KB
testcase_03 AC 82 ms
15,300 KB
testcase_04 AC 81 ms
15,304 KB
testcase_05 AC 83 ms
15,244 KB
testcase_06 AC 83 ms
15,156 KB
testcase_07 AC 80 ms
15,244 KB
testcase_08 AC 110 ms
18,292 KB
testcase_09 AC 110 ms
18,400 KB
testcase_10 AC 82 ms
15,052 KB
testcase_11 AC 119 ms
18,748 KB
testcase_12 AC 107 ms
18,124 KB
testcase_13 AC 109 ms
18,084 KB
testcase_14 AC 109 ms
17,948 KB
testcase_15 AC 111 ms
18,048 KB
testcase_16 AC 108 ms
17,876 KB
testcase_17 AC 107 ms
17,880 KB
testcase_18 AC 106 ms
17,916 KB
testcase_19 AC 107 ms
18,064 KB
testcase_20 AC 109 ms
18,040 KB
testcase_21 AC 109 ms
18,068 KB
testcase_22 AC 125 ms
19,744 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# frozen_string_literal: true

def solve
  a, b = AB.transpose
  (b - a).uniq
end

N = gets.to_i
AB = N.times.map { gets.chomp.split }

puts solve
0