규도자 개발 블로그
Objective In this challenge, you'll work with arithmetic operators. Check out the Tutorial tab for learning materials and an instructional video! Task Given the meal price (base cost of a meal), tip percent (the percentage of the meal price being added as tip), and tax percent(the percentage of the meal price being added as tax) for a meal, find and print the meal's total cost. Note: Be sure to ..
Objective Today, we're discussing data types. Check out the Tutorial tab for learning materials and an instructional video! Task Complete the code in the editor below. The variables , , and are already declared and initialized for you. You must:Declare variables: one of type int, one of type double, and one of type String.Read lines of input from stdin (according to the sequence given in the Inp..
"객체지향은 현실세계의 모방, 추상화하는 것은 아니다. 소프트웨어 안에 구현된 상품 객체는 실제 세계의 상품과는 전혀 다른 양상을 띤다. 오히려 현실세계를 기반으로 새로운 세계를 창조하는 것과 같다." 이 말이 이 책의 모든 내용을 함축하고 있다. 현실세계의 객체들은 수동적인 자세를 취하고 "인간"이라는 능동적인 객체가 직접적인 영향을 미치지만 소프트웨어세계에는 인간이 없다. 그래서 객체는 스스로 움직여야 한다. 현실세계에서는 사람이 음료수를 마시지만 소프트웨어세계에서는 사람이 음료수를 직접 마실 수 없다. 사람은 음료수에게 음료수를 이만큼 먹겠다는 메시지를 보내고 음료수는 그 메세지를 수신해서 스스로 그만큼의 양을 줄인다. 이것이 소프트웨어세계에서 객체들이 동작하는 방식이다. 소프트웨어세계에서는 모든 ..
Objective In this challenge, we review some basic concepts that will get you started with this series. You will need to use the same (or similar) syntax to read input and write output in challenges throughout HackerRank. Check out the Tutorial tab for learning materials and an instructional video! Task To complete this challenge, you must save a line of input from stdin to a variable, print Hell..
HackerLand University has the following grading policy:Every student receives a in the inclusive range from to .Any less than is a failing grade.Sam is a professor at the university and likes to round each student's according to these rules:If the difference between the and the next multiple of is less than , round up to the next multiple of .If the value of is less than , no rounding occurs as ..
Sam's house has an apple tree and an orange tree that yield an abundance of fruit. In the diagram below, the red region denotes his house, where is the start point, and is the endpoint. The apple tree is to the left of his house, and the orange tree is to its right. You can assume the trees are located on a single point, where the apple tree is at point , and the orange tree is at point .When a ..