結果

問題 No.989 N×Mマス計算(K以上)
ユーザー tailstails
提出日時 2020-07-30 22:16:38
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,353 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 195 ms
コンパイル使用メモリ 5,340 KB
実行使用メモリ 171,516 KB
最終ジャッジ日時 2023-09-18 05:16:49
合計ジャッジ時間 5,515 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,664 KB
testcase_01 AC 3 ms
4,632 KB
testcase_02 AC 3 ms
4,496 KB
testcase_03 AC 3 ms
4,696 KB
testcase_04 AC 3 ms
4,880 KB
testcase_05 AC 3 ms
4,672 KB
testcase_06 AC 3 ms
4,832 KB
testcase_07 AC 3 ms
4,768 KB
testcase_08 AC 3 ms
4,580 KB
testcase_09 AC 5 ms
5,108 KB
testcase_10 AC 778 ms
85,904 KB
testcase_11 AC 1,353 ms
171,516 KB
testcase_12 AC 353 ms
52,536 KB
testcase_13 AC 118 ms
37,860 KB
testcase_14 AC 436 ms
67,380 KB
testcase_15 AC 136 ms
22,216 KB
testcase_16 AC 140 ms
33,640 KB
testcase_17 AC 136 ms
37,844 KB
testcase_18 AC 409 ms
41,524 KB
testcase_19 AC 488 ms
62,588 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::n" used only once: possible typo at Main.pl line 1.
Name "main::m" 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