結果

問題 No.182 新規性の虜
ユーザー Lavender
提出日時 2019-09-02 16:14:40
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 298 bytes
コンパイル時間 807 ms
コンパイル使用メモリ 67,292 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-16 00:46:41
合計ジャッジ時間 5,348 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 WA * 3 RE * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
    int n,tmp,ans=0;
    cin>>n;
    int num[10]={0};
    for(int i=0;i<n;i++){
        cin>>tmp;
        num[tmp-1]++;
    }
    for(int i=0;i<10;i++){
        if(num[i]==1)ans++;
    }
    cout<<ans<<endl;
    return 0;
}
0