사생활 보호 설정
https://gamjia.tistory.com
Updated News
Mini Rooms
답글수 [0]
What Friends Say
한마디로 표현해봐~
1촌평 관리
1085번 직사각형에서 탈출
GamJia 2023. 3. 31. 09:11
단계별로 풀어보기 - 기본 수학 2 - 7단계
https://www.acmicpc.net/problem/1085
#include <iostream> #include <algorithm> using namespace std; int main() { int x,y,w,h; cin>>x>>y>>w>>h; cout<<min({x,y,h-y,w-x}); }
🔊min()함수는 괄호 안에 들어있는 숫자 중
더 작은 숫자를 반환해주며 함수를 사용하려면
#include <algorithm>을 포함해야한다