上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: 题目大意: 有一个土拨鼠在节点1,一个橘子在节点n,在t时刻之前土拨鼠向着n走,橘子不动,从t时刻开始,橘子开始抓土拨鼠,土拨鼠开始跑,土拨鼠 1m/s 橘子 2m/s,问还有多长时间橘子才能抓到土拨鼠。 题解: 首先要求的 t 时刻土拨鼠的位置,然后土拨鼠需要逃跑,所以得与 n 点背向而跑,这时候 阅读全文
posted @ 2020-08-09 19:01 Mr__wei 阅读(232) 评论(2) 推荐(0) 编辑
摘要: 题目大意: 有一个土拨鼠在节点1,一个橘子在节点n,在t时刻之前土拨鼠向着n走,橘子不动,从t时刻开始,橘子开始抓土拨鼠,土拨鼠开始跑,土拨鼠 1m/s 橘子 2m/s,问还有多长时间橘子才能抓到土拨鼠。 题解: 首先要求的 t 时刻土拨鼠的位置,然后... 阅读全文
posted @ 2020-08-09 19:01 Mr__wei 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Today, ZLZX has a mysterious case: Orange lost his down jacket hanging in his dorm room. Under the expectations of everyon... 阅读全文
posted @ 2020-08-09 15:44 Mr__wei 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Today, ZLZX has a mysterious case: Orange lost his down jacket hanging in his dorm room. Under the expectations of everyone, detective Groundhog 阅读全文
posted @ 2020-08-09 15:44 Mr__wei 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 题解: 当时最初我想的是俩个for循环,每个点都跑一次dijstra,答案当然超时 看了题解后发现忽略了第 i 条边的长度是 2^i 这个重要信息提示, 这个的意思是u -> v 只要能通过前 i-1 条边到达,就绝对不会走第 i 条边,因为(2^1 + 2^2 + ... + 2^(i-1) < 阅读全文
posted @ 2020-08-07 18:57 Mr__wei 阅读(194) 评论(0) 推荐(1) 编辑
摘要: 题解: 当时最初我想的是俩个for循环,每个点都跑一次dijstra,答案当然超时 看了题解后发现忽略了第 i 条边的长度是 2^i 这个重要信息提示, 这个的意思是u -> v 只要能通过前 i-1 条边到达,就绝对不会走第 i 条边,因为... 阅读全文
posted @ 2020-08-07 18:57 Mr__wei 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 题意:输入n种牌以及牌的属性,任意选3张,这3张满足4种属性,要么全相同,要么全不同,“*”是万能牌,可以变成你想要的任意的牌,输出3张拍的序号。 题解:暴力枚举 更新一种更简洁明了的代码 1 //暴力 2 #include 3 #inclu... 阅读全文
posted @ 2020-08-05 13:28 Mr__wei 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 题意:输入n种牌以及牌的属性,任意选3张,这3张满足4种属性,要么全相同,要么全不同,“*”是万能牌,可以变成你想要的任意的牌,输出3张拍的序号。 题解:暴力枚举 更新一种更简洁明了的代码 1 //暴力 2 #include<iostream> 3 #include<cstring> 4 #incl 阅读全文
posted @ 2020-08-05 13:28 Mr__wei 阅读(257) 评论(0) 推荐(0) 编辑
摘要: Apollo is playing an interesting computer game. There are N rounds in the game. At each round, the computer will give Apollo two integers (aia_iai​ an 阅读全文
posted @ 2020-08-04 18:29 Mr__wei 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Apollo is playing an interesting computer game. There are N rounds in the game. At each round, the computer will give A... 阅读全文
posted @ 2020-08-04 18:29 Mr__wei 阅读(26) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页