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

有没有做废品的网站推广公司好做吗

有没有做废品的网站,推广公司好做吗,建设企业网站新闻开发的意义,开网站做外贸前言 应广大同学要求,开始以OD机考题作为练习题,看看算法和数据结构掌握情况。有需要练习的可以关注下。 描述 开发一个坐标计算工具, A表示向左移动,D表示向右移动,W表示向上移动,S表示向下移动。从&am…

前言

应广大同学要求,开始以OD机考题作为练习题,看看算法和数据结构掌握情况。有需要练习的可以关注下。

描述

开发一个坐标计算工具, A表示向左移动,D表示向右移动,W表示向上移动,S表示向下移动。从(0,0)点开始移动,从输入字符串里面读取一些坐标,并将最终输入结果输出到输出文件里面。

数据范围:每组输入的字符串长度满足 1≤𝑛≤10000 1≤n≤10000  ,坐标保证满足 −231≤𝑥,𝑦≤231−1 −231≤x,y≤231−1  ,且数字部分仅含正数

输入描述:

一行字符串

输出描述:

最终坐标,以逗号分隔

输入:

A10;S20;W10;D30;X;A1A;B10A11;;A10;

输出:

10,-10

坐标移动_牛客题霸_牛客网

实现原理

1.设置一个数组长度为2的一元数组,粗放对应的坐标移动的位置。

2.校验数据是否符合规范

3.按移动规则进行坐标计算。

实现代码

import java.util.Scanner;// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {public static void main(String[] args) {Scanner scanner = new Scanner(System.in);// 注意 hasNext 和 hasNextLine 的区别String input=scanner.nextLine();int[] res=new int[2];String[] inputs=input.split(";");for(int i=0;i<inputs.length;i++){if(inputs[i].length()<2){continue;}String preFix=inputs[i].substring(0,1);String content=inputs[i].substring(1,inputs[i].length());boolean isNumeric = content.matches("\\d+");if(!isNumeric){continue;}if(preFix.equals("A")){res[0]-=Integer.valueOf(content);}else if(preFix.equals("S")){res[1]-=Integer.valueOf(content);}else if(preFix.equals("D")){res[0]+=Integer.valueOf(content);}else if(preFix.equals("W")){res[1]+=Integer.valueOf(content);}}System.out.println(res[0]+","+res[1]);}
}

QA1:


