結果
問題 | No.292 芸名 |
ユーザー |
|
提出日時 | 2018-07-12 16:54:31 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 93 ms / 2,000 ms |
コード長 | 306 bytes |
コンパイル時間 | 211 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-10-02 07:58:19 |
合計ジャッジ時間 | 2,171 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
Syntax OK
ソースコード
input = gets.split(" ")a = input[1].to_ib = input[2].to_iif a == binput[0].slice!(a)puts input[0]elsif a < binput[0].slice!(a)input[0].slice!(b-1)puts input[0]elseinput[0].slice!(b)input[0].slice!(a-1)puts input[0]end# your code goes here# your code goes here