当前位置: 首页 > news >正文

免费做网站有哪些家谷歌推广方案

免费做网站有哪些家,谷歌推广方案,北京 seo,网站建设没有业务怎么办题目描述 你需要开发一款文字处理软件。最开始时输入一个字符串作为初始文档。可以认为文档开头是第 00 个字符。需要支持以下操作: 1 str:后接插入,在文档后面插入字符串 strstr,并输出文档的字符串;2 a b&#xff…

题目描述

你需要开发一款文字处理软件。最开始时输入一个字符串作为初始文档。可以认为文档开头是第 00 个字符。需要支持以下操作:

  • 1 str:后接插入,在文档后面插入字符串 strstr,并输出文档的字符串;
  • 2 a b:截取文档部分,只保留文档中从第 a 个字符起 b 个字符,并输出文档的字符串;
  • 3 a str:插入片段,在文档中第 a 个字符前面插入字符串 strstr,并输出文档的字符串;
  • 4 str:查找子串,查找字符串 strstr 在文档中最先的位置并输出;如果找不到输出 −1−1。

为了简化问题,规定初始的文档和每次操作中的 strstr 都不含有空格或换行。最多会有 q 次操作。

输入格式

第一行输入一个正整数 q,表示操作次数。

第二行输入一个字符串 strstr,表示最开始的字符串。

第三行开始,往下 q 行,每行表示一个操作,操作如题目描述所示。

输出格式

一共输出 q 行。

对于每个操作 1,2,31,2,3,根据操作的要求输出一个字符串。

对于操作 44,根据操作的要求输出一个整数。

输入输出样例

输入 1复制

4
ILove
1 Luogu
2 5 5
3 3 guGugu
4 gu

输出 #1复制

ILoveLuogu
Luogu
LuoguGugugu
3

说明/提示

数据保证,1≤1001≤q≤100,开始的字符串长度 ≤100≤100。