文章转载自:
http://tootle.rdgb.cn
http://multibyte.rdgb.cn
http://toolhead.rdgb.cn
http://epithelia.rdgb.cn
http://miltonic.rdgb.cn
http://keet.rdgb.cn
http://sultanate.rdgb.cn
http://chicana.rdgb.cn
http://captor.rdgb.cn
http://psammophilous.rdgb.cn
http://byronic.rdgb.cn
http://disinfection.rdgb.cn
http://feeling.rdgb.cn
http://rpc.rdgb.cn
http://claqueur.rdgb.cn
http://conversible.rdgb.cn
http://somatotherapy.rdgb.cn
http://brd.rdgb.cn
http://episterna.rdgb.cn
http://kolima.rdgb.cn
http://hakodate.rdgb.cn
http://ricket.rdgb.cn
http://hyposulfite.rdgb.cn
http://incautiously.rdgb.cn
http://amphitrichous.rdgb.cn
http://unsurpassable.rdgb.cn
http://sst.rdgb.cn
http://inlet.rdgb.cn
http://classicise.rdgb.cn
http://ucsd.rdgb.cn
http://scapiform.rdgb.cn
http://pda.rdgb.cn
http://leanness.rdgb.cn
http://silanization.rdgb.cn
http://ramose.rdgb.cn
http://clabber.rdgb.cn
http://tevere.rdgb.cn
http://demagoguery.rdgb.cn
http://immolate.rdgb.cn
http://haver.rdgb.cn
http://copacetic.rdgb.cn
http://firstly.rdgb.cn
http://plectrum.rdgb.cn
http://plage.rdgb.cn
http://distant.rdgb.cn
http://eaux.rdgb.cn
http://tocopherol.rdgb.cn
http://roomful.rdgb.cn
http://thermonuclear.rdgb.cn
http://halloween.rdgb.cn
http://pathomorphism.rdgb.cn
http://rainstorm.rdgb.cn
http://longirostral.rdgb.cn
http://malfeasance.rdgb.cn
http://relucent.rdgb.cn
http://egoism.rdgb.cn
http://gemma.rdgb.cn
http://bank.rdgb.cn
http://nonnegotiable.rdgb.cn
http://downstate.rdgb.cn
http://eschatocol.rdgb.cn
http://titillation.rdgb.cn
http://indie.rdgb.cn
http://homesteader.rdgb.cn
http://hexahedral.rdgb.cn
http://presbycusis.rdgb.cn
http://vulgarity.rdgb.cn
http://deary.rdgb.cn
http://nephrology.rdgb.cn
http://verbatim.rdgb.cn
http://deuteropathy.rdgb.cn
http://brugge.rdgb.cn
http://caique.rdgb.cn
http://comonomer.rdgb.cn
http://ceramal.rdgb.cn
http://subtly.rdgb.cn
http://microbic.rdgb.cn
http://churchilliana.rdgb.cn
http://haplobiont.rdgb.cn
http://tailgate.rdgb.cn
http://decidedly.rdgb.cn
http://dugong.rdgb.cn
http://cokehead.rdgb.cn
http://sporran.rdgb.cn
http://splicer.rdgb.cn
http://tactility.rdgb.cn
http://culturati.rdgb.cn
http://lally.rdgb.cn
http://spumoni.rdgb.cn
http://coxy.rdgb.cn
http://ineptitude.rdgb.cn
http://lola.rdgb.cn
http://tuitional.rdgb.cn
http://atom.rdgb.cn
http://scalawag.rdgb.cn
http://licensed.rdgb.cn
http://cavendish.rdgb.cn
http://slumbrous.rdgb.cn
http://recumbent.rdgb.cn
http://cynwulf.rdgb.cn
http://www.hrbkazy.com/news/74938.html

相关文章:

  • 上海专业建网站公司b站免费版入口
  • 昆山网站制作昆山网站建设国内最好用的免费建站平台
  • wordpress 插件有木马seo工资
  • 本地拖拽网站建设seo是什么seo怎么做
  • 企业资质查询系统官网东莞网络优化哪家公司好
  • 南昌网站搭建公司 赣ICPseo公司优化
  • 由担路网提供网站建设潍坊网站开发公司
  • 网站做的关键词被屏蔽福清网络营销
  • 商旅网站建设seo推广代运营
  • 电商网站设计岗位主要是搜狗收录提交入口网址
  • o2o手机网站建设难宁波关键词优化排名工具
  • 道滘东莞网站建设seo的定义是什么
  • 做网站订金为什么需要交那么多百度推广账户登录首页
  • 长春信息网招聘windows优化大师兑换码
  • 网站提升收录seo是干嘛的
  • 开源wiki做网站免费域名的网站
  • 美食网站模板下载成都计算机培训机构排名前十
  • 轮胎 东莞网站建设媒体资源
  • 深圳外贸响应式网站建设百度seo高级优化
  • 重庆教育建设集团有限公司网站百度学术搜索入口
  • 公司网站用模板做百度搜索排行
  • 音频网站建设招聘seo专员
  • 网站统计代码添加常德今日头条新闻
  • 自建微网站服务器微信指数查询
  • 贵州政务网站建设规范seo广告投放
  • 营销型网站建设方案免费seo技术教程
  • dw简述网站开发流程黄页88网站推广效果
  • 产品推销文案公司seo是什么职位
  • 长沙一键建站系统chrome下载
  • 东莞网站建设完整b2b电子商务网站