結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
ただのガゼス(MonAgent)
|
| 提出日時 | 2023-12-24 00:53:27 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 362 bytes |
| コンパイル時間 | 937 ms |
| コンパイル使用メモリ | 73,476 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-27 13:31:59 |
| 合計ジャッジ時間 | 4,596 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 WA * 4 RE * 13 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <queue>
using namespace std;
int main(){
int n;
vector<int> A(100001, 0);
cin >> n;
int sum = 0;
for (int i = 0; i < n; ++i){
int a;
cin >> a;
++A[a];
}
for (int i = 1; i <= n; ++i){
if (A[i] == 1){
++sum;
}
}
cout << sum << endl;
return 0;
}
ただのガゼス(MonAgent)