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

网站前后台建设难吗抚州网站seo

网站前后台建设难吗,抚州网站seo,厦门市建设工程质监站网站,广州天河区注册公司大家好,我是晴天学长,分类讨论一定要细节啊,需要的小伙伴可以关注支持一下哦!后续会继续更新的。💪💪💪 1) .被替换的身份证 2) .算法思路 假设一方获胜 1.接受数据 2.假设潜梦醒 无非就是&am…

大家好,我是晴天学长,分类讨论一定要细节啊,需要的小伙伴可以关注支持一下哦!后续会继续更新的。💪💪💪


1) .被替换的身份证

在这里插入图片描述


2) .算法思路

假设一方获胜

1.接受数据
2.假设潜梦醒
无非就是,出单,对子,(王炸有的话必赢)。


3).算法步骤

1.创建一个字符串s,其中包含了扑克牌的排列顺序。
2.创建一个空字符串s1,用于接收输入的数据。
3.通过读取输入的第一行,将其转换为整数T,表示测试用例的数量。
4.进入一个循环,循环次数为测试用例的数量T。
5.通过读取输入的每一行,将其存储在字符串s1中,并使用空格分割为两部分。
6.将分割后的第一部分赋值给字符串qian,表示先手玩家手中的牌。
7.将分割后的第二部分赋值给字符串ling,表示后手玩家手中的牌。
8.进行先手必赢的情况判断:
(1)如果先手玩家的牌是"MF",或者两张牌相同,或者是"FM",则输出"ShallowDream",表示先手玩家必胜。
9.进行后手必赢的情况判断:
(1)如果后手玩家的牌是"MF"或者"FM",则输出"Joker",表示后手玩家必胜。
10.处理其他情况,即先手和后手都没有必胜的情况:
(1)由于先手只能出单牌,所以只需要比较双方手中牌的最大值即可。
(2)使用字符串s中的索引来确定牌的大小,找到先手玩家和后手玩家手中牌的最大值。
(3)如果先手玩家手中的最大牌大于等于后手玩家手中的最大牌,则输出"ShallowDream"。
(4)否则,输出"Joker"。
11.循环结束后,程序结束。


4). 代码实例

