結果
問題 |
No.345 最小チワワ問題
|
ユーザー |
|
提出日時 | 2016-03-11 04:33:13 |
言語 | Perl (5.40.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 292 bytes |
コンパイル時間 | 284 ms |
コンパイル使用メモリ | 7,680 KB |
実行使用メモリ | 7,936 KB |
最終ジャッジ日時 | 2024-09-24 23:59:27 |
合計ジャッジ時間 | 1,927 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 8 WA * 21 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
use strict; use warnings; use utf8; use Encode qw/encode decode decode_utf8 encode_utf8 from_to/; my $instr = decode('utf8', <STDIN>); if($instr =~ /(.*)[Cc](.*)[Hh](.*)[Ii](.*)[Ww](.*)[Aa](.*)[Ww](.*)[Aa](.*)/ ) { my $str = "$1$2$3$4$5$6$7$8"; print length($str); } else { print -1; }