結果

問題 No.182 新規性の虜
ユーザー teioteio
提出日時 2020-07-26 15:30:13
言語 Perl
(5.38.2)
結果
AC  
実行時間 137 ms / 5,000 ms
コード長 227 bytes
コンパイル時間 52 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 25,116 KB
最終ジャッジ日時 2023-09-11 01:55:29
合計ジャッジ時間 2,485 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,468 KB
testcase_01 AC 2 ms
4,636 KB
testcase_02 AC 3 ms
4,508 KB
testcase_03 AC 2 ms
4,600 KB
testcase_04 AC 2 ms
4,608 KB
testcase_05 AC 2 ms
4,744 KB
testcase_06 AC 2 ms
4,664 KB
testcase_07 AC 3 ms
4,552 KB
testcase_08 AC 71 ms
16,172 KB
testcase_09 AC 135 ms
24,044 KB
testcase_10 AC 105 ms
21,700 KB
testcase_11 AC 84 ms
18,004 KB
testcase_12 AC 30 ms
10,476 KB
testcase_13 AC 3 ms
4,644 KB
testcase_14 AC 2 ms
4,788 KB
testcase_15 AC 3 ms
4,708 KB
testcase_16 AC 2 ms
4,528 KB
testcase_17 AC 2 ms
4,472 KB
testcase_18 AC 54 ms
11,944 KB
testcase_19 AC 39 ms
10,240 KB
testcase_20 AC 26 ms
8,552 KB
testcase_21 AC 60 ms
12,928 KB
testcase_22 AC 31 ms
8,984 KB
testcase_23 AC 2 ms
4,592 KB
testcase_24 AC 137 ms
25,116 KB
testcase_25 AC 47 ms
12,572 KB
testcase_26 AC 13 ms
6,864 KB
testcase_27 AC 3 ms
4,604 KB
evil01.txt AC 151 ms
27,296 KB
evil02.txt AC 149 ms
27,280 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

# use strict;
# use warnings;

<>;
chomp(my $s = <>);
my @As = split(/\s/, $s);
my %d;
foreach (@As) {
    $d{$_} = 0;
}
foreach (@As) {
    $d{$_}++;
}
my $c = 0;
foreach (values(%d)) {
    $c++ if $_ == 1;
}
print($c, "\n");
0