본문 바로가기

전체 글426

[Algorithm] BaekJoon : 23288. 주사위 굴리기 2 by Python [문제 바로가기] https://www.acmicpc.net/problem/23288 23288번: 주사위 굴리기 2 크기가 N×M인 지도가 존재한다. 지도의 오른쪽은 동쪽, 위쪽은 북쪽이다. 지도의 좌표는 (r, c)로 나타내며, r는 북쪽으로부터 떨어진 칸의 개수, c는 서쪽으로부터 떨어진 칸의 개수이다. 가장 왼 www.acmicpc.net 📌 문제 설명 크기가 N×M인 지도가 존재한다. 지도의 오른쪽은 동쪽, 위쪽은 북쪽이다. 지도의 좌표는 (r, c)로 나타내며, r는 북쪽으로부터 떨어진 칸의 개수, c는 서쪽으로부터 떨어진 칸의 개수이다. 가장 왼쪽 위에 있는 칸의 좌표는 (1, 1)이고, 가장 오른쪽 아래에 있는 칸의 좌표는 (N, M)이다. 이 지도의 위에 주사위가 하나 놓여져 있으며, 주.. 2022. 3. 31.
[Algorithm] Programmers : n^2 배열 자르기 by Python [문제 바로가기] https://programmers.co.kr/learn/courses/30/lessons/87390 코딩테스트 연습 - n^2 배열 자르기 정수 n, left, right가 주어집니다. 다음 과정을 거쳐서 1차원 배열을 만들고자 합니다. n행 n열 크기의 비어있는 2차원 배열을 만듭니다. i = 1, 2, 3, ..., n에 대해서, 다음 과정을 반복합니다. 1행 1열부 programmers.co.kr 📌 문제 설명 정수 n, left, right가 주어집니다. 다음 과정을 거쳐서 1차원 배열을 만들고자 합니다. n행 n열 크기의 비어있는 2차원 배열을 만듭니다. i = 1, 2, 3, ..., n에 대해서, 다음 과정을 반복합니다. 1행 1열부터 i행 i열까지의 영역 내의 모든 빈 .. 2022. 3. 27.
[Daily] 0327(일) 📌 오늘의 회화 주간 복습 📌 오늘의 단어 blab : (비밀) 정보를 알려주다 reign : (왕의) 통치 기간, 치세 intolerable : 견딜[참을] 수 없는 irk : 짜증스럽게 하다 stir : 유발하다, 불러 일으키다 disapproval : 반감, 못마땅함 allegedly : 주장한[전해진] 바에 의하면, 이른바 2022. 3. 27.
[Daily] 0326(토) 📌 오늘의 회화 W : Did you enjoy the movie adaptation of this novel? M : It's not a patch on the book. W : I completely agree! M : The movie relied too heavily on special effects W : Yeah, and the story and dialogue were poor. M : Even the main actor's performance fell flat for me. W : Same here, and I usually enjoy his movies. M : He probably regretted starring in this one. 📌 오늘의 단어 not a patch on ~ .. 2022. 3. 27.
[Daily] 0325(금) 📌 오늘의 회화 M : How can we get more tourists to visit our town? W : I have a million and one ideas. M : Great! Let me hear some of them. W : First we need to redesign the town's website. M : Yeah, that's long overdue, anyway. W : And we need a bigger social media presence. M : Oh I wouldn't know where to start with that. W : Don't worry. I can hadle it. 📌 오늘의 단어 a million and one : 아주 많은 be long ov.. 2022. 3. 25.
[Daily] 0324(목) 📌 오늘의 회화 W : I'm tempted to get the new cell phone. M : I'd buy one in a heartbeat If I could afford it. W : Yeah, the price is really high. M : From what I hear, it's worth it, though. W : So, you think I should just throw caution to the wind. M : I'd say go fot it! W : Okay, I hope I don't regret it. M : I bet you won't. 📌 오늘의 단어 in a heartbeat : 생각해 볼 것도 없이 당장 throw caution to the wind : 큰마음 .. 2022. 3. 24.
[Daily] 0323(수) 📌 오늘의 회화 M : Kim, do you have a moment? W : Sure, what's up? M : I need to let off some steam. W : Oh! Who's bugging you. M : James! It's so frustrating to work with him! W : Yeah, he doesn't know the meaning of teamwork. M : I feel like I'm doing 90 percont of our project. W : You should complan to our manage about him. 📌 오늘의 단어 let off steam : 스틑레스/기분/화를 풀다 know the meaning of ~ : ~의 의미를 알다 ha.. 2022. 3. 23.
[Daily] 0322(화) 📌 오늘의 회화 M : Your suitcase is almost falling apart, Pam! W : Yeah, it has seen better days! M : How come it's in such poor condition? W : Well, I've had it for about 20 years. M : And you've been all over the world with it, right? W : Yeah, I've been to almost 100 countries with this suitcase. M : Wow! That explains why it's worse for wear. W : Yeah, It has been knocked around quite a bit! 📌 오늘의.. 2022. 3. 22.
[Algorithm] Programmers : 주차 요금 계산 by Python [문제 바로가기] https://programmers.co.kr/learn/courses/30/lessons/92341 코딩테스트 연습 - 주차 요금 계산 [180, 5000, 10, 600] ["05:34 5961 IN", "06:00 0000 IN", "06:34 0000 OUT", "07:59 5961 OUT", "07:59 0148 IN", "18:59 0000 IN", "19:09 0148 OUT", "22:59 5961 IN", "23:00 5961 OUT"] [14600, 34400, 5000] programmers.co.kr 📌 문제 설명 주차장의 요금표와 차량이 들어오고(입차) 나간(출차) 기록이 주어졌을 때, 차량별로 주차 요금을 계산하려고 합니다. 아래는 하나의 예시를 나타냅니다. 요.. 2022. 3. 22.