数位dp
数位dp
DeepGoAI
欢迎学习交流!
展开
-
F(x) HDU - 4734
F(x) HDU - 4734 For a decimal number x with n digits (A nA n-1A n-2 ... A 2A 1), we define its weight as F(x) = A n * 2 n-1 + A n-1 * 2 n-2 + ... + A 2 * 2 + A 1 * 1. Now you are given two numbers...翻译 2019-02-05 21:53:19 · 240 阅读 · 0 评论 -
Round Numbers POJ - 3252
Round Numbers POJ - 3252 The cows, as you know, have no fingers or thumbs and thus are unable to play Scissors, Paper, Stone' (also known as 'Rock, Paper, Scissors', 'Ro, Sham, Bo', and a host of ...翻译 2019-02-06 13:28:53 · 296 阅读 · 0 评论 -
吉哥系列故事——恨7不成妻 HDU - 4507
吉哥系列故事——恨7不成妻 HDU - 4507 单身! 依然单身! 吉哥依然单身! DS级码农吉哥依然单身! 所以,他生平最恨情人节,不管是214还是77,他都讨厌! 吉哥观察了214和77这两个数,发现: 2+1+4=7 7+7=7*2 77=7*11 最终,他发现原来这一切归根到底都是因为和7有关!所以,他现在甚...原创 2019-02-08 10:52:08 · 301 阅读 · 0 评论 -
B - Segment Sum CodeForces - 1073E
B - Segment Sum CodeForces - 1073E You are given two integers ll and rr (l≤rl≤r). Your task is to calculate the sum of numbers from ll to rr (including ll and rr) such that each number contains at...翻译 2019-02-08 17:46:26 · 274 阅读 · 0 评论