You are viewing a single comment's thread. Return to all comments →
Easy one in C++, just using the GCD:
int restaurant(int l, int b) { int size = __gcd(l, b); return (l/size) * (b/size); }
Seems like cookies are disabled on this browser, please enable them to open this website
Restaurant
You are viewing a single comment's thread. Return to all comments →
Easy one in C++, just using the GCD: