結果

問題 No.150 "良問"(良問とは言っていない
コンテスト
ユーザー %20
提出日時 2017-03-06 18:44:53
言語 Perl
(5.42.1)
コンパイル:
perl -cw _filename_
実行:
perl -X _filename_
結果
AC  
実行時間 119 ms / 5,000 ms
コード長 190 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 209 ms
コンパイル使用メモリ 6,528 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-04-27 07:58:59
合計ジャッジ時間 2,238 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
Unquoted string "good" may clash with future reserved word at Main.pl line 5.
Unquoted string "problem" may clash with future reserved word at Main.pl line 7.
Main.pl syntax OK

ソースコード

diff #
raw source code

<>;
for$s(<>){
	$%=1e9;
	for$i(0..length($s)-12){
		$g=(good^substr$s,$i,4)=~y/\x00//c;
		for$j($i+4..length($s)-8){
			$%-=$-=$%-$g-(problem^substr$s,$j,7)=~y/\x00//c;
		}
	}
	print$%,$/
}
0