1 2 3 4 5 6 7 8 9 10 11 12 13
#ifndef MIN_H #define MIN_H template<class L, class R> inline L min(L l, R r) { if (l < r) { return l; }else{ return r; } } #endif // MIN_H