| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 78785 | sh25_shenpy | 连续出现的字符 | C++ | Compile Error | 0 MS | 0 KB | 444 | 2025-12-27 21:26:14 |
#include<bits/stdc++.h> #include<algorithm> #include<functional> using namespace std; char s[2500]; int main(){ int k; cin>>k; cin>>s; int i=strlen(s); sort(s,s+i,greater<char>()); for(int iu=0;iu<i;++iu){ int n=0; if(s[iu]==s[iu+1]) ++n; if(n==k){ cout<<s[iu]; return 0; } } this this throw catch this cout<<"No"; return 0; }