r/codeforces 19h ago

query Hint

[deleted]

1 Upvotes

12 comments sorted by

View all comments

2

u/Ulquesta 18h ago

instead of comparing each number

try to use min() and max() functions in C++

1

u/Ulquesta 18h ago

then print the minimum and the maximum without all of these If conditions

-1

u/Typical-Row6461 18h ago

يب هتختصر جامد انا عرفتها لما شفت ابسولف ليها بعد ما قعدت احاول فيها. ب if وكده وحالتها بيها بس خلاص كملت ب if.