結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
hamray
|
| 提出日時 | 2017-11-18 13:44:35 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 380 bytes |
| 記録 | |
| コンパイル時間 | 1,697 ms |
| コンパイル使用メモリ | 162,652 KB |
| 実行使用メモリ | 10,660 KB |
| 最終ジャッジ日時 | 2024-11-25 11:32:29 |
| 合計ジャッジ時間 | 89,661 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 TLE * 14 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define NUM 11
int main(void){
int N; cin >> N;
int A, cnt = 0;
vector<int> v;
for(int i=0; i<N; i++){
cin >> A;
v.push_back(A);
}
sort(v.begin(), v.end());
for(int i=1; i<=v[N-1]; i++){
if(count(v.begin(), v.end(), i) == 1) cnt++;
}
cout << cnt << endl;
return 0;
}
hamray