F(x)
Time Limit: 1000/500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 750 Accepted Submission(s): 286
For each test case, there are two numbers A and B (0 <= A,B < 109)
1 10
5 100
Case #2: 2
Case #3: 13
#include <iostream>
#include <cstdio> #include <cstring> using namespace std; typedef long long int LL; LL dp[12][111111]; int dfs(int pos,int sum,bool limit) int getsum(int x) LL colu(int x,int y) int main() |
* This source code was highlighted by YcdoiT. ( style: Codeblocks )