結果

問題 No.182 新規性の虜
ユーザー LavenderLavender
提出日時 2019-09-02 18:46:04
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 352 bytes
コンパイル時間 878 ms
コンパイル使用メモリ 66,548 KB
実行使用メモリ 10,400 KB
最終ジャッジ日時 2024-12-16 07:56:27
合計ジャッジ時間 52,227 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22 TLE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
    int n,count,ans=0;
    cin>>n;
    int a[n];
    for(int i=0;i<n;i++)cin>>a[i];
    for(int i=0;i<n;i++){
        count=0;
        for(int j=0;j<n;j++){
            if(a[i]==a[j]&&i!=j)count++;
        }
        if(count==0)ans++;
    }
    cout<<ans<<endl;
    return 0;
}
0