結果
問題 |
No.345 最小チワワ問題
|
ユーザー |
|
提出日時 | 2016-03-11 04:31:54 |
言語 | Perl (5.40.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 930 ms |
コンパイル使用メモリ | 7,808 KB |
実行使用メモリ | 7,936 KB |
最終ジャッジ日時 | 2024-09-24 23:59:18 |
合計ジャッジ時間 | 2,650 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 =~ 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; }