結果

問題 No.182 新規性の虜
ユーザー nak2yoshi
提出日時 2016-02-23 02:18:28
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 31 ms / 5,000 ms
コード長 290 bytes
コンパイル時間 991 ms
コンパイル使用メモリ 103,424 KB
実行使用メモリ 9,620 KB
最終ジャッジ日時 2024-06-12 03:01:27
合計ジャッジ時間 2,086 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio,
       std.conv,
       std.string,
       std.range,
       std.math,
       std.algorithm;

void main()
{
    auto N = readln.strip.to!int;
    auto A = readln.split.to!(int[]);

    int[int] table;
    A.each!(a => table[a]++);
    table.values.count!"a==1".writeln;
}
0