摘要: https://vjudge.net/problem/ZOJ-4104/origin https://vjudge.net/contest/395635#problem/E DreamGrid has just found an integer sequence a_1, a_2, \dots, a 阅读全文
posted @ 2020-10-14 10:36 YukiRinLL 阅读(110) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/problem/ZOJ-4107/origin https://vjudge.net/contest/395635#problem/H Baobao loves singing very much and he really enjoys a game call 阅读全文
posted @ 2020-10-14 10:32 YukiRinLL 阅读(126) 评论(0) 推荐(1) 编辑
摘要: https://vjudge.net/problem/ZOJ-4033/origin https://vjudge.net/contest/399385#problem/J DreamGrid has $n$ classmates numbered from $1$ to $n$. Some of 阅读全文
posted @ 2020-10-14 10:28 YukiRinLL 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-10-14 10:26 YukiRinLL 阅读(151) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/problem/ZOJ-4025/origin https://vjudge.net/contest/399385#problem/B It's Karaoke time! DreamGrid is performing the song Powder Snow 阅读全文
posted @ 2020-10-14 10:21 YukiRinLL 阅读(111) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/contests/contest_showproblem.php?pid=1010&cid=909 Reports Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K ( 阅读全文
posted @ 2020-09-23 14:44 YukiRinLL 阅读(64) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/contests/contest_showproblem.php?pid=1007&cid=909 CCPC Training Class Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 26214 阅读全文
posted @ 2020-09-23 14:40 YukiRinLL 阅读(123) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/contests/contest_showproblem.php?pid=1003&cid=909 Express Mail Taking Time Limit: 3000/1500 MS (Java/Others) Memory Limit: 52428 阅读全文
posted @ 2020-09-23 14:36 YukiRinLL 阅读(91) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/394066#problem/C 代码: #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <bitset> #inclu 阅读全文
posted @ 2020-09-19 12:31 YukiRinLL 阅读(70) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/394066#problem/B https://vjudge.net/problem/Gym-102082B/origin 数据量大不能用数组查 用了二分,在test57的地方OT了,应该是算法有问题(待补题 附未通过代码: #include 阅读全文
posted @ 2020-09-19 12:30 YukiRinLL 阅读(78) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/394066#problem/A #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <bitset> #include < 阅读全文
posted @ 2020-09-19 12:25 YukiRinLL 阅读(73) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/393971#overview http://poj.org/problem?id=2431 A group of cows grabbed a truck and ventured on an expedition deep into the 阅读全文
posted @ 2020-09-19 12:24 YukiRinLL 阅读(126) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/problem/CodeForces-474B/origin It is lunch time for Mole. His friend, Marmot, prepared him a nice game for lunch. Marmot brought Mo 阅读全文
posted @ 2020-09-19 12:19 YukiRinLL 阅读(158) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/393532#overview https://vjudge.net/problem/CodeForces-791A/origin Bear Limak wants to become the largest of bears, or at le 阅读全文
posted @ 2020-09-19 12:15 YukiRinLL 阅读(138) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=6880 根据长度为n的排列a,构造长度n-1的序列b 思路:DP 官方题解: 代码: #include<iostream> #include<cstdio> #include<cstring> #include<a 阅读全文
posted @ 2020-08-25 22:06 YukiRinLL 阅读(86) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/problem/HDU-6879 题意: 给定S,r,c 构造一个r行c列的阵列。 对于没有炸弹的位置的数值为位置附近8个位置炸弹总数 保证炸弹总数S 代码: #include<iostream> #include<cstdio> #include<cstrin 阅读全文
posted @ 2020-08-25 21:47 YukiRinLL 阅读(87) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=6867 You are given a tree consisting of [Math Processing Error]n vertices numbered [Math Processing Error]1  阅读全文
posted @ 2020-08-22 01:06 YukiRinLL 阅读(122) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/389195#problem/C It is preferrable to read the pdf statment.After some basic geometric lessons, Cuber QQ has learned that o 阅读全文
posted @ 2020-08-17 21:56 YukiRinLL 阅读(149) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/389195#problem/F It is preferrable to read the pdf statment.Cuber QQ has signed up for a gambling game, that challenges him 阅读全文
posted @ 2020-08-17 21:51 YukiRinLL 阅读(83) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/388843#problem/I Notice:Don't output extra spaces at the end of one line.Given n,x,yn,x,y, please construct a permutation o 阅读全文
posted @ 2020-08-16 14:43 YukiRinLL 阅读(131) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/388843#problem/G Notice:Don't output extra spaces at the end of one line.Dodo bird and ddd are playing a stone game on a 2- 阅读全文
posted @ 2020-08-16 14:35 YukiRinLL 阅读(140) 评论(0) 推荐(0) 编辑
摘要: An undirected connected graph has $n$ nodes and $m$ edges, The $i$-th edge’s length is $2^i$. Each node $i$ has a value $a_i$, which is either $0$ or 阅读全文
posted @ 2020-08-11 16:25 YukiRinLL 阅读(126) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/387998#problem/I 题意: 判断证明:任意进制数y,如果y%x = 0,那么 (y所有位数之和)%x = 0 思路: 思维题 可以通过观察证明 参考证明方法:https://blog.csdn.net/m0_46209312/art 阅读全文
posted @ 2020-08-11 16:13 YukiRinLL 阅读(99) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/387998#problem/B Little Rabbit is interested in radix. In a positional numeral system, the radix is the number of unique di 阅读全文
posted @ 2020-08-11 16:00 YukiRinLL 阅读(211) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/387998#problem/A Because of the thriller adventure game The 3rd Building, there are fewer and fewer students who would like 阅读全文
posted @ 2020-08-11 15:51 YukiRinLL 阅读(86) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/387654#problem/I 算数学期望 对折和切刀都会使数量翻倍 横着切刀和上下对着效果相同,竖着切刀和左右对折效果相同 #include<iostream> #include<cstdio> #include<cstring> #incl 阅读全文
posted @ 2020-08-08 21:10 YukiRinLL 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/qq_45458915/article/details/107804348 模拟题 给出 n 张叠在一起的纸,现在将其连续从左向右折叠 k 次,再从上到下标上序号,问展开后的序号是怎么样的 可以把展开看作一条纸带对折多次后形成的样子。 未通过,写完还 阅读全文
posted @ 2020-08-08 21:04 YukiRinLL 阅读(83) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/387654#problem/A 参考:https://blog.csdn.net/xiaotutuyahttp_/article/details/107822150 算数学期望,直角四面体的公式 #include<iostream> #incl 阅读全文
posted @ 2020-08-08 20:57 YukiRinLL 阅读(46) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/386568#problem/G Zhang3 is the class leader. Recently she's implementing a policy about long-distance running. This forces 阅读全文
posted @ 2020-08-03 21:35 YukiRinLL 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(93) 评论(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 阅读(113) 评论(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 阅读(77) 评论(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 阅读(98) 评论(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 阅读(147) 评论(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 阅读(98) 评论(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 阅读(113) 评论(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 阅读(56) 评论(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 阅读(90) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=6759 题意:给定一些车的初始位置和加速度(初速度为0 问某一时刻的领先车有多少种情况 分析: 初始位置最大的一定会在一开始领先 初始位置小的(或相同)且 加速度小的 没有机会成为领先 思路: 机器人先按加速度 a 阅读全文
posted @ 2020-07-25 20:56 YukiRinLL 阅读(125) 评论(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 阅读(106) 评论(0) 推荐(0) 编辑