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 | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 160 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | Dominater069 | 154 |
8 | awoo | 154 |
10 | luogu_official | 151 |
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 |
---|