Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
433679 沈洛楠 【C2-7】LOL C++ 通过 100 1 MS 236 KB 289 2026-03-21 15:40:21

Tests(3/3):


#include<bits/stdc++.h> using namespace std; int main(){ int n,a=0,b=0; char k; cin>>n; for(int i=1;i<=n;i++){ cin>>k; if('A'<=k&&k<='E') a++; else b++; } if(a>b) cout<<"xf"<<endl; else if(a==b) cout<<"same"<<endl; else cout<<"xy"<<endl; return 0; }


测评信息: