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 | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
# | 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 |
10 | nor | 152 |
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 |
---|