結果

問題 No.292 芸名
ユーザー mesh1nek0x0mesh1nek0x0
提出日時 2018-07-22 23:31:26
言語 Ruby
(3.3.0)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 11,464 KB
実行使用メモリ 15,340 KB
最終ジャッジ日時 2023-08-27 01:04:57
合計ジャッジ時間 1,864 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,340 KB
testcase_01 AC 77 ms
15,256 KB
testcase_02 AC 74 ms
15,212 KB
testcase_03 AC 73 ms
15,168 KB
testcase_04 AC 75 ms
15,112 KB
testcase_05 AC 79 ms
15,172 KB
testcase_06 AC 72 ms
15,112 KB
testcase_07 AC 74 ms
15,040 KB
testcase_08 AC 75 ms
15,140 KB
testcase_09 AC 72 ms
15,160 KB
testcase_10 AC 75 ms
15,116 KB
testcase_11 AC 73 ms
15,260 KB
testcase_12 AC 72 ms
15,052 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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, u].min)
  s.delete_at([t, u].max - 1)
end

puts s.join
0