![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
打表&规律
lonely_wind_
路漫漫兮
展开
-
CSUSTOJ 4004-你真的会吃零食吗?(打表)
题目链接:http://acm.csust.edu.cn/problem/4004博客园食用链接:Description有n个人分一堆零食,第一个人扔掉一包零食后刚好能均分成n等份,然后他取走了自己的一份;第二个人再第一个人剩下零食的基础上做相同的操作,扔掉一包然后分成n等份;后面的人也这样做。问最少有多少个零食可以支持n个人这样分配。Input输入一行一个整数n.2≤n≤92\le n\le 92≤n≤9Output一行一个整数表示答案。Sample Input 12Sample原创 2020-08-11 23:22:26 · 952 阅读 · 3 评论 -
2020杭电HDU-6831多校第六场Fragrant numbers(区间DP打表)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6831博客园食用链接:https://www.cnblogs.com/lonely-wind-/p/13461891.htmlProblem DescriptionMany people love numbers, and some have a penchant for specific numbers. Nowadays in popular culture, 114514191911451419191原创 2020-08-09 10:44:55 · 429 阅读 · 0 评论 -
2020杭电HDU-6827多校第六场Road To The 3rd Building(找规律求期望)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6827博客园食用链接:Problem DescriptionBecause of the thriller adventure game The 3rd Building, there are fewer and fewer students who would like to go to the 3rd Building. So few students are working in the studio原创 2020-08-08 10:52:12 · 606 阅读 · 1 评论 -
CodeForces 950D-A Leapfrog in the Array(打表找规律)
题目链接:https://codeforces.com/problemset/problem/950/D博客园食用链接:https://www.cnblogs.com/lonely-wind-/p/13454001.htmlDima is a beginner programmer. During his working process, he regularly has to repeat the following operation again and again: to remove every原创 2020-08-07 17:10:58 · 310 阅读 · 0 评论