| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Tags
- 코딩테스트
- 프로그래머스
- Algorithms
- Programmers
- array
- 배열
- 코플릿
- 개발자의 책장
- 역행자
- join
- array.push()
- Hackerrank
- node.js
- Where
- 정규표현식
- array.slice()
- JavaScript
- 개발자_조이킴
- Developer_JoyKim
- select
- SQL
- 자바스크립트
- for문
- 블록체인
- 재귀함수
- 알고리즘
- 코드스테이츠
- 코딩공부
- 최강의 인생
- MySQL
Archives
- Today
- Total
CodingSpace
[HackerRank/Algorithms] Warmup - Solve Me First 본문
Problem. Warmup - Solve Me First
Link.
https://www.hackerrank.com/challenges/solve-me-first/problem?isFullScreen=true
Solve Me First | HackerRank
This is an easy challenge to help you start coding in your favorite languages!
www.hackerrank.com
Description.
Complete the function solveMeFirst to compute the sum of two integers.

Key Point.
My Answer.
process.stdin.resume();
process.stdin.setEncoding('ascii');
var input_stdin = "";
var input_stdin_array = "";
var input_currentline = 0;
process.stdin.on('data', function (data) {
input_stdin += data;
});
process.stdin.on('end', function () {
input_stdin_array = input_stdin.split("\n");
main();
});
function readLine() {
return input_stdin_array[input_currentline++];
}
function solveMeFirst(a, b) {
// Hint: Type return a+b below
return a + b;
}
function main() {
var a = parseInt(readLine());
var b = parseInt(readLine());;
var res = solveMeFirst(a, b);
console.log(res);
}
References.
'HackerRank > Algorithm' 카테고리의 다른 글
| [HackerRank/Algorithms] Warmup - Birthday Cake Candles (0) | 2022.08.22 |
|---|---|
| [HackerRank/Algorithms] Warmup - Mini-Max Sum (0) | 2022.08.22 |
| [HackerRank/Algorithms] Warmup - Plus Minus (0) | 2022.08.21 |
| [HackerRank/Algorithms] Warmup - Diagonal Difference (0) | 2022.08.21 |
| [HackerRank/Algorithms] Warmup - A Very Big Sum (0) | 2022.08.19 |
Comments