結果
問題 | No.150 "良問"(良問とは言っていない |
ユーザー |
![]() |
提出日時 | 2017-03-06 18:44:53 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 193 ms / 5,000 ms |
コード長 | 190 bytes |
コンパイル時間 | 46 ms |
コンパイル使用メモリ | 5,376 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 02:10:59 |
合計ジャッジ時間 | 1,617 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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
ソースコード
<>; 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$%,$/ }