結果

問題 No.509 塗りつぶしツール
ユーザー motimoti
提出日時 2018-05-26 01:49:54
言語 Perl
(5.38.2)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 51 ms
コンパイル使用メモリ 4,932 KB
実行使用メモリ 5,116 KB
最終ジャッジ日時 2023-09-11 03:34:32
合計ジャッジ時間 1,331 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
4,900 KB
testcase_01 AC 6 ms
4,844 KB
testcase_02 AC 5 ms
5,052 KB
testcase_03 AC 5 ms
5,032 KB
testcase_04 AC 5 ms
5,056 KB
testcase_05 AC 5 ms
5,048 KB
testcase_06 AC 5 ms
4,984 KB
testcase_07 AC 5 ms
4,852 KB
testcase_08 AC 5 ms
4,964 KB
testcase_09 AC 5 ms
4,956 KB
testcase_10 AC 5 ms
5,060 KB
testcase_11 AC 5 ms
5,060 KB
testcase_12 AC 5 ms
4,852 KB
testcase_13 AC 5 ms
4,996 KB
testcase_14 AC 5 ms
5,056 KB
testcase_15 AC 5 ms
4,992 KB
testcase_16 AC 5 ms
5,028 KB
testcase_17 AC 5 ms
5,012 KB
testcase_18 AC 5 ms
4,988 KB
testcase_19 AC 5 ms
5,068 KB
testcase_20 AC 5 ms
5,016 KB
testcase_21 AC 5 ms
4,952 KB
testcase_22 AC 4 ms
5,116 KB
testcase_23 AC 5 ms
5,060 KB
testcase_24 AC 5 ms
4,996 KB
testcase_25 AC 5 ms
4,832 KB
testcase_26 AC 5 ms
5,000 KB
testcase_27 AC 5 ms
4,848 KB
testcase_28 AC 5 ms
4,988 KB
testcase_29 AC 5 ms
5,060 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use strict;
use warnings;

my $l = <>; chomp $l;
my $z = () = $l =~ /0/g;
my $f = () = $l =~ /4/g;
my $s = () = $l =~ /6/g;
my $e = () = $l =~ /8/g;
my $n = () = $l =~ /9/g;
my $alpha = $z + $f + $s + 2 * $e + $n;
my @li = sort { $a <=> $b } (2 * length($l) + 1 + $alpha, length($l) + (1 + $alpha) * 2);
print "$li[0]\n";
0