結果

問題 No.182 新規性の虜
ユーザー teioteio
提出日時 2020-07-26 15:22:32
言語 Perl
(5.38.2)
結果
AC  
実行時間 131 ms / 5,000 ms
コード長 287 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 24,436 KB
最終ジャッジ日時 2023-09-11 01:53:16
合計ジャッジ時間 2,721 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,504 KB
testcase_01 AC 2 ms
4,672 KB
testcase_02 AC 3 ms
4,608 KB
testcase_03 AC 3 ms
4,516 KB
testcase_04 AC 2 ms
4,696 KB
testcase_05 AC 3 ms
4,572 KB
testcase_06 AC 2 ms
4,536 KB
testcase_07 AC 2 ms
4,704 KB
testcase_08 AC 65 ms
15,592 KB
testcase_09 AC 118 ms
23,024 KB
testcase_10 AC 98 ms
20,768 KB
testcase_11 AC 76 ms
17,360 KB
testcase_12 AC 27 ms
10,112 KB
testcase_13 AC 3 ms
4,536 KB
testcase_14 AC 2 ms
4,500 KB
testcase_15 AC 2 ms
4,584 KB
testcase_16 AC 2 ms
4,696 KB
testcase_17 AC 3 ms
4,632 KB
testcase_18 AC 44 ms
12,224 KB
testcase_19 AC 35 ms
10,308 KB
testcase_20 AC 25 ms
8,532 KB
testcase_21 AC 50 ms
12,752 KB
testcase_22 AC 30 ms
9,220 KB
testcase_23 AC 3 ms
4,660 KB
testcase_24 AC 131 ms
24,436 KB
testcase_25 AC 40 ms
12,608 KB
testcase_26 AC 13 ms
6,840 KB
testcase_27 AC 3 ms
4,580 KB
evil01.txt AC 141 ms
26,400 KB
evil02.txt AC 144 ms
26,404 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

# use strict;
# use warnings;

<>;
chomp(my $s = <>);
my @As = split(/\s/, $s);
my %d;
my %c;
foreach (@As) {
    next if exists($c{$_});
    if (exists($d{$_})) {
        delete $d{$_};
        $c{$_} = undef;
    } else {
        $d{$_} = undef;
    }
}
print(scalar(keys(%d)), "\n");
0