
规律
文章平均质量分 58
Nelaris
这个作者很懒,什么都没留下…
展开
-
CodeChef - MINSTR Minimize the string (规律题)
You are given n strings s1, s2, ..., sn. Each of these strings consists only of letters 'a' and 'b', and the length of each string can be at most 2. In other words, the only allowed strings are "a", "...原创 2018-04-16 19:34:14 · 603 阅读 · 0 评论 -
2018 Multi-University Training Contest 1 Maximum Multiple (HDU 6298)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6298 题意分析: 求xyz在满足x+y+z=n并且x|n,y|n,z|n的情况下的最大值; 设t=n/x,s=n/y,r=n/z 所以x=n/t,y=n/s,z=n/r 代入 x+y+z=n 中 同除n化简得 1/t+1/s+1/r=1并且t,s,r都为整数 该不定方程的整数解只有如下三...原创 2018-08-06 21:28:02 · 219 阅读 · 0 评论