結果

問題 No.1994 Confusing Name
コンテスト
ユーザー 👑 tails
提出日時 2022-07-01 21:30:20
言語 Perl
(5.44.0)
コンパイル:
perl -cw _filename_
実行:
perl -X _filename_
結果
AC  
実行時間 607 ms / 2,000 ms
+ 565µs
コード長 105 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 46 ms
コンパイル使用メモリ 7,856 KB
実行使用メモリ 72,192 KB
最終ジャッジ日時 2026-09-30 04:26:00
合計ジャッジ時間 9,915 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます
コンパイルメッセージ
Useless use of non-destructive substitution (s///r) in void context at Main.pl line 4.
Useless use of non-destructive substitution (s///r) in void context at Main.pl line 8.
Main.pl syntax OK

ソースコード

diff #
raw source code

<>;
@s=<>;
for(@s){
	s/./++$h{$`.A.$'}/ger;
}
for(@s){
	$n=0;
	s/./$n+=$h{$`.A.$'}-1/ger;
	print$n,$/;
}
0