| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- select
- Hackerrank
- MySQL
- 프로그래머스
- Algorithms
- 개발자의 책장
- 정규표현식
- 자바스크립트
- node.js
- 배열
- 코드스테이츠
- 코딩공부
- 최강의 인생
- 코플릿
- Where
- Programmers
- SQL
- 블록체인
- array.push()
- 개발자_조이킴
- 재귀함수
- array.slice()
- join
- for문
- array
- JavaScript
- 역행자
- 코딩테스트
- 알고리즘
- Developer_JoyKim
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