# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
895872 | noompty | Vim (BOI13_vim) | C++17 | 27 ms | 36744 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<algorithm>
#include<cstdio>
#include<cstring>
using namespace std;
const int maxn=7e4,alpha='k'-'a'+1;
int n,len,cnte,f[maxn+1][alpha],g[maxn+1][alpha][alpha];
bool key[maxn+2];
char s[maxn+3];
int main()
{
memset(f,0x3f,sizeof f);
memset(g,0x3f,sizeof g);
scanf("%d\n",&n);
for(int i=1,check=0;i<=n;++i)
{
char t=getchar();
if(t=='e')
check=++cnte;
else
{
key[++len]=check;
s[len]=t-'a';
check=0;
}
}
f[0][s[1]]=0;
for(int i=1;i<=len;++i)
for(int j=0;j<alpha;++j)
{
if(j!=s[i])
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |