Balanced Number
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)
Total Submission(s): 1337 Accepted Submission(s): 583
to calculate the number of balanced numbers in a given range [x, y].
0 9
7604 24324
897
#include <iostream>
#include <cstdio> #include <cstring> using namespace std; typedef long long int LL; LL x,y,dp[20][20][2000]; LL dfs(int pos,int o,int sum,int limit) LL calu(LL x) int main() |
* This source code was highlighted by YcdoiT. ( style: Codeblocks )