![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
冬令营
文章平均质量分 52
亭子wait
do everything I like
展开
-
F - Simple Addition UVA - 10994
Lets define a simple recursive function F(n), where F(n) = p(x) = n%10, if (n%10) > 0 0, if n = 0 F(n/10), Otherwise Lets define another function S(p, q), S(p, q) = ∑q i=p F(i) In this problem you have to Calculate S(p, q) on given value of p and原创 2021-01-19 13:44:33 · 206 阅读 · 0 评论 -
A - Specialized Four-Digit Numbers
Find and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digits when represented in hexadecimal (base 16) notation and also equals the sum of its digits when represented in duodec原创 2021-01-18 13:13:16 · 261 阅读 · 0 评论