結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
gogotea
|
| 提出日時 | 2015-04-16 23:38:37 |
| 言語 | Go1.4 (1.4.2) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 5,000 ms |
| コード長 | 466 bytes |
| コンパイル時間 | 3,596 ms |
| コンパイル使用メモリ | 32,512 KB |
| 実行使用メモリ | 5,632 KB |
| 最終ジャッジ日時 | 2024-12-26 18:49:05 |
| 合計ジャッジ時間 | 5,317 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
N := nextInt()
m := make(map[int]int, N)
for i := 0; i < N; i++ {
A := nextInt()
m[A]++
}
ans := 0
for _, v := range m {
if v == 1 {
ans++
}
}
fmt.Println(ans)
}
var sc = bufio.NewScanner(os.Stdin)
func next() string {
sc.Split(bufio.ScanWords)
sc.Scan()
return sc.Text()
}
func nextInt() int {
i, e := strconv.Atoi(next())
if e != nil {
panic(e)
}
return i
}
gogotea