摘要: https://vjudge.net/contest/386568#problem/K Zhang3 a participant of IPhO (Immortal Physics Olympiad). The 0th0th problem in the contest is as follows. 阅读全文
posted @ 2020-08-03 21:28 YukiRinLL 阅读(101) 评论(0) 推荐(0)
摘要: https://vjudge.net/contest/386568#problem/E Sometimes, changing the order of the words in a sentence doesn't influence understanding. For example, if 阅读全文
posted @ 2020-08-03 21:25 YukiRinLL 阅读(120) 评论(0) 推荐(0)
摘要: https://vjudge.net/contest/386568#problem/D It is Zhang3's birthday! Zhang3 has bought a birthday cake and now it's time to take it home.There are nn  阅读全文
posted @ 2020-08-03 21:17 YukiRinLL 阅读(83) 评论(0) 推荐(0)
摘要: https://vjudge.net/contest/386568#problem/B Zhang3 is playing a shooting game with Father. In the game there are two players trying to kill each other 阅读全文
posted @ 2020-08-03 21:11 YukiRinLL 阅读(104) 评论(0) 推荐(0)
摘要: https://vjudge.net/contest/386223#problem/I Given a string PP consisting of only parentheses and asterisk characters (i.e. "(", ")" and "*"), you are 阅读全文
posted @ 2020-08-01 22:42 YukiRinLL 阅读(189) 评论(0) 推荐(0)
摘要: https://vjudge.net/contest/386223#problem/E There are nn members in our ACM club. Little W wants to select three persons from our club to form a new t 阅读全文
posted @ 2020-08-01 22:40 YukiRinLL 阅读(101) 评论(0) 推荐(0)
摘要: https://vjudge.net/contest/386223#problem/D Tokitsukaze has a sequence of length nn, denoted by aa.Tokitsukaze can merge two consecutive elements of a 阅读全文
posted @ 2020-08-01 22:31 YukiRinLL 阅读(117) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=6772 题意: n件物品,每种物品有一个种类ti四个属性 ai , bi , ci , di每个种类最多选一件物品,求 四个属性分别求和 再与100相加 最后 乘积 思路: DFS 种类i物品数量不超过50 跳过没 阅读全文
posted @ 2020-07-28 01:19 YukiRinLL 阅读(68) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=6768 题意: 一个正整数 表示为 斐波那契数列数列。 存在当前第i个斐波那契数 bi 为1,否则为0。 给三个斐波那契数列表示A B C,问A * B与C修改哪一位之后 的b值相等。 思路: 哈希 求模 再得差值 阅读全文
posted @ 2020-07-28 00:54 YukiRinLL 阅读(101) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=6759 题意:给定一些车的初始位置和加速度(初速度为0 问某一时刻的领先车有多少种情况 分析: 初始位置最大的一定会在一开始领先 初始位置小的(或相同)且 加速度小的 没有机会成为领先 思路: 机器人先按加速度 a 阅读全文
posted @ 2020-07-25 20:56 YukiRinLL 阅读(131) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=6754 题意: 字符串由小写字母构成 求 长度为N的 回文子串数量最少的 字符串的个数 思路: 长度为1的串 回文子串最少1个 形式:a 长度为2的串 回文子串最少2个 形式:aa / ab 长度为3的串 回文子串 阅读全文
posted @ 2020-07-25 13:52 YukiRinLL 阅读(110) 评论(0) 推荐(0)
摘要: https://nanti.jisuanke.com/t/43375 简单的二进制变换 可以理解为当前二进制数 自增1 到2^(n-1)需要的操作数 注意输出格式 代码 #include<iostream> #include<cstdio> #include<cstring> #include<al 阅读全文
posted @ 2020-03-08 17:25 YukiRinLL 阅读(128) 评论(0) 推荐(0)
摘要: https://nanti.jisuanke.com/t/43374 题意 判断像素矩阵中像素围成的封闭区域的个数 思路 对于每一个像素,检查周围是否有像素形成相连 从当前下一个未标记的像素开始进行搜索,搜索结果作为下一个节点进行搜索,在搜索的同时进行染色 遇到已经染色的像素,判断为一个封闭空间 代 阅读全文
posted @ 2020-03-08 17:20 YukiRinLL 阅读(137) 评论(0) 推荐(0)
摘要: https://nanti.jisuanke.com/t/43390 题意 几何中心重合的 圆 和 正方形 给定正四边形边长 a 和 圆的半径 r,求重合面积 简单计算几何问题 思路 分块计算 注意精度和舍入问题 代码 #include<iostream> #include<cstdio> #inc 阅读全文
posted @ 2020-03-08 17:12 YukiRinLL 阅读(139) 评论(0) 推荐(0)
摘要: https://nanti.jisuanke.com/t/43388 题意 一共有 m 个队伍(无用数据), n 块蛋糕,对蛋糕进行 t 次操作 每次操作:给定当前队伍的人数 num ,对当前蛋糕数量 n 进行需求: 如果 n>num,num-=n; 否则,把所有的蛋糕切成两半(即n*=2)之后,再 阅读全文
posted @ 2020-03-08 17:04 YukiRinLL 阅读(113) 评论(0) 推荐(0)
摘要: https://nanti.jisuanke.com/t/43387 题意 奥运会,分别给出RU和US两国的 金牌 银牌 铜牌 数目 优先度 金牌>银牌>铜牌,其中一种相同则比较下一种,多的一方在color上获胜 总的奖牌数多的一方在count上获胜 判断US能在哪种方式上获胜 水题 代码 #inc 阅读全文
posted @ 2020-03-08 16:54 YukiRinLL 阅读(144) 评论(0) 推荐(0)
摘要: Find the Twins 阅读全文
posted @ 2020-03-08 16:45 YukiRinLL 阅读(104) 评论(0) 推荐(0)
摘要: 2020 CDUT寒假集训第一场(思维+dp专场)H 阅读全文
posted @ 2020-02-16 16:33 YukiRinLL 阅读(110) 评论(0) 推荐(0)
摘要: 2020 CDUT寒假集训第一场(思维+dp专场)G 阅读全文
posted @ 2020-02-16 16:24 YukiRinLL 阅读(70) 评论(0) 推荐(0)
摘要: 2020 CDUT寒假集训第一场(思维+dp专场)B 阅读全文
posted @ 2020-02-16 16:13 YukiRinLL 阅读(132) 评论(0) 推荐(0)
摘要: 2020 CDUT寒假集训第一场(思维+dp专场)A 阅读全文
posted @ 2020-02-16 15:43 YukiRinLL 阅读(133) 评论(0) 推荐(0)
摘要: 一个计算迟到早退违纪扣分的东西 题意简单明了 情况有点多,分各种情况讨论,有点麻烦但是难度不大 一次性写的所以代码很乱,就当留给自己看吧 上代码: #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #i 阅读全文
posted @ 2019-11-29 10:27 YukiRinLL 阅读(145) 评论(0) 推荐(0)
摘要: http://codeforces.com/gym/101775/problem/M The 2018 World Cup will be hosted in Russia. 32 national teams will be divided into 8 groups. Each group co 阅读全文
posted @ 2019-11-29 10:26 YukiRinLL 阅读(189) 评论(0) 推荐(0)
摘要: https://vjudge.net/contest/332199#problem/J 水题,直接上代码 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<bitset> #inclu 阅读全文
posted @ 2019-11-29 10:26 YukiRinLL 阅读(115) 评论(0) 推荐(0)
摘要: http://codeforces.com/contest/1260/problem/A A. Heating time limit per test 1 second memory limit per test 256 megabytes input standard input output s 阅读全文
posted @ 2019-11-28 10:56 YukiRinLL 阅读(270) 评论(0) 推荐(0)
摘要: http://codeforces.com/contest/1260/problem/B B. Obtain Two Zeroes time limit per test 1 second memory limit per test 256 megabytes input standard inpu 阅读全文
posted @ 2019-11-28 10:45 YukiRinLL 阅读(161) 评论(0) 推荐(0)
摘要: https://vjudge.net/contest/314399#problem/B Anton has a positive integer nn, however, it quite looks like a mess, so he wants to make it beautiful aft 阅读全文
posted @ 2019-08-05 10:53 YukiRinLL 阅读(223) 评论(0) 推荐(0)
摘要: https://vjudge.net/contest/310812#problem/F 给定一棵n 个点的树,每个点有权值。两个人玩游戏,先手需要占领若干不相邻的点,然后后手占领剩下所有点。每个人的得分为占领的点权异或和,分高的获胜。问最优策略下游戏的结果。1 ≤ n ≤ 105。Shortest 阅读全文
posted @ 2019-08-05 10:39 YukiRinLL 阅读(130) 评论(0) 推荐(0)
摘要: https://vjudge.net/contest/314399#problem/E Edward is a worker for Aluminum Cyclic Machinery. His work is operating mechanical arms to cut out designe 阅读全文
posted @ 2019-08-05 10:29 YukiRinLL 阅读(143) 评论(0) 推荐(0)
摘要: https://vjudge.net/contest/313233#problem/L Sample Input Sample Output 阅读全文
posted @ 2019-08-05 10:19 YukiRinLL 阅读(110) 评论(0) 推荐(0)
摘要: Sample Input Sample Output 阅读全文
posted @ 2019-08-05 10:06 YukiRinLL 阅读(282) 评论(0) 推荐(0)
摘要: https://vjudge.net/contest/313233#problem/D Input The first line of the input contains an integer TT (1≤T≤100)(1≤T≤100) denoting the number of test ca 阅读全文
posted @ 2019-08-05 09:50 YukiRinLL 阅读(138) 评论(0) 推荐(0)
摘要: 链接:https://ac.nowcoder.com/acm/contest/997/K 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32768K,其他语言65536K 64bit IO Format: %lld 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 3 阅读全文
posted @ 2019-07-31 11:27 YukiRinLL 阅读(139) 评论(0) 推荐(0)
摘要: 链接:https://ac.nowcoder.com/acm/contest/1069/H时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32768K,其他语言65536K 64bit IO Format: %lld 空间限制:C/C++ 32768K,其他语言65536K 64bi 阅读全文
posted @ 2019-07-31 11:06 YukiRinLL 阅读(154) 评论(0) 推荐(0)
摘要: 链接:https://ac.nowcoder.com/acm/contest/1069/D 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32768K,其他语言65536K 64bit IO Format: %lld 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 阅读全文
posted @ 2019-07-31 10:50 YukiRinLL 阅读(153) 评论(0) 推荐(0)
摘要: 简单的DIY____博客页面客制化 阅读全文
posted @ 2019-07-24 11:47 YukiRinLL 阅读(538) 评论(1) 推荐(0)
摘要: https://vjudge.net/contest/312835#problem Bamboo Pole-vault is a massively popular sport in Xzhiland. And Master Phi-shoe is a very popular coach for 阅读全文
posted @ 2019-07-23 10:37 YukiRinLL 阅读(146) 评论(0) 推荐(0)
摘要: 题目:Problem - 6124 http://acm.hdu.edu.cn/showproblem.php?pid=6124 Euler theorem Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (J 阅读全文
posted @ 2019-07-22 13:50 YukiRinLL 阅读(146) 评论(0) 推荐(0)
摘要: https://vjudge.net/problem/HDU-6043 KazaQ wears socks everyday. At the beginning, he has nn pairs of socks numbered from 11 to nn in his closets. Ever 阅读全文
posted @ 2019-07-22 13:46 YukiRinLL 阅读(123) 评论(0) 推荐(0)
摘要: Add More ZeroTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 663 Accepted Submission(s): 463 Pr 阅读全文
posted @ 2019-07-22 13:39 YukiRinLL 阅读(153) 评论(0) 推荐(0)