結果

問題 No.182 新規性の虜
ユーザー kat0rikkat0rik
提出日時 2020-02-03 19:27:23
言語 Go
(1.22.1)
結果
AC  
実行時間 38 ms / 5,000 ms
コード長 405 bytes
コンパイル時間 12,580 ms
コンパイル使用メモリ 214,316 KB
実行使用メモリ 12,092 KB
最終ジャッジ日時 2023-10-19 08:54:09
合計ジャッジ時間 13,577 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 1 ms
4,348 KB
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 2 ms
4,348 KB
testcase_07 AC 1 ms
4,348 KB
testcase_08 AC 21 ms
7,160 KB
testcase_09 AC 30 ms
7,356 KB
testcase_10 AC 27 ms
7,284 KB
testcase_11 AC 24 ms
7,208 KB
testcase_12 AC 9 ms
4,672 KB
testcase_13 AC 1 ms
4,348 KB
testcase_14 AC 1 ms
4,348 KB
testcase_15 AC 1 ms
4,348 KB
testcase_16 AC 1 ms
4,348 KB
testcase_17 AC 1 ms
4,348 KB
testcase_18 AC 10 ms
4,348 KB
testcase_19 AC 7 ms
4,348 KB
testcase_20 AC 5 ms
4,348 KB
testcase_21 AC 10 ms
4,348 KB
testcase_22 AC 6 ms
4,348 KB
testcase_23 AC 1 ms
4,348 KB
testcase_24 AC 38 ms
12,092 KB
testcase_25 AC 6 ms
4,348 KB
testcase_26 AC 3 ms
4,348 KB
testcase_27 AC 2 ms
4,348 KB
evil01.txt AC 40 ms
12,168 KB
evil02.txt AC 39 ms
12,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

func nextInt(sc *bufio.Scanner) int {
	sc.Scan()
	t, _ := strconv.Atoi(sc.Text())
	return t
}

func main() {
	sc := bufio.NewScanner(os.Stdin)
	sc.Split(bufio.ScanWords)
	N := nextInt(sc)
	A := make(map[int]int, 0)
	for i := 0; i < N; i++ {
		A[nextInt(sc)]++
	}
	ans := 0
	for _, v := range A {
		if v == 1 {
			ans++
		}
	}
	fmt.Println(ans)
}
0