Search
 
SCRIPT & CODE EXAMPLE
 

CPP

Distinct Numbers CSES

#include<bits/stdc++.h>
using namespace std;
 
int main(){
 
set<int> s;
 
int n;
cin>>n;
 
	for(int i=0;i<n;i++){
		
		int k;
		cin>>k;
		s.insert(k);	
	}
 
cout<<s.size()<<endl;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: ue4 c++ bool to text 
Cpp :: Imports the elements in the array c++ 
Cpp :: c++ trim string 
Cpp :: how are c++ references implemented 
Cpp :: punteros a arrays 
Cpp :: ubuntu dotnet create blazorserver linux 
Cpp :: empty 2d array as a member of a class class c++ 
Cpp :: c++ start process and get output 
Cpp :: c++ thread id 
Cpp :: shrek c++ 
Cpp :: huffman encoding in c++ 
Cpp :: Accepting multiple inputs on the SAME LINE C++ 
Cpp :: 191. Number of 1 Bits leetcode solution in c++ 
Cpp :: c++ array access operator 
Cpp :: warning in range-based for loop in C++. How to resolve it in vscode? 
Cpp :: fabs in c++ example 
Cpp :: #defie in c++ 
Cpp :: How to clear keyboard buffer c++ 
Cpp :: c++ program to use nmap 
Cpp :: C++ (ISO) 
Cpp :: factorial MOD 998244353 
Cpp :: c++ calorie calculator using a for loop 
Cpp :: how to display score using SDL in c++ 
Cpp :: Structure of s void function 
Cpp :: converter python to c++ code 
Cpp :: c++ to c converter online free 
Cpp :: how to write string in c++ 
Cpp :: converter c++ to c 
Cpp :: transform cpp 
Cpp :: c++ press any key 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =