結果

問題 No.292 芸名
コンテスト
ユーザー togaerror
提出日時 2015-10-31 02:15:28
言語 Perl
(5.44.0)
コンパイル:
perl -cw _filename_
実行:
perl -X _filename_
結果
AC  
実行時間 3 ms / 2,000 ms
+ 903µs
コード長 275 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 174 ms
コンパイル使用メモリ 6,272 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2026-08-25 23:39:40
合計ジャッジ時間 1,333 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #
raw source code

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