結果

問題 No.252 "良問"(良問とは言っていない (2)
ユーザー tailstails
提出日時 2020-09-30 18:17:08
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,050 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 69,592 KB
最終ジャッジ日時 2023-09-20 10:34:49
合計ジャッジ時間 7,821 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 933 ms
5,852 KB
testcase_01 AC 776 ms
9,032 KB
testcase_02 AC 962 ms
18,288 KB
testcase_03 AC 1,044 ms
69,464 KB
testcase_04 AC 1,047 ms
69,584 KB
testcase_05 AC 1,050 ms
69,592 KB
testcase_06 AC 3 ms
4,600 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>;
for(<>){
	$x=$y=11;
	for$i(0..length()-8){
		if($i>=4){
			$a=(substr($_,$i-4,4)^GOOD)=~y/ //c;
			$x-=$-=$x-$a-$z[$i];
		}
		$a=(substr($_,$i,7)^PROBLEM)=~y/ //c;
		$y-=$-=$y-$x-$a;
		$z[$i+11]=$z[$i+10]+!$a;

	}
	print$y,$/;
}
0