結果
問題 | No.182 新規性の虜 |
ユーザー |
![]() |
提出日時 | 2016-01-16 04:04:06 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 135 ms / 5,000 ms |
コード長 | 292 bytes |
コンパイル時間 | 3,047 ms |
コンパイル使用メモリ | 166,476 KB |
実行使用メモリ | 11,264 KB |
最終ジャッジ日時 | 2024-12-26 20:05:05 |
合計ジャッジ時間 | 4,711 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; map<string, int> m; for (int i = 0; i < N; ++i) { string s; cin >> s; m[s]++; } int cnt = 0; for (auto &item : m) if (item.second == 1) cnt++; cout << cnt << endl; }