結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー apierceapierce
提出日時 2022-11-03 17:41:17
言語 Ruby
(3.3.0)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 116 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 11,448 KB
実行使用メモリ 21,352 KB
最終ジャッジ日時 2023-09-25 02:00:06
合計ジャッジ時間 4,259 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,096 KB
testcase_01 AC 124 ms
21,096 KB
testcase_02 AC 80 ms
15,120 KB
testcase_03 AC 80 ms
15,248 KB
testcase_04 AC 79 ms
15,144 KB
testcase_05 AC 124 ms
21,352 KB
testcase_06 AC 79 ms
15,084 KB
testcase_07 AC 82 ms
15,092 KB
testcase_08 AC 82 ms
15,044 KB
testcase_09 AC 82 ms
15,156 KB
testcase_10 AC 81 ms
15,048 KB
testcase_11 AC 82 ms
15,240 KB
testcase_12 AC 81 ms
15,240 KB
testcase_13 AC 81 ms
15,324 KB
testcase_14 AC 106 ms
18,760 KB
testcase_15 AC 93 ms
16,440 KB
testcase_16 AC 115 ms
19,556 KB
testcase_17 AC 91 ms
16,100 KB
testcase_18 AC 112 ms
19,404 KB
testcase_19 AC 107 ms
18,296 KB
testcase_20 AC 129 ms
21,332 KB
testcase_21 AC 84 ms
15,316 KB
testcase_22 AC 98 ms
17,152 KB
testcase_23 AC 127 ms
21,016 KB
testcase_24 AC 126 ms
20,868 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n = gets.to_i
a = gets.split.map(&:to_i).tally.sort{|a, b| ((b[1] <=> a[1]).nonzero?) || b[0] <=> a[0]}
puts a[0][0]
0