From bdd6576996e48a0293cbe23843dd1abf15cdade2 Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Thu, 16 Jun 2016 11:52:41 +0800 Subject: [PATCH] Create 1433.cpp --- QUSTOJ/1433.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 QUSTOJ/1433.cpp diff --git a/QUSTOJ/1433.cpp b/QUSTOJ/1433.cpp new file mode 100644 index 0000000..4c3fc1b --- /dev/null +++ b/QUSTOJ/1433.cpp @@ -0,0 +1,27 @@ +#include +#include +#include +using namespace std; +int main() +{ + int a[1001],n,m,i; + memset(a,0,sizeof(a)); + cin>>n; + int count=0; + for(i=1;i<=n;i++) + { + cin>>m; + a[m]++; + } + for(i=1;i<=1000;i++) + if(a[i]!=0) count++; + cout<