| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 124558 | 罗锦墨 | 19买画笔 | C++ | Wrong Answer | 1 MS | 268 KB | 337 | 2025-07-12 08:52:49 |
#include<bits/stdc++.h> using namespace std; int a[1000005]; int main() { int n; 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; return 0; } } return 0; }
------Input------
9 1 1 9 11 3 3 11 5 9
------Answer-----
5
------Your output-----
8