結果

問題 No.182 新規性の虜
ユーザー monburan_0401
提出日時 2018-09-03 06:54:58
言語 C
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 530 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 29,312 KB
実行使用メモリ 8,864 KB
最終ジャッジ日時 2024-10-05 10:43:03
合計ジャッジ時間 10,800 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 TLE * 1 -- * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(void){
	int N;		//	number of words. N <= (10^5)
	int A[100000];		//	boxes(each number). A[i] <= (10^9)
	int same = 0;		//	number of same words
	int count = 0;		//	
	
	scanf("%d",&N);
	for(int i = 0;i < N;i++){
		scanf("%d",&A[i]);
	}
	
	//	printf("%d",A[0]);		//	check OK
	
	for(int j = 0;j < N;j++){
		for(int k = 0;k < N;k++){
			if(k == j){
				continue;
			}
			if(A[j] == A[k]){
				same += 1;
			}
		}
		if(same == 0){
			count += 1;
		}
		same = 0;
	}
	
	printf("%d\n",count);
	
	return 0;
}
0