
๋์ ํ์ด

๊ฐ์ ํ์ด

dx , dy
์ํ์ข์ฐ ๋น๊ต
all
all(x)๋ ๋ฐ๋ณต ๊ฐ๋ฅํ(iterable) ๋ฐ์ดํฐ x๋ฅผ ์
๋ ฅ ๊ฐ์ผ๋ก ๋ฐ์ผ๋ฉฐ ์ด x์ ์์๊ฐ ๋ชจ๋ ์ฐธ์ด๋ฉด True, ๊ฑฐ์ง์ด ํ๋๋ผ๋ ์์ผ๋ฉด False๋ฅผ ๋ฆฌํดํ๋ค.
๋ฐ๋ณต ๊ฐ๋ฅํ ๋ฐ์ดํฐ๋ for ๋ฌธ์์ ์ฌ์ฉ ๊ฐ๋ฅํ ์๋ฃํ์ ์๋ฏธํ๋ค. ๋ฆฌ์คํธ, ํํ, ๋ฌธ์์ด, ๋์
๋๋ฆฌ, ์งํฉ ๋ฑ์ด ์๋ค.

any()๋ ํนํ ๋์๋น๊ต๋ฅผ ํ ๋ ์ฌ์ฉํ๋ฉด sort๋ณด๋ค ์คํ์๊ฐ์ ๋ง์ด ์ค์ผ ์ ์๋ค.
์๋ฅผ ๋ค์ด ์ด๋ค ์์ ์ด๋ค ๋ฆฌ์คํธ์ ์์๋ค์ ๋น๊ตํ๋๋ฐ ํด๋น ์๊ฐ ๋ฆฌ์คํธ ์์ max๊ฐ๋ณด๋ค ํฐ์ง๋ง ์๊ณ ์ถ๋ค๊ณ ํ์.
์ด ๋, sort๋ฅผ ์ฌ์ฉํ ๋ค ๋น๊ตํ๋ฉด ๋ฆฌ์คํธ๋ฅผ ๋ชจ๋ ์ ๋ ฌํ๊ธฐ ๋๋ฌธ์ ์๊ฐ์ด ๊ฑธ๋ฆฐ๋ค.
ํ์ง๋ง any๋ฅผ ์ฐ๋ฉด ๋ฆฌ์คํธ ๋ด์ ํด๋น ์๋ณด๋ค ํฐ ์๊ฐ ์๊ธฐ๋ง ํ๋ฉด ๋ฐ๋ก True๋ฅผ returnํ๊ณ ๋๋ด๊ธฐ ๋๋ฌธ์ ์๊ฐ์ด ๋ ๊ฑธ๋ฆฐ๋ค.

max ๋ฅผ ์ด์ฉํ์ฌ ํ์๋ ์๋ค