If you need to determine minimum and maximum in C++ from a certain value or variable then you can try it
int max = max({a,b,c});
int min = min({a,b,c});
or
int max = max({n1,n2,n3,n4....nn});
int min = min({n1,n2,n3,n4....nn});
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 156 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 153 |
Determining minimum and maximum
If you need to determine minimum and maximum in C++ from a certain value or variable then you can try it
int max = max({a,b,c});
int min = min({a,b,c});
or
int max = max({n1,n2,n3,n4....nn});
int min = min({n1,n2,n3,n4....nn});
Rev. | Lang. | By | When | Δ | Comment | |
---|---|---|---|---|---|---|
en7 | urparvezali | 2023-09-06 21:27:54 | 18 | |||
en6 | urparvezali | 2023-09-06 21:27:27 | 18 | |||
en5 | urparvezali | 2023-05-15 09:14:58 | 32 | |||
en4 | urparvezali | 2023-02-28 22:49:15 | 53 | Tiny change: 'n~~~~~\n\n' -> 'n~~~~~\n\nwhere a,b,c and n1,n2,n3...nn are variables or values' | ||
en3 | urparvezali | 2023-02-28 22:48:05 | 8 | (published) | ||
en2 | urparvezali | 2023-02-28 22:46:18 | 84 | (saved to drafts) | ||
en1 | urparvezali | 2023-02-28 22:44:19 | 361 | Initial revision (published) |
Name |
---|