結果
| 問題 |
No.541 3 x N グリッド上のサイクルの個数
|
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2017-09-01 23:22:11 |
| 言語 | Perl (5.40.0) |
| 結果 |
AC
|
| 実行時間 | 50 ms / 2,000 ms |
| コード長 | 245 bytes |
| コンパイル時間 | 382 ms |
| コンパイル使用メモリ | 7,076 KB |
| 実行使用メモリ | 5,760 KB |
| 最終ジャッジ日時 | 2024-11-06 17:52:12 |
| 合計ジャッジ時間 | 4,371 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 62 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
sub f{
my@r;
$y=$_*10,map{//;($r[$y+$']+=$Z[$y+$_]*$_[$_*10+$'])%=1e9+7for@@}@@for@@;
@r
}
$Z[11*$_]=1for@@=0..9;
$N=<>;
(@Z=f@Z),$N+1>>$=&1and@Z=f map{vec"\xff\x38\xea\xa3\xdf\x3c\xf2\x89\x2e\x22\x42\x03\x08",$_,1}0..99while$=--;
print$Z[9]
%20