ํ๋ฒ์2 [CK] ์ฌ๋ถ๋ฉด - 9610 ์๊ฐ ์ ํ ๋ฉ๋ชจ๋ฆฌ ์ ํ ์ ์ถ ์ ๋ต ๋งํ ์ฌ๋ ์ ๋ต ๋น์จ 1 ์ด 128 MB 4726 3276 3039 71.776% ๋ฌธ์ 2์ฐจ์ ์ขํ ์์ ์ฌ๋ฌ ์ ์ ์ขํ (x, y)๊ฐ ์ฃผ์ด์ก์ ๋, ๊ฐ ์ฌ๋ถ๋ฉด๊ณผ ์ถ์ ์ ์ด ๋ช ๊ฐ ์๋์ง ๊ตฌํ๋ ํ๋ก๊ทธ๋จ์ ์์ฑํ์์ค. ์ ๋ ฅ ์ฒซ์งธ ์ค์ ์ ์ ๊ฐ์ n (1 โค n โค 1000)์ด ์ฃผ์ด์ง๋ค. ๋ค์ n๊ฐ ์ค์๋ ์ ์ ์ขํ (xi, yi)๊ฐ ์ฃผ์ด์ง๋ค. (-106 โค xi, yi โค 106) ์ถ๋ ฅ ๊ฐ ์ฌ๋ถ๋ฉด๊ณผ ์ถ์ ์ ์ด ๋ช ๊ฐ ์๋์ง๋ฅผ ์์ ์ถ๋ ฅ๊ณผ ๊ฐ์ ํ์์ผ๋ก ์ถ๋ ฅํ๋ค. ์์ ์ ๋ ฅ 1 5 0 0 0 1 1 1 3 -3 2 2 ์์ ์ถ๋ ฅ 1 Q1: 2 Q2: 0 Q3: 0 Q4: 1 AXIS: 2 Solution https://github.com/anothel/BOJ/blob/ma.. CodeKata/BOJ 2022. 2. 20. 0 [CK] Create Phone Number Write a function that accepts an array of 10 integers (between 0 and 9), that returns a string of those numbers in the form of a phone number. Example createPhoneNumber(int[10]{1, 2, 3, 4, 5, 6, 7, 8, 9, 0}) // => returns "(123) 456-7890" The returned format must be correct in order to complete this challenge. Don't forget the space after the closing parentheses! Solution #include std::string ge.. CodeKata/Codewars 2022. 2. 15. 0 ์ด์ 1 ๋ค์