프로그래머스 9

[Programmers, Level 1] 모의고사 Mock Exam

Description In Korea, there are "people done with math" called "수포자" (pronounced "soo-po-ja"). "수포자" is an abbreviation for people who have given up on math. The three "수포자" want to guess all the math problems on a mock exam. They follow the following patterns: Pattern for "수포자 1": 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, ... Pattern for "수포자 2": 2, 1, 2, 3, 2, 4, 2, 5, 2, 1, 2, 3, 2, 4, 2, 5, ... Pattern ..

[Programmers, Level 1] 푸드 파이트 대회 Food Fight Contest

Description: Suwoong is organizing a food fight competition every month where participants have to eat the given food quickly. In this competition, the players compete against each other one-on-one, and the type and quantity of food change with each match. The competition proceeds by arranging the prepared food in a row, with one player starting from the left and eating the food from left to rig..

[Programmers, Level 1] Cooking Hamburger 햄버거 만들기

Description: 상수 working at a hamburger restaurant is responsible for packaging the hamburgers. The other employees who work together cook the ingredients that will go into the hamburgers. The cooked ingredients are stacked in front of 상수 in the order they are prepared, from bottom to top. The 상수 then moves the stacked ingredients separately to package the completed hamburgers. The 상수's job is t..

[Programmers, Level 0] 캐릭터 좌표(Character Coordination)

Problem Mussuk is playing RPG. The game has an up, down, left, right rudder, and when you press each key, you move up, down, left, and right. For example, if you press up at [0,0], the coordinates of the character are [0,1], if you press down, [0,-1], if you press left, [-1,0], if you press right, [1,0]. The parameters are given the array keyinput of the arrow keys entered by the awkward and the..