結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
ldsyb
|
| 提出日時 | 2016-02-27 14:29:37 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 334 bytes |
| コンパイル時間 | 501 ms |
| コンパイル使用メモリ | 57,740 KB |
| 実行使用メモリ | 14,016 KB |
| 最終ジャッジ日時 | 2024-09-24 11:39:03 |
| 合計ジャッジ時間 | 10,312 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | WA * 6 TLE * 1 -- * 20 |
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
int main(){
int ans = 0,count,n;
cin >> n;
long long a[n];
for(int i = 0;i < n;i++) cin >> a[i];
for(int i = 0;i < n;i++){
count = 0;
for(int j = 0;j < n;j++) if(a[i] == a[j]) count++;
if(count == 2) ans++;
}
cout << ans << endl;
}
ldsyb