Roundgod is obsessive about numbers. Let S(x)S(x)S(x) be the sum of the digits of xxx in decimal notation, (A,B)(A,B)(A,B) is a harmony pair if and only if S(A)>S(B)S(A)>S(B)S(A)>S(B). Roundgod is given NNN, and she wants to count the number of harmony pairs (A,B)(A,B)(A,B) modulo 109+710^9+7109+7 satisfying 0≤A≤B≤N0le Ale Ble N0≤A≤B≤N.
成为编程大师,不再是梦想!全网最全C++题库,助您开启编程新篇章。标签: ACM蓝桥杯竞赛入门