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