| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 124556 | 李昊宇 | 处理随机数 | C++ | Wrong Answer | 1 MS | 272 KB | 352 | 2025-07-12 08:52:18 |
#include<bits/stdc++.h> using namespace std; int a[1000]; int main(){ int n,p,b,d; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int i=1;i<=n;i++){ int cnt = 0; for(int j=1;j<=n;j++){ if(a[i]==a[j]){ cnt++; } } if(cnt%2!=0){ cout<<i<<endl; } } }
------Input------
9 10 29 39 67 58 48 29 57 23
------Answer-----
8 10 23 29 39 48 57 58 67
------Your output-----
1 3 4 5 6 8 9