๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ Algorithm/์•Œ๊ณ ๋ฆฌ์ฆ˜-Python

[์•Œ๊ณ ๋ฆฌ์ฆ˜] Day1 - ํ•œ์ˆ˜

by Danna 2018. 8. 4.
728x90
728x90

01 ๋ฌธ์ œ



02 ์•Œ๊ณ ๋ฆฌ์ฆ˜


-      ์‹ญ์˜์ž๋ฆฌ, ์ผ์˜์ž๋ฆฌ ์ˆซ์ž์ธ ๊ฒฝ์šฐ, ํ•ญ์ƒ ๋“ฑ์ฐจ์ˆ˜์—ด์˜ ์กฐ๊ฑด์„ ๋งŒ์กฑํ•œ๋‹ค.

-      ๋ฐฑ์˜์ž๋ฆฌ์ธ ๊ฒฝ์šฐ, ๊ฐ ์ž๋ฆฌ์ˆ˜๊ฐ€ ๋“ฑ์ฐจ์ˆ˜์—ด์ธ์ง€ ํ™•์ธํ•œ๋‹ค.

-      n = 234           -> n/100 = 2

-      n = n%100 = 34 -> n/10 = 3

-      n = n%10 = 4   -> n = 4


03 ์ฝ”๋“œ


728x90
728x90