結果

問題 No.182 新規性の虜
ユーザー k.hk.h
提出日時 2019-08-04 16:06:42
言語 Go
(1.22.1)
結果
AC  
実行時間 976 ms / 5,000 ms
コード長 244 bytes
コンパイル時間 11,177 ms
コンパイル使用メモリ 211,604 KB
実行使用メモリ 11,440 KB
最終ジャッジ日時 2023-09-22 18:13:59
合計ジャッジ時間 20,450 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 597 ms
8,100 KB
testcase_09 AC 976 ms
10,836 KB
testcase_10 AC 852 ms
9,988 KB
testcase_11 AC 705 ms
9,628 KB
testcase_12 AC 291 ms
7,744 KB
testcase_13 AC 2 ms
4,376 KB
testcase_14 AC 1 ms
4,380 KB
testcase_15 AC 2 ms
4,376 KB
testcase_16 AC 1 ms
4,380 KB
testcase_17 AC 1 ms
4,380 KB
testcase_18 AC 444 ms
7,940 KB
testcase_19 AC 316 ms
7,940 KB
testcase_20 AC 192 ms
4,716 KB
testcase_21 AC 505 ms
7,944 KB
testcase_22 AC 242 ms
5,172 KB
testcase_23 AC 1 ms
4,380 KB
testcase_24 AC 721 ms
11,440 KB
testcase_25 AC 262 ms
7,924 KB
testcase_26 AC 125 ms
5,640 KB
testcase_27 AC 1 ms
4,376 KB
evil01.txt AC 1,164 ms
12,160 KB
evil02.txt AC 1,155 ms
12,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import (
	"fmt"
)

func main() {
	var N, rlt int
	var s string
	fmt.Scan(&N)
	m := make(map[string]int)
	for i := 0; i < N; i++ {
		fmt.Scan(&s)
		m[s]++
	}
	for _, v := range m {
		if v == 1 {
			rlt++
		}
	}
	fmt.Println(rlt)
}
0