結果
| 問題 | No.345 最小チワワ問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-11 04:33:13 |
| 言語 | Perl (5.44.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 292 bytes |
| 記録 | |
| コンパイル時間 | 17 ms |
| コンパイル使用メモリ | 7,808 KB |
| 実行使用メモリ | 9,780 KB |
| 最終ジャッジ日時 | 2026-09-03 14:53:14 |
| 合計ジャッジ時間 | 2,561 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}