23333333333333333

#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#define maxn 1005000
char s[maxn],t[maxn],p[maxn];
int p1,p2,p3,top=-,l;
void work(int x)
{
int l=s[x-],r=s[x+],cnt=;
if ((s[x-]<='') && (s[x+]>'')) {t[++top]='-';return;}
if ((s[x-]=='-') || (s[x+]=='-')) {t[++top]='-';return;}
for (int i=l+;i<=r-;i++)
{
for (int j=;j<=p2;j++)
{
if (p1==)
{
p[++cnt]='*';
continue;
}
if ((s[x-]>='') && (s[x-]<=''))
p[++cnt]=i;
else
{
if (p1==) p[++cnt]=i;
else if (p1==) p[++cnt]=i-;
}
}
}
if (p3==)
{
for (int i=;i<=cnt;i++)
t[++top]=p[i];
}
else
{
for (int i=;i<=cnt;i++)
t[++top]=p[cnt-i+];
}
}
int main()
{
scanf("%d%d%d",&p1,&p2,&p3);
scanf("%s",s);
l=strlen(s);
for (int i=;i<l;i++)
{
if (s[i]!='-')
t[++top]=s[i];
else
{
if (i==) {t[++top]='-';continue;}
if (i==l-) {t[++top]='-';continue;}
if (s[i-]==s[i+]) t[++top]=s[i];
else if (s[i-]>s[i+]) t[++top]=s[i];
else work(i);
}
}
printf("%s",t);
return ;
}

最新文章

  1. echo中的逗号
  2. 标签控制器,UITabBarController
  3. jQuery 遍历
  4. react.js 从零开始(三)JSX 语法及特点介绍
  5. jquer 带左右按钮滚动图片 点击显示大图
  6. iOS性能之HTTP2.0
  7. Java读取property配置文件
  8. linux 下文件误删恢复
  9. leetcode 之 Single Number II
  10. CA证书理解?CA证书的作用?
  11. I/O模型之三:两种高性能 I/O 设计模式 Reactor 和 Proactor
  12. Eclipse中Lombok的安装和注解说明
  13. [转帖]关于CP936
  14. YOLO系列:YOLO v1深度解析
  15. DHCP的搭建
  16. sublime断点调试
  17. Programmed Adjustable Power
  18. ldd 以及 ld-linux.so.2
  19. Ubuntu 登陆界面无限循环问题 以及 root用户无法使用命令问题
  20. centos7配置vsftpd服务器

热门文章

  1. 11gR2数据库日志报错:Fatal NI connect error 12170、
  2. JQuery的ajax方法
  3. javascript和“主流大型语言”(c# JAVA C++等)的差异
  4. Sql调用WebService
  5. 自绘按钮,添加Color属性(转载)
  6. 分布式数据存储-MySQL主从复制
  7. UITextField中文搜索
  8. java集合之ArrayList的实现原理
  9. Codeforces Round #262 (Div. 2) A B C
  10. socket传输过程