結果

問題 No.292 芸名
ユーザー dagunikodaguniko
提出日時 2015-10-23 22:27:15
言語 Ruby
(3.2.2)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 379 ms
コンパイル使用メモリ 11,208 KB
実行使用メモリ 15,356 KB
最終ジャッジ日時 2023-09-30 05:00:21
合計ジャッジ時間 1,912 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,236 KB
testcase_01 AC 70 ms
15,080 KB
testcase_02 AC 70 ms
15,040 KB
testcase_03 AC 69 ms
15,180 KB
testcase_04 AC 68 ms
15,356 KB
testcase_05 AC 70 ms
15,144 KB
testcase_06 AC 72 ms
15,240 KB
testcase_07 AC 70 ms
15,152 KB
testcase_08 AC 72 ms
15,236 KB
testcase_09 AC 69 ms
15,200 KB
testcase_10 AC 70 ms
15,084 KB
testcase_11 AC 71 ms
15,232 KB
testcase_12 AC 69 ms
15,028 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

S,t,u = gets.chomp.split(" ")

if t == u
  S.slice!(t.to_i)
elsif t.to_i < u.to_i
  S.slice!(t.to_i)
  S.slice!(u.to_i-1)
elsif t.to_i > u.to_i
  S.slice!(t.to_i)
  S.slice!(u.to_i)
end

puts S
0