thedunghcm10
@thedunghcm10
Hiệu năng
3,11
#890
Đã giải
3
Các kỳ thi đang tham gia
0/ 3
Đóng góp
0
🌹
Rose
6#2662
🌻
Sunflower
8#430
§ giới thiệu
Thông tin
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
ll n;
cin>>n;
vector<ll>a(n);
for(ll i=0;i<n;++i)
{
cin>>a[i];
}
sort(a.begin(),a.end());
ll dem=1;
for(ll i=1;i<n;++i)
{
if(a[i]!=a[i-1])dem++;
}
cout<<dem;
}
§ gần đây
Hoạt động gần đây
Hoạt động
https://oj.chuyentin.pro/user/thedunghcm10