結果

問題 No.989 N×Mマス計算(K以上)
ユーザー tails
提出日時 2020-07-30 22:16:38
言語 Perl
(5.40.0)
結果
AC  
実行時間 1,278 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 176,256 KB
最終ジャッジ日時 2024-07-04 21:49:10
合計ジャッジ時間 5,266 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::m" used only once: possible typo at Main.pl line 1.
Name "main::n" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($n,$m,$k,$o,@b)=split$",<>.<>;--$k;print+(map{$_+=$_&-$_ until$#{$_}++,$_>$k}@b)*(map{$-=v27^$o?$k/$_:$k-$_;0while$a+=@{$-},$--=$-&-$-}<>)-$a
0