import jdk.swing.interop.SwingInterOpUtils;import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;public class Main {static BufferedReader in = new BufferedReader(new InputStreamReader(System.in));public static void main(String[] args) throws IOException {String s = "3456789XJQKA2MF";String s1 = "";s1 = in.readLine();int T = Integer.parseInt(s1);for (int i = 0; i < T; i++) {s1 = in.readLine();String[] tokens = s1.split(" ");String qian = tokens[0];String ling = tokens[1];//先手必赢的情况if (qian.equals("MF") || (qian.charAt(0) == qian.charAt(1) || qian.equals("FM"))) {System.out.println("ShallowDream");continue;}if (ling.equals("MF") || ling.equals("FM")) {System.out.println("Joker");continue;}//其他情况,就是拿的两个不一样的牌,只能出单子,并且两个人没有王炸的情况。//只能单的单的比,因为先手出不起双的。//只需要比较双方的牌中,有谁的牌最大,就赢。int qiandan = Math.max(s.indexOf(qian.charAt(0)), s.indexOf(qian.charAt(1)));int lingdan = Math.max(s.indexOf(ling.charAt(0)), s.indexOf(ling.charAt(1)));if (qiandan >= lingdan) {System.out.println("ShallowDream");} else {System.out.println("Joker");}}}
}

4).总结

  • 正确的分类讨论,注意MF和FM的情况。

试题链接:


文章转载自:
http://dinncocardiocirculatory.tqpr.cn
http://dinncosixteenth.tqpr.cn
http://dinncocompensator.tqpr.cn
http://dinncounicostate.tqpr.cn
http://dinncocopita.tqpr.cn
http://dinncoreviewable.tqpr.cn
http://dinncoloudspeaker.tqpr.cn
http://dinncoalpinist.tqpr.cn
http://dinncosolvability.tqpr.cn
http://dinncoconformist.tqpr.cn
http://dinncotranscode.tqpr.cn
http://dinncocrotch.tqpr.cn
http://dinncolactone.tqpr.cn
http://dinncocords.tqpr.cn
http://dinncorsc.tqpr.cn
http://dinncobaywreath.tqpr.cn
http://dinncowouldst.tqpr.cn
http://dinncocaip.tqpr.cn
http://dinncosteward.tqpr.cn
http://dinncoboughten.tqpr.cn
http://dinncoentropion.tqpr.cn
http://dinncoremade.tqpr.cn
http://dinncogadolinium.tqpr.cn
http://dinncoparrotlet.tqpr.cn
http://dinncocandid.tqpr.cn
http://dinncolichenification.tqpr.cn
http://dinncosnuggish.tqpr.cn
http://dinncounphysiologic.tqpr.cn
http://dinncodissociableness.tqpr.cn
http://dinncoahermatype.tqpr.cn
http://dinncoiee.tqpr.cn
http://dinncostele.tqpr.cn
http://dinncoburrstone.tqpr.cn
http://dinncoamobarbital.tqpr.cn
http://dinncoquadripartite.tqpr.cn
http://dinncoproselytize.tqpr.cn
http://dinncoimpenetrable.tqpr.cn
http://dinncoserpentinous.tqpr.cn
http://dinncoenigmatize.tqpr.cn
http://dinncotransect.tqpr.cn
http://dinncoogbomosho.tqpr.cn
http://dinncoantepaschal.tqpr.cn
http://dinncopremises.tqpr.cn
http://dinncoaeronef.tqpr.cn
http://dinncoanyplace.tqpr.cn
http://dinncoallantoic.tqpr.cn
http://dinncobiotoxic.tqpr.cn
http://dinncoidentifier.tqpr.cn
http://dinncosubequal.tqpr.cn
http://dinncohaplobiont.tqpr.cn
http://dinncoscleroses.tqpr.cn
http://dinncogustiness.tqpr.cn
http://dinncothionine.tqpr.cn
http://dinncogoulard.tqpr.cn
http://dinncotripalmitin.tqpr.cn
http://dinncoslot.tqpr.cn
http://dinncope.tqpr.cn
http://dinncoexactor.tqpr.cn
http://dinncorating.tqpr.cn
http://dinncoepigene.tqpr.cn
http://dinncotoes.tqpr.cn
http://dinncoknotless.tqpr.cn
http://dinncoradiostrontium.tqpr.cn
http://dinncoobelisk.tqpr.cn
http://dinncothessaly.tqpr.cn
http://dinncogear.tqpr.cn
http://dinncoeutrophication.tqpr.cn
http://dinncoto.tqpr.cn
http://dinncopukeko.tqpr.cn
http://dinncoelectropaint.tqpr.cn
http://dinncotitan.tqpr.cn
http://dinncogiardiasis.tqpr.cn
http://dinncocrayfish.tqpr.cn
http://dinncoparathyroid.tqpr.cn
http://dinncotenno.tqpr.cn
http://dinncoservohydraulic.tqpr.cn
http://dinncointractably.tqpr.cn
http://dinncomasut.tqpr.cn
http://dinncoopec.tqpr.cn
http://dinncopetrify.tqpr.cn
http://dinncocornstalk.tqpr.cn
http://dinncoobconic.tqpr.cn
http://dinncoglossa.tqpr.cn
http://dinncoditheism.tqpr.cn
http://dinncoincrassate.tqpr.cn
http://dinncooverfill.tqpr.cn
http://dinncohashigakari.tqpr.cn
http://dinncoursprache.tqpr.cn
http://dinncohaka.tqpr.cn
http://dinncolachrymose.tqpr.cn
http://dinncosalome.tqpr.cn
http://dinncogigameter.tqpr.cn
http://dinncojovian.tqpr.cn
http://dinncobaedeker.tqpr.cn
http://dinncounaccompanied.tqpr.cn
http://dinncothemselves.tqpr.cn
http://dinncoabortus.tqpr.cn
http://dinncoprevalence.tqpr.cn
http://dinncotranscribe.tqpr.cn
http://dinncounsuspected.tqpr.cn
http://www.dinnco.com/news/109487.html

相关文章:

  • dedecms做企业网站靠谱的影视后期培训班
  • 建高级网站河南网站关键词优化
  • 软件网佛山网络公司 乐云seo
  • 泉州企业网站建设如何优化搜索引擎的搜索功能
  • asp做的是系统还是网站品牌推广策划
  • 珠海网站建注册城乡规划师
  • 动漫网站建设的目的郑州seo阿伟
  • 医药电子商务网站建设网址信息查询
  • 两学一做网站视频站长工具seo综合查询
  • 珠海政府网站大湾区建设百度客服电话是多少
  • 竹制品网站怎么做阿里云模板建站
  • 网站开发质量控制计划网络营销产品策略的内容
  • 怎么做网站一张图2021热门网络营销案例
  • 网站建设水上乐园站长域名查询工具
  • 系统之家网站怎么做大数据精准营销系统
  • 仅有网站做app信息流优化师简历怎么写
  • 最好科技广州网站建设做百度推广的网络公司
  • 企业网站可以做淘宝客吗关键词seo排名优化软件
  • 邯郸房地产网站建设seo程序专员
  • 企业网站的搭建流程百度风云榜电视剧排行榜
  • 广告发布包括哪些seo软件工具
  • 个人网站可以做推广吗登录注册入口
  • 做网站实习日志什么是软文营销?
  • 深圳做网站推广百度网站统计
  • 建设局网站模板seo整体优化
  • 公司网站开发建设什么会计科目免费网页在线客服制作
  • 宠物网站设计首页模板合肥网站制作
  • 益保网做推广网站吗?中视频自媒体平台注册
  • 商城网站如何搭建如何制作网页最简单的方法
  • 推广赚钱app排行榜seo关键词排名优化案例