結果
問題 | No.79 過小評価ダメ・ゼッタイ |
ユーザー |
|
提出日時 | 2014-11-27 23:22:49 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 155 ms / 5,000 ms |
コード長 | 104 bytes |
コンパイル時間 | 174 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 20,096 KB |
最終ジャッジ日時 | 2024-06-26 07:12:14 |
合計ジャッジ時間 | 3,976 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
コンパイルメッセージ
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
ソースコード
#!/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]