| 提出番号 | 1099 |
|---|---|
| 提出者 | lglover |
| 言語 | C++ |
| 提出日時 | 2018-01-07 01:02:19 |
| 問題名 | (22)世界最大のコンテスト |
| 結果 | AC |
| 点数 | 100% |
| テストケース | 結果 | 得点 | 実行時間 | メモリ使用量 |
|---|---|---|---|---|
| 1 | AC | 100% | 2ms | 8304KB |
| 2 | AC | 100% | 2ms | 7824KB |
| 3 | AC | 100% | 7ms | 8672KB |
| 4 | AC | 100% | 21ms | 12704KB |
| 5 | AC | 100% | 85ms | 29872KB |
#include <iostream>
#include <string>
#include <algorithm>
#include <map>
#include <math.h>
#include <iomanip>
#include <vector>
#include <queue>
#include <functional>
#include <random>
#include <time.h>
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> P;
int main() {
map<ll, ll>mp;
ll n, a;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a;
mp[a]++;
}
cout << mp.size() << endl;
return 0;
}