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.
Preprocessor Solution
Preprocessor Solution
Sort by
recency
|
184 Discussions
|
Please Login in order to post a comment
This has to be the worst defined problem that I had ever solved. Literally.
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 = "<
Macros: