結果

問題 No.606 カラフルタイル
ユーザー tails
提出日時 2017-12-06 00:27:44
言語 Perl
(5.40.0)
結果
AC  
実行時間 300 ms / 2,000 ms
コード長 116 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 6,948 KB
実行使用メモリ 34,304 KB
最終ジャッジ日時 2024-11-28 18:55:20
合計ジャッジ時間 4,203 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::h" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($n,$k)=glob<>;$R=$C=$n;map{--${$`},$o[$']+=${R^C^$`}if/ .* />$h{$`.$&}++}reverse<>;print$o[$_]+$R*$C,$R=$/for 1..$k
0