結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2020-07-26 15:28:25 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 111 ms / 5,000 ms |
コード長 | 228 bytes |
コンパイル時間 | 48 ms |
コンパイル使用メモリ | 5,248 KB |
実行使用メモリ | 28,160 KB |
最終ジャッジ日時 | 2024-06-28 16:24:24 |
合計ジャッジ時間 | 2,114 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
# use strict; # use warnings; <>; chomp(my $s = <>); my @As = split(/\s/, $s); my %d; foreach (@As) { $d{$_} = 0 if !exists($d{$_}); $d{$_}++; } my $c = 0; foreach (values(%d)) { $c++ if $_ == 1; } print($c, "\n");