結果

問題 No.436 ccw
ユーザー teioteio
提出日時 2020-07-26 17:49:24
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 207 bytes
コンパイル時間 269 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 4,952 KB
最終ジャッジ日時 2023-09-11 04:34:03
合計ジャッジ時間 1,855 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,540 KB
testcase_01 AC 3 ms
4,772 KB
testcase_02 AC 3 ms
4,632 KB
testcase_03 AC 3 ms
4,628 KB
testcase_04 AC 3 ms
4,644 KB
testcase_05 AC 3 ms
4,676 KB
testcase_06 AC 3 ms
4,736 KB
testcase_07 AC 3 ms
4,540 KB
testcase_08 AC 3 ms
4,628 KB
testcase_09 AC 3 ms
4,784 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 3 ms
4,740 KB
testcase_13 WA -
testcase_14 AC 3 ms
4,480 KB
testcase_15 WA -
testcase_16 AC 3 ms
4,464 KB
testcase_17 AC 3 ms
4,756 KB
testcase_18 WA -
testcase_19 AC 3 ms
4,636 KB
testcase_20 AC 3 ms
4,520 KB
testcase_21 AC 3 ms
4,952 KB
testcase_22 AC 3 ms
4,648 KB
testcase_23 AC 3 ms
4,628 KB
testcase_24 AC 3 ms
4,724 KB
testcase_25 AC 3 ms
4,772 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

# use strict;
# use warnings;

chomp(my $S = <>);
my $n = 0;
if (length($S) > 3) {
    $S =~ /^(c+)(w+)$/;
    my $c = length($1) - 1;
    my $w = length($2);
    $n = (sort(($c, $w)))[0]
}
print($n, "\n");
0