📄 3215768_ac_16ms_176k.c
字号:
#include <stdio.h>
#include <ctype.h>
char str[501];
void output(int st,int ed)
{
int i;
for(i = st; i < ed; i++)
{
putchar(str[i]);
}
puts("");
}
int main()
{
int i, j;
scanf("%s",str);
for(i = 2; str[i]; i++)
{
if(str[i]=='@'||str[i]=='#'||str[i]=='&')
{
j = i+2;
while(str[j]&&isdigit(str[j]))
j++;
if(str[j]=='=')
{
j++;
while(str[j]&&isdigit(str[j]))
j++;
}
output(i,j);
i = j-1;
continue;
}
if(isupper(str[i+1]))
j = i+2;
else
j = i+1;
while(str[j]&&isdigit(str[j]))
j++;
if(str[j]=='=')
{
j++;
while(str[j]&&isdigit(str[j]))
j++;
}
output(i,j);
i = j-1;
}
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -