Problem 49. Sums with Excluded Digits
Solution Stats
Problem Comments
-
1 Comment
simple but fun :)
Solution Comments
-
2 Comments
answer to the first test case should be 205
and for third test case should be 558
as question given as summing all digits except the digit mention as 'm'
the problem means to exclude all numbers with the digit 'm'
so example n=20, m=5, you exclude numbers 5 and 15 as these contains the digit m=5.
-
1 Comment
j'en ai chié
-
1 Comment
I wonder how could this kinda solution pass the test?!
-
1 Comment
Very ingeneous solution. Congratulations!
-
2 Comments
I will improve this code !
wrong answer,need to use setdiff
Problem Recent Solvers1799
Suggested Problems
-
Which values occur exactly three times?
4569 Solvers
-
2871 Solvers
-
Convert a vector into a number
576 Solvers
-
Area of an equilateral triangle
4847 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
434 Solvers
More from this Author96
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!