結果

問題 No.292 芸名
ユーザー nonokai10nonokai10
提出日時 2018-03-02 18:15:08
言語 Ruby
(3.3.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 136 bytes
コンパイル時間 570 ms
コンパイル使用メモリ 11,224 KB
実行使用メモリ 15,296 KB
最終ジャッジ日時 2023-09-02 11:36:35
合計ジャッジ時間 2,598 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,260 KB
testcase_01 AC 83 ms
15,196 KB
testcase_02 AC 82 ms
15,188 KB
testcase_03 AC 80 ms
15,044 KB
testcase_04 AC 80 ms
15,216 KB
testcase_05 AC 80 ms
15,176 KB
testcase_06 AC 81 ms
15,052 KB
testcase_07 AC 79 ms
15,268 KB
testcase_08 AC 79 ms
15,212 KB
testcase_09 AC 83 ms
15,212 KB
testcase_10 AC 80 ms
15,224 KB
testcase_11 AC 84 ms
15,296 KB
testcase_12 AC 83 ms
15,216 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:3: warning: assigned but unused variable - count
Syntax OK

ソースコード

diff #

str, *num = gets.split
str = str.split(//)
count = 0
num.map(&:to_i).uniq.sort.reverse.each do |i|
  str.delete_at(i)
end
puts str.join
0