随笔分类 -  小技巧---打表&推公式

摘要:题目链接:https://ac.nowcoder.com/acm/contest/6885/C CSDN食用链接:https://blog.csdn.net/qq_43906000/article/details/108019486 题目描述 牛牛和牛妹玩博弈游戏。 牛牛:我们来玩取石子游戏。一共有 阅读全文
posted @ 2020-08-15 11:05 lonely_wind 阅读(259) 评论(0) 推荐(0)
摘要:题目链接:http://acm.csust.edu.cn/problem/4004 CSDN食用链接:https://blog.csdn.net/qq_43906000/article/details/107946981 Description 有n个人分一堆零食,第一个人扔掉一包零食后刚好能均分成 阅读全文
posted @ 2020-08-11 23:24 lonely_wind 阅读(151) 评论(0) 推荐(0)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6831 CSDN食用链接:https://blog.csdn.net/qq_43906000/article/details/107890254 Problem Description Many peop 阅读全文
posted @ 2020-08-09 10:44 lonely_wind 阅读(334) 评论(0) 推荐(0)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6827 CSDN食用链接:https://blog.csdn.net/qq_43906000/article/details/107875712 Problem Description Because o 阅读全文
posted @ 2020-08-08 10:51 lonely_wind 阅读(204) 评论(0) 推荐(0)
摘要:题目链接:https://codeforces.com/problemset/problem/950/D CSDN食用链接:https://blog.csdn.net/qq_43906000/article/details/107865886 Dima is a beginner programme 阅读全文
posted @ 2020-08-07 17:10 lonely_wind 阅读(189) 评论(0) 推荐(0)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6754 Problem Description S is a string of length n. S consists of lowercase English alphabets. Your tas 阅读全文
posted @ 2020-07-21 21:53 lonely_wind 阅读(504) 评论(0) 推荐(2)
摘要:题目大意:给你一个数列,从$a_1->a_n$,你需要找到两个匹配序列$p,q$其中$p_i\neq q_i$,使得$(\sum_{i=1}^{n}abs(a_i-a_{p_i}))/2+(\sum_{i=1}^{n}abs(a_i-a_{q_i}))/2$最小,问这个最小值是多少。n保证为偶数,s 阅读全文
posted @ 2020-07-20 23:17 lonely_wind 阅读(258) 评论(0) 推荐(0)
摘要:emmm,验完题之后觉得你们应该能够出个两三题,这场总得来说也没有什么很难的题,结果各位还真就两题签到题啊。。。我以为DP的那题应该可以过挺多人的,结果交都没人交。。。 比赛链接:http://acm.csust.edu.cn/contest/77 比赛结束后无法提交,请到problem中提交 题目 阅读全文
posted @ 2020-03-21 21:39 lonely_wind 阅读(246) 评论(0) 推荐(1)
摘要:Time Limit: 1 Sec Memory Limit: 162 MB洛谷:时间限制1.00s 内存限制125.00MB 题目链接:https://www.lydsy.com/JudgeOnline/problem.php?id=1008 洛谷:https://www.luogu.com.cn 阅读全文
posted @ 2020-01-14 14:09 lonely_wind 阅读(165) 评论(0) 推荐(0)
摘要:题目链接:http://acm.csust.edu.cn/problem/3027 Description 今年光棍不11 单身的Pc最讨厌的就是11月11日就是 我们所说的光棍节. 他不想看到所有 '11' 的存在,如果存在,pc就会很伤心 有天小学弟给了Pc 一个长度n的01串,小学弟并不想让P 阅读全文
posted @ 2019-12-15 18:06 lonely_wind 阅读(209) 评论(0) 推荐(0)
摘要:题目链接:http://acm.csust.edu.cn/problem/3033 Description 定义,即1到i的j次方的异或和 求的值 Input 一行三个整数k,x,y 1≤k≤1e5 1≤x≤y≤1e9 Output 一个整数,表示答案 Sample Input 1 1 2 7 Sa 阅读全文
posted @ 2019-12-15 18:03 lonely_wind 阅读(362) 评论(0) 推荐(0)