結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
cande398
|
| 提出日時 | 2018-03-09 23:47:08 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 424 bytes |
| コンパイル時間 | 481 ms |
| コンパイル使用メモリ | 60,636 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-10 20:37:07 |
| 合計ジャッジ時間 | 31,191 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 TLE * 3 -- * 5 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
bool func(vector<int> a, int b)
{
int count = 0;
for(int e: a) {
if(e == b) {
count++;
}
}
if(count == 1) {
return true;
}
return false;
}
int main(void)
{
int N, tmp, ans = 0;
cin >> N;
vector<int> A;
for(int i = 0; i < N; i++) {
cin >> tmp;
A.push_back(tmp);
}
for(int a: A) {
if(func(A, a)) {
ans++;
}
}
cout << ans << endl;
}
cande398