Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
37307 ☩Deutschland☩ 查找特定的值 C++ 解答错误 1 MS 244 KB 263 2024-01-20 09:57:29

Tests(0/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n,m,e=0; cin>>n; int ns[n]; for(int i=0;i<=n-1;i++){ cin>>ns[i]; for(int j=0;j<=n-1;j++){ cin>>m; if(m==ns[i]){ e+=i; break; } } } cout<<e; return 0; }


测评信息: