結果

問題 No.182 新規性の虜
ユーザー たつおたつお
提出日時 2023-09-29 16:29:11
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
実行時間 -
コード長 392 bytes
コンパイル時間 622 ms
コンパイル使用メモリ 63,256 KB
実行使用メモリ 8,760 KB
最終ジャッジ日時 2023-09-29 16:29:37
合計ジャッジ時間 25,234 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
8,036 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 2,047 ms
4,376 KB
testcase_09 TLE -
testcase_10 AC 4,075 ms
4,380 KB
testcase_11 AC 2,775 ms
4,380 KB
testcase_12 AC 496 ms
4,376 KB
testcase_13 AC 1 ms
4,376 KB
testcase_14 AC 1 ms
4,376 KB
testcase_15 AC 1 ms
4,376 KB
testcase_16 AC 1 ms
4,376 KB
testcase_17 AC 2 ms
4,376 KB
testcase_18 AC 599 ms
4,380 KB
testcase_19 AC 410 ms
4,380 KB
testcase_20 AC 238 ms
4,376 KB
testcase_21 AC 658 ms
4,380 KB
testcase_22 AC 313 ms
4,380 KB
testcase_23 AC 2 ms
4,380 KB
testcase_24 TLE -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
evil01.txt -- -
evil02.txt -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(void){
//input
	int N; cin >> N;
	int a[N]; for(int i=0;i<N;i++){ cin >> a[i]; }
//calc
	int cnt=0; bool newFlg;
	for(int i=0;i<N;i++){
		newFlg = true;
		for(int j=0;j<N;j++){
			if(j == i){
				continue;
			}else{
				if(a[j] == a[i]){
					newFlg = false;
					break;
				}
			}
		}
		if(newFlg) cnt++;
	}
//output
	cout << cnt << endl;
}
0