You are viewing a single comment's thread. Return to all comments →
int main() { int t;std::cin>>t; std::vector vec; for(int i=0, a;i>a, vec.push_back(a); auto maxi=std::max_element(vec.begin(),vec.end()), mini=std::min_element(vec.begin(),vec.end()); std::cout<<"Result = "<
Seems like cookies are disabled on this browser, please enable them to open this website
Preprocessor Solution
You are viewing a single comment's thread. Return to all comments →
include #include
include #define subtract(a,b) a-b
int main() { int t;std::cin>>t; std::vector vec; for(int i=0, a;i>a, vec.push_back(a); auto maxi=std::max_element(vec.begin(),vec.end()), mini=std::min_element(vec.begin(),vec.end()); std::cout<<"Result = "<