結果

問題 No.345 最小チワワ問題
ユーザー takashi2001pctakashi2001pc
提出日時 2016-03-11 04:31:54
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 294 bytes
コンパイル時間 703 ms
コンパイル使用メモリ 8,104 KB
実行使用メモリ 8,112 KB
最終ジャッジ日時 2023-10-25 04:34:41
合計ジャッジ時間 2,626 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 22 ms
8,100 KB
testcase_08 AC 23 ms
8,100 KB
testcase_09 AC 23 ms
8,104 KB
testcase_10 WA -
testcase_11 AC 22 ms
8,096 KB
testcase_12 AC 22 ms
8,096 KB
testcase_13 AC 23 ms
8,096 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 23 ms
8,104 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 23 ms
8,096 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 23 ms
8,100 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use strict;
use warnings;

use utf8;
use Encode qw/encode decode decode_utf8 encode_utf8 from_to/;


my $instr = decode('utf8', <STDIN>);

if($instr =~ m/(.*)[Cc](.*)[Hh](.*)[Ii](.*)[Ww](.*)[Aa](.*)[Ww](.*)[Aa](.*)/g ) {
	my $str = "$1$2$3$4$5$6$7$8";
	print length($str);
} else {
	print -1;
}
0