#include <iostream>
using namespace std;
namespace my {
template <typename T>
T max(const T& lhs, const T& rhs) {
return lhs > rhs ? lhs : rhs;
}
}
int main(void) {
// your code goes here
double zero = 0.0;
double nzero = -0.0;
cout << "zero\t\t= " << zero << endl;
cout << "nzero\t\t= "<< nzero << endl;
cout << "my::max\t\t= " << my::max(zero, nzero) << endl;
cout << "std::max\t= " << max(zero, nzero) << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKbmFtZXNwYWNlIG15IHsKdGVtcGxhdGUgPHR5cGVuYW1lIFQ+CglUIG1heChjb25zdCBUJiBsaHMsIGNvbnN0IFQmIHJocykgewoJCXJldHVybiBsaHMgPiByaHMgPyBsaHMgOiByaHM7Cgl9IAp9CgppbnQgbWFpbih2b2lkKSB7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCgkKCWRvdWJsZSB6ZXJvICA9ICAwLjA7Cglkb3VibGUgbnplcm8gPSAtMC4wOwoJY291dCA8PCAiemVyb1x0XHQ9ICIgPDwgIHplcm8gPDwgZW5kbDsKCWNvdXQgPDwgIm56ZXJvXHRcdD0gIjw8IG56ZXJvIDw8IGVuZGw7Cgljb3V0IDw8ICJteTo6bWF4XHRcdD0gIiA8PCBteTo6bWF4KHplcm8sIG56ZXJvKSA8PCBlbmRsOwoJY291dCA8PCAic3RkOjptYXhcdD0gIiA8PCBtYXgoemVybywgbnplcm8pIDw8IGVuZGw7CglyZXR1cm4gMDsKfQo=