打表&规律
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≤9 Output 一行一个整数表示答案。 Sample Input 1 2 Sample原创 2020-08-11 23:22:26 · 983 阅读 · 3 评论 -
2020杭电HDU-6831多校第六场Fragrant numbers(区间DP打表)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6831 博客园食用链接:https://www.cnblogs.com/lonely-wind-/p/13461891.html Problem Description Many people love numbers, and some have a penchant for specific numbers. Nowadays in popular culture, 114514191911451419191原创 2020-08-09 10:44:55 · 451 阅读 · 0 评论 -
2020杭电HDU-6827多校第六场Road To The 3rd Building(找规律求期望)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6827 博客园食用链接: Problem Description Because 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 · 639 阅读 · 1 评论 -
CodeForces 950D-A Leapfrog in the Array(打表找规律)
题目链接:https://codeforces.com/problemset/problem/950/D 博客园食用链接:https://www.cnblogs.com/lonely-wind-/p/13454001.html Dima 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 · 354 阅读 · 0 评论