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