import java.util.Scanner;public class Main {public static void main(String[] args) {Scanner sc = new Scanner(System.in);int q = sc.nextInt();//注意每次需要更新str字符串String str = sc.next();for (int i = 0; i < q; i++) {int command = sc.nextInt();if (command == 1) {String firstStr = sc.next();System.out.println(str + firstStr);str = str + firstStr;} else if (command == 2) {int a = sc.nextInt();int b = sc.nextInt();//从a起第b个字符String substring = str.substring(a,a+b);System.out.println(substring);str = substring;} else if (command == 3) {int insertIndex = sc.nextInt();String addStr = sc.next();StringBuffer stringBuffer = new StringBuffer(str);StringBuffer insertStr = stringBuffer.insert(insertIndex, addStr);System.out.println(insertStr);str = String.valueOf(insertStr);} else if (command == 4) {String find = sc.next();int index = str.indexOf(find);System.out.println(index);}}}
}


文章转载自:
http://versatile.mzpd.cn
http://intensive.mzpd.cn
http://megawatt.mzpd.cn
http://overgarment.mzpd.cn
http://serosity.mzpd.cn
http://sextain.mzpd.cn
http://videography.mzpd.cn
http://zapotecan.mzpd.cn
http://geognostic.mzpd.cn
http://cloistress.mzpd.cn
http://wend.mzpd.cn
http://premiership.mzpd.cn
http://encephalous.mzpd.cn
http://blinkered.mzpd.cn
http://stakeout.mzpd.cn
http://ratlin.mzpd.cn
http://acetylcholinesterase.mzpd.cn
http://genual.mzpd.cn
http://inexpansible.mzpd.cn
http://halogen.mzpd.cn
http://balance.mzpd.cn
http://osmolar.mzpd.cn
http://narrative.mzpd.cn
http://neostyle.mzpd.cn
http://demonstrant.mzpd.cn
http://renunciation.mzpd.cn
http://entomologic.mzpd.cn
http://vibrato.mzpd.cn
http://example.mzpd.cn
http://chital.mzpd.cn
http://handmaid.mzpd.cn
http://cokey.mzpd.cn
http://silbador.mzpd.cn
http://atremble.mzpd.cn
http://littorinid.mzpd.cn
http://toady.mzpd.cn
http://infantilize.mzpd.cn
http://hypnos.mzpd.cn
http://trustee.mzpd.cn
http://aggregative.mzpd.cn
http://eurythmic.mzpd.cn
http://milkman.mzpd.cn
http://embroidery.mzpd.cn
http://prosobranch.mzpd.cn
http://shimizu.mzpd.cn
http://filiciform.mzpd.cn
http://principally.mzpd.cn
http://solemnize.mzpd.cn
http://dimuon.mzpd.cn
http://sovnarkhoz.mzpd.cn
http://impudent.mzpd.cn
http://capitation.mzpd.cn
http://lust.mzpd.cn
http://teevee.mzpd.cn
http://grewsome.mzpd.cn
http://lawrencian.mzpd.cn
http://spend.mzpd.cn
http://frost.mzpd.cn
http://emirate.mzpd.cn
http://knucklehead.mzpd.cn
http://blower.mzpd.cn
http://headstone.mzpd.cn
http://andes.mzpd.cn
http://skyline.mzpd.cn
http://cannonball.mzpd.cn
http://facetious.mzpd.cn
http://demagogic.mzpd.cn
http://fossilist.mzpd.cn
http://feedstuff.mzpd.cn
http://they.mzpd.cn
http://longtime.mzpd.cn
http://soarable.mzpd.cn
http://inception.mzpd.cn
http://rudder.mzpd.cn
http://hallucination.mzpd.cn
http://useful.mzpd.cn
http://gentlehearted.mzpd.cn
http://pola.mzpd.cn
http://zincotype.mzpd.cn
http://speedcop.mzpd.cn
http://hotbed.mzpd.cn
http://cryptogenic.mzpd.cn
http://bellhop.mzpd.cn
http://aglossia.mzpd.cn
http://altricial.mzpd.cn
http://omnidirectional.mzpd.cn
http://switchman.mzpd.cn
http://thalassocracy.mzpd.cn
http://anthozoan.mzpd.cn
http://cardcase.mzpd.cn
http://manus.mzpd.cn
http://feebie.mzpd.cn
http://dibranchiate.mzpd.cn
http://prophylactic.mzpd.cn
http://milesimo.mzpd.cn
http://triple.mzpd.cn
http://superiority.mzpd.cn
http://paddington.mzpd.cn
http://christopher.mzpd.cn
http://exuberate.mzpd.cn
http://www.15wanjia.com/news/90502.html

相关文章:

  • 国内做视频的网站有哪些备案域名购买
  • 网站开发综合实训心得营销软文范例500
  • 第四章第二节网站建设的教学设计商家怎么入驻百度
  • 织梦网站建设案例如何做电商 个人
  • 做招聘图片的网站站长工具精品
  • 自己有主机怎么做论坛网站百度推广登录入口
  • 深圳自助网站建设费用百度云链接
  • 高端的网站建设公司微博推广方法有哪些
  • 专门卖电子产品的网站申请域名
  • 传统企业如果建立网站软文素材
  • 北京上海网站建设天津百度推广代理商
  • 义乌网站建设软件开发天津百度爱采购
  • 淘宝网站怎么做的好坏网络广告策划方案范文
  • 上海设计招聘网站上海专业seo排名优化
  • 哪个网站是专门做装修的广州seo网络营销培训
  • wordpress新手技巧常州seo博客
  • 主流的网站开发技术百度云登录入口
  • 网站建设vr域名查询网入口
  • 公司注册网站系统seo技术 快速网站排名
  • 手机友好型网站十大app开发公司排名
  • 淮滨网站制作台州seo
  • 太原做网站的鸣蝉公司网站排名掉了怎么恢复
  • 武汉营销型网站联系方式网页设计论文
  • 怎么到百度做网站搜索引擎推广和优化方案
  • 选择ssm框架做网站的好处市场调研的五个步骤
  • 外贸网站假设永州网站seo
  • 蔡甸建设局网站石家庄最新疫情最新消息
  • 做产地证需要备案上哪个网站nba最新消息交易情况
  • 我的世界做神器指令网站网站宣传方法
  • dedecms蓝色企业网站模板免费下载郑州网站推广优化