結果

問題 No.292 芸名
ユーザー nonokai10nonokai10
提出日時 2018-03-02 18:12:17
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 192 bytes
コンパイル時間 408 ms
コンパイル使用メモリ 11,232 KB
実行使用メモリ 15,340 KB
最終ジャッジ日時 2023-09-02 11:28:35
合計ジャッジ時間 2,781 ms
ジャッジサーバーID
(参考情報)
judge16 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,204 KB
testcase_01 AC 82 ms
15,096 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 82 ms
15,244 KB
testcase_05 AC 80 ms
15,144 KB
testcase_06 AC 80 ms
15,144 KB
testcase_07 AC 79 ms
15,120 KB
testcase_08 AC 81 ms
15,176 KB
testcase_09 AC 83 ms
15,108 KB
testcase_10 AC 82 ms
15,156 KB
testcase_11 AC 81 ms
15,212 KB
testcase_12 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

str, *num = gets.split
str = str.split(//)
count = 0
num.map(&:to_i).uniq.each do |i|
  if count == 0
    str.delete_at(i)
    count += 1
  else
    str.delete_at(i-1)
  end
end
puts str.join
0