結果

問題 No.182 新規性の虜
ユーザー fiord
提出日時 2015-04-23 22:51:16
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 258 bytes
コンパイル時間 480 ms
コンパイル使用メモリ 55,088 KB
実行使用メモリ 10,528 KB
最終ジャッジ日時 2024-07-05 00:40:06
合計ジャッジ時間 24,235 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20 TLE * 2 -- * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

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