dovelet - maxandmin/maxandmin
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #include <iostream> #include <algorithm> using namespace std; int main() { int x, y; cin >> x >> y; cout << max(min(x, y), x) << endl; return 0; } | cs |
'algorithm ' 카테고리의 다른 글
dovelet - spot of light/spot (0) | 2016.07.15 |
---|---|
dovelet - 내/외각의 합/angle (0) | 2016.07.14 |
dovelet - 기울기/slant (0) | 2016.07.14 |
dovelet - 버터 먹기/butter (0) | 2016.07.14 |
dovelet - 사탕/coci_slatkisi (0) | 2016.07.14 |