結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー cielciel
提出日時 2014-11-27 23:22:49
言語 Ruby
(3.2.2)
結果
AC  
実行時間 150 ms / 5,000 ms
コード長 104 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 11,292 KB
実行使用メモリ 23,440 KB
最終ジャッジ日時 2023-09-08 14:05:37
合計ジャッジ時間 3,849 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,420 KB
testcase_01 AC 150 ms
22,424 KB
testcase_02 AC 88 ms
15,172 KB
testcase_03 AC 83 ms
15,144 KB
testcase_04 AC 83 ms
15,288 KB
testcase_05 AC 144 ms
23,440 KB
testcase_06 AC 83 ms
15,012 KB
testcase_07 AC 82 ms
15,260 KB
testcase_08 AC 83 ms
15,220 KB
testcase_09 AC 83 ms
15,248 KB
testcase_10 AC 82 ms
15,028 KB
testcase_11 AC 82 ms
15,300 KB
testcase_12 AC 82 ms
15,036 KB
testcase_13 AC 82 ms
15,260 KB
testcase_14 AC 118 ms
19,472 KB
testcase_15 AC 96 ms
16,792 KB
testcase_16 AC 128 ms
20,728 KB
testcase_17 AC 96 ms
16,748 KB
testcase_18 AC 127 ms
20,324 KB
testcase_19 AC 115 ms
19,056 KB
testcase_20 AC 146 ms
22,840 KB
testcase_21 AC 83 ms
15,180 KB
testcase_22 AC 103 ms
17,612 KB
testcase_23 AC 146 ms
22,268 KB
testcase_24 AC 142 ms
22,544 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
/usr/bin/ruby: warning: shebang line ending with \r may cause problems
Main.rb:4: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

#!/usr/bin/ruby
gets
a=gets.split.map(&:to_i).sort.chunk{|e|e}.map{|k,v|[-v.size,-k]}.sort
p -a[0][1]
0