結果
問題 | No.292 芸名 |
ユーザー | 小指が強い人 |
提出日時 | 2015-11-09 17:59:57 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 305 bytes |
コンパイル時間 | 224 ms |
コンパイル使用メモリ | 11,560 KB |
実行使用メモリ | 15,432 KB |
最終ジャッジ日時 | 2023-10-11 15:26:26 |
合計ジャッジ時間 | 2,048 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 81 ms
15,152 KB |
testcase_02 | AC | 81 ms
15,304 KB |
testcase_03 | AC | 80 ms
15,356 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 80 ms
15,040 KB |
testcase_07 | AC | 80 ms
15,148 KB |
testcase_08 | AC | 81 ms
15,124 KB |
testcase_09 | AC | 82 ms
15,040 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 81 ms
15,236 KB |
コンパイルメッセージ
Syntax OK
ソースコード
def delete_at(str, index) nstr = "" str.length.times do |i| if index == i next end nstr += str[i] end nstr end str = gets.to_s.split str[0] = delete_at(str[0], str[1].to_i) if str[1] != str[2] str[0] = delete_at(str[0], str[2].to_i) end puts str[0]