結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2015-12-19 12:32:21 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 355 bytes |
コンパイル時間 | 512 ms |
コンパイル使用メモリ | 61,716 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-16 08:54:55 |
合計ジャッジ時間 | 4,120 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 1 RE * 16 |
ソースコード
#include <iostream> #include <vector> #include <string> #include <array> #include <algorithm> using namespace std; int main(){ int n; cin >> n; vector<int> data(n); int ans = 0; int temp; for(int i = 0; i < n; i++){ cin >> temp; data[temp-1] += 1; } for(int i = 0; i < n; i++){ if(data[i] == 1) ans++; } cout << ans << endl; return 0; }