結果

問題 No.170 スワップ文字列(Easy)
ユーザー kotatsugamekotatsugame
提出日時 2018-04-12 18:40:17
言語 Perl
(5.38.2)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 105 bytes
コンパイル時間 45 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 4,724 KB
最終ジャッジ日時 2023-09-09 04:22:27
合計ジャッジ時間 1,259 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,516 KB
testcase_01 AC 3 ms
4,564 KB
testcase_02 AC 2 ms
4,640 KB
testcase_03 AC 3 ms
4,544 KB
testcase_04 AC 3 ms
4,700 KB
testcase_05 AC 3 ms
4,648 KB
testcase_06 AC 2 ms
4,524 KB
testcase_07 AC 2 ms
4,564 KB
testcase_08 AC 2 ms
4,640 KB
testcase_09 AC 2 ms
4,616 KB
testcase_10 AC 2 ms
4,580 KB
testcase_11 AC 3 ms
4,588 KB
testcase_12 AC 3 ms
4,692 KB
testcase_13 AC 3 ms
4,420 KB
testcase_14 AC 3 ms
4,420 KB
testcase_15 AC 3 ms
4,692 KB
testcase_16 AC 3 ms
4,696 KB
testcase_17 AC 3 ms
4,560 KB
testcase_18 AC 3 ms
4,708 KB
testcase_19 AC 2 ms
4,672 KB
testcase_20 AC 3 ms
4,508 KB
testcase_21 AC 2 ms
4,480 KB
testcase_22 AC 2 ms
4,536 KB
testcase_23 AC 2 ms
4,724 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

sub f{$_[0]>0?$_[0]*f($_[0]-1):1}
@a=map$$_,grep!$$_++,@@=<>=~/./g;
$%=f~~@@;
$%/=f$_ for@a;
print$%-1,$/
0