結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2018-08-21 03:26:53 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 398 bytes |
コンパイル時間 | 617 ms |
コンパイル使用メモリ | 65,552 KB |
実行使用メモリ | 814,592 KB |
最終ジャッジ日時 | 2024-11-28 23:58:20 |
合計ジャッジ時間 | 38,163 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | MLE * 3 |
other | MLE * 27 |
ソースコード
#define _USE_MATH_DEFINES #include<iostream> #include<string> #include<algorithm> #include<vector> #include<cmath> #define rep(i, n) for(int i = 0; i < (int)(n); i++) using namespace std; int main() { int n; cin >> n; vector<int> a(n); int b[1000000010]; rep(i, n) cin >> a[i]; rep(i, n) b[a[i]]++; int cnt = 0; rep(i, 1000000001) if (b[i] == 1) cnt++; cout << cnt << endl; return 0; }