結果

問題 No.292 芸名
ユーザー togaerrortogaerror
提出日時 2015-10-31 02:15:28
言語 Perl
(5.38.2)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 275 bytes
コンパイル時間 401 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 5,128 KB
最終ジャッジ日時 2023-10-11 07:02:12
合計ジャッジ時間 1,424 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
4,956 KB
testcase_01 AC 5 ms
4,972 KB
testcase_02 AC 6 ms
5,120 KB
testcase_03 AC 5 ms
4,932 KB
testcase_04 AC 5 ms
5,120 KB
testcase_05 AC 5 ms
4,788 KB
testcase_06 AC 5 ms
5,128 KB
testcase_07 AC 5 ms
5,052 KB
testcase_08 AC 5 ms
4,824 KB
testcase_09 AC 5 ms
4,768 KB
testcase_10 AC 5 ms
4,788 KB
testcase_11 AC 5 ms
5,032 KB
testcase_12 AC 5 ms
5,060 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use strict;
use warnings;

my ($s, $m, $n) = split / /, <>;
my @str = split //, $s;
if($m < $n) {
	splice(@str, $m, 1);
	splice(@str, $n - 1, 1);
} elsif($n < $m) {
	splice(@str, $n, 1);
	splice(@str, $m - 1, 1);
} else {
	splice(@str, $m, 1)
}

print @str;
print "\n";
exit;
0