結果

問題 No.182 新規性の虜
ユーザー tsuchinagatsuchinaga
提出日時 2019-02-20 14:48:44
言語 Go
(1.21.3)
結果
AC  
実行時間 895 ms / 5,000 ms
コード長 259 bytes
コンパイル時間 12,102 ms
コンパイル使用メモリ 210,512 KB
実行使用メモリ 9,668 KB
最終ジャッジ日時 2023-08-06 17:53:34
合計ジャッジ時間 22,441 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 548 ms
6,948 KB
testcase_09 AC 895 ms
9,668 KB
testcase_10 AC 779 ms
9,548 KB
testcase_11 AC 644 ms
9,472 KB
testcase_12 AC 271 ms
5,676 KB
testcase_13 AC 1 ms
4,376 KB
testcase_14 AC 1 ms
4,376 KB
testcase_15 AC 1 ms
4,376 KB
testcase_16 AC 1 ms
4,508 KB
testcase_17 AC 2 ms
4,376 KB
testcase_18 AC 399 ms
7,940 KB
testcase_19 AC 286 ms
5,704 KB
testcase_20 AC 173 ms
5,668 KB
testcase_21 AC 455 ms
7,944 KB
testcase_22 AC 218 ms
5,684 KB
testcase_23 AC 1 ms
4,376 KB
testcase_24 AC 668 ms
9,300 KB
testcase_25 AC 271 ms
7,924 KB
testcase_26 AC 129 ms
4,376 KB
testcase_27 AC 1 ms
4,376 KB
evil01.txt AC 1,198 ms
9,808 KB
evil02.txt AC 1,188 ms
9,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import "fmt"

func main() {
	var n, a int
	_, _ = fmt.Scan(&n)

	nums := make(map[int]int, 0)
	for i := 0; i < n; i++ {
		_, _ = fmt.Scan(&a)
		nums[a]++
	}

	cnt := 0
	for _, c := range nums {
		if c == 1 {
			cnt++
		}
	}

	fmt.Println(cnt)
}
0