結果

問題 No.182 新規性の虜
ユーザー TLwiegehttTLwiegehtt
提出日時 2015-07-08 01:33:37
言語 C90
(gcc 11.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 356 bytes
コンパイル時間 399 ms
コンパイル使用メモリ 23,972 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-08-27 07:25:19
合計ジャッジ時間 24,756 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 0 ms
4,380 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 0 ms
4,376 KB
testcase_08 AC 1,799 ms
4,376 KB
testcase_09 AC 4,822 ms
4,376 KB
testcase_10 AC 3,618 ms
4,380 KB
testcase_11 AC 2,450 ms
4,376 KB
testcase_12 AC 441 ms
4,380 KB
testcase_13 AC 1 ms
4,380 KB
testcase_14 AC 0 ms
4,380 KB
testcase_15 AC 0 ms
4,376 KB
testcase_16 AC 1 ms
4,376 KB
testcase_17 AC 1 ms
4,376 KB
testcase_18 AC 851 ms
4,380 KB
testcase_19 AC 562 ms
4,376 KB
testcase_20 AC 293 ms
4,380 KB
testcase_21 AC 987 ms
4,380 KB
testcase_22 AC 405 ms
4,376 KB
testcase_23 AC 0 ms
4,376 KB
testcase_24 TLE -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
evil01.txt -- -
evil02.txt -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void){
	int cnt = 0;
	int i,j,n;
	int a[100010];
	scanf("%d", &n);
	for(i=0;i<n;i++){
		scanf("%d", &a[i]);
	}
	for(i=0;i<n;i++){
		int num = a[i];
		if(a[i] == 0){continue;}
		
		for(j=i+1;j<n;j++){
			if(num == a[j]){
				a[i] = 0;
				a[j] = 0;
			}
		}
		if(a[i] != 0){
			cnt++;
		}
	}
	
	printf("%d\n", cnt);
	return 0;
}
0