結果

問題 No.421 しろくろチョコレート
ユーザー %20%20
提出日時 2018-01-13 12:06:06
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 325 bytes
コンパイル時間 1,191 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 5,448 KB
最終ジャッジ日時 2023-08-25 15:08:40
合計ジャッジ時間 12,547 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
5,144 KB
testcase_01 AC 170 ms
5,256 KB
testcase_02 AC 35 ms
5,248 KB
testcase_03 AC 10 ms
5,288 KB
testcase_04 AC 23 ms
5,164 KB
testcase_05 AC 25 ms
5,176 KB
testcase_06 AC 10 ms
5,340 KB
testcase_07 WA -
testcase_08 AC 29 ms
5,188 KB
testcase_09 AC 14 ms
5,196 KB
testcase_10 AC 13 ms
5,308 KB
testcase_11 WA -
testcase_12 AC 6 ms
5,216 KB
testcase_13 AC 6 ms
5,080 KB
testcase_14 AC 7 ms
5,084 KB
testcase_15 AC 6 ms
5,104 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 6 ms
5,084 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 6 ms
5,328 KB
testcase_24 AC 6 ms
5,108 KB
testcase_25 AC 7 ms
5,272 KB
testcase_26 AC 6 ms
5,168 KB
testcase_27 AC 6 ms
5,104 KB
testcase_28 AC 260 ms
5,184 KB
testcase_29 AC 386 ms
5,308 KB
testcase_30 AC 273 ms
5,424 KB
testcase_31 AC 605 ms
5,220 KB
testcase_32 AC 334 ms
5,216 KB
testcase_33 AC 284 ms
5,328 KB
testcase_34 AC 17 ms
5,340 KB
testcase_35 AC 20 ms
5,204 KB
testcase_36 AC 89 ms
5,152 KB
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 59 ms
5,180 KB
testcase_40 WA -
testcase_41 AC 24 ms
5,204 KB
testcase_42 AC 17 ms
5,160 KB
testcase_43 AC 67 ms
5,124 KB
testcase_44 WA -
testcase_45 AC 24 ms
5,348 KB
testcase_46 AC 21 ms
5,100 KB
testcase_47 AC 116 ms
5,248 KB
testcase_48 AC 368 ms
5,304 KB
testcase_49 AC 55 ms
5,220 KB
testcase_50 AC 33 ms
5,064 KB
testcase_51 WA -
testcase_52 AC 80 ms
5,332 KB
testcase_53 AC 18 ms
5,240 KB
testcase_54 AC 41 ms
5,184 KB
testcase_55 AC 16 ms
5,100 KB
testcase_56 AC 14 ms
5,200 KB
testcase_57 WA -
testcase_58 WA -
testcase_59 WA -
testcase_60 WA -
testcase_61 WA -
testcase_62 AC 7 ms
5,084 KB
testcase_63 AC 6 ms
5,108 KB
testcase_64 AC 7 ms
5,224 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::H" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($H,$W)=glob<>;
$_=join'',map s/.*/.$&./r,'.'x$W.$/,<>,'.'x$W.$/;
++$W;
$%+=100while
	s/\w(.{$W})\.\w\.(.{$W})\./.$1...$2./s||
	s/\.(.{$W})\w\w\.(.{$W})\./.$1...$2./s||
	s/\.(.{$W})\.\w\w(.{$W})\./.$1...$2./s||
	s/\.(.{$W})\.\w\.(.{$W})\w/.$1...$2./s||
	s/\w(.{$W}.)?\w/.$1./s;
print$%+=($b=y/b//)<($w=y/w//)?9*$b+$w:9*$w+$b
0