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