結果

問題 No.292 芸名
ユーザー mesh1nek0x0mesh1nek0x0
提出日時 2018-07-22 23:29:16
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 189 bytes
コンパイル時間 657 ms
コンパイル使用メモリ 11,148 KB
実行使用メモリ 15,356 KB
最終ジャッジ日時 2023-08-27 01:04:32
合計ジャッジ時間 1,877 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
15,092 KB
testcase_01 AC 74 ms
15,060 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 74 ms
15,172 KB
testcase_05 AC 74 ms
15,136 KB
testcase_06 AC 78 ms
15,300 KB
testcase_07 AC 73 ms
15,004 KB
testcase_08 AC 73 ms
15,240 KB
testcase_09 AC 74 ms
15,168 KB
testcase_10 AC 76 ms
15,004 KB
testcase_11 AC 74 ms
15,356 KB
testcase_12 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!/bin/ruby
input = gets.chomp.split(' ')
s = input[0].split('')
t = input[1].to_i
u = input[2].to_i

if t === u
  s.delete_at(t)
else
  s.delete_at(t)
  s.delete_at(u - 1)
end

puts s.join
0