結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2019-02-20 14:48:44 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 890 ms / 5,000 ms |
コード長 | 259 bytes |
コンパイル時間 | 13,972 ms |
コンパイル使用メモリ | 228,384 KB |
実行使用メモリ | 9,588 KB |
最終ジャッジ日時 | 2024-11-06 20:51:32 |
合計ジャッジ時間 | 20,745 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
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) }