题意

给三个数 N, A and B.(1<=N<=1000000000, 1<=A,B<=100000). 求 Σ| n%A - n%B | (n=0至N-1)

Read More

发现此题资料甚少,斗胆第一次写一份解题报告

题意

输入 n(代表二进制位数) k(代表黑条白条总共有几条,条形码是以黑条开始的,再白黑交替出现) m(代表每条最多占多少个二进制位)
输出这种模式的条形码的有多少个?

Read More

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Read More