- Imagine you are in 3012 Anno Domini, when everyone must learn how to multiply,
- and competing for the highly prestigious post of,
- Chief Comptroller of Ylpitlum Corporation.
- You are being tested via MATLAB Cody for multiplication of two positive integers X and Y,
- both are fortunately in decimal system, and only a few dozen digits or less,
- and delivered as ASCII strings.
- Please output the result Z in similar style.
- Please adopt a general strategy, as X and Y may be changed later.
- Please rename the function Z = ylpitlum(X,Y).
- Function Template:
function Z = ylpitlum(X,Y)
% 098765432109876543210987654321098765432109876543210987654321
X='170000000000000000000000000000';
Y='190000000000000000000000000000';
Z='32300000000000000000000000000000000000000000000000000000000';
end
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers82
Suggested Problems
-
Make a run-length companion vector
657 Solvers
-
347 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
884 Solvers
-
Determine the number of odd integers in a vector
824 Solvers
-
Given a square and a circle, please decide whether the square covers more area.
1720 Solvers
More from this Author99
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
it seems there's an erroneous test case. the second test case has this line in it: Assert(isequal(P,PBM(B,M))), but there's no P or PBM
Fixed, thanks for letting me know.