We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The product of two int will be a int (which don't fit in all tests cases) but the product of a long long with a int will be a long long. He cast l into a long long and then all the products will be long long. An another way to do that is :
Box It!
You are viewing a single comment's thread. Return to all comments →
The product of two int will be a int (which don't fit in all tests cases) but the product of a long long with a int will be a long long. He cast l into a long long and then all the products will be long long. An another way to do that is :
(one more product but less code =P )