%100 AC
2025-11-01 21:08:37
发布于:四川
66阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int t;
int main(){
cin >> t;
while(t--){
int tong[105]={},arr[105]={};
int n;
cin >> n;
for(int i=1;i<=n;i++){
cin>>arr[i];
int idx = arr[i];
tong[idx]++;
}
int c;
for(int i=1;i<=100;i++){
if(tong[i]==1){
c=i;
}
}
for(int i=1;i<=100;i++){
if(arr[i]==c) cout<<i<<endl;
}
}
return 0;
}
全部评论 1
@AC君发题解不打注释
2026-02-07 来自 四川
0











有帮助,赞一个