Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
354598 胡珂 【C2-7】LOL C++ 编译错误 0 0 MS 0 KB 301 2025-10-04 12:05:46

Tests(0/0):


#include <bits/stdc++.h> using namespace std; int main(){ int n,a[186],xf=0,xy=0; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; if(a[i]=="A"&&a[i]=="B"&&a[i]=="C"&&a[i]=="D"&&a[i]=="E") xf++; else xy++; }if(xf>xy) cout<<"xf"; if(xy>xf) cout<<"xy"; else cout<<"same"; return 0; }


测评信息: