본문으로 건너뛰기
js
// 백준 1000번 문제.

function solution(input) {
  const [a, b] = input
    .trim()
    .split(' ')
    .map(val => Number(val));

  return a + b;
}

export default { solution };
js
// 백준 1000번 문제.

function solution(input) {
  const [a, b] = input
    .trim()
    .split(' ')
    .map(val => Number(val));

  return a + b;
}

module.exports = { solution };
ts
// 백준 1000번 문제.

import type { Input, Output } from 'bananass';

function solution(input: Input): Output {
  const [a, b] = input
    .trim()
    .split(' ')
    .map(val => Number(val));

  return a + b;
}

export default { solution };
ts
// 백준 1000번 문제.

import type { Input, Output } from 'bananass';

function solution(input: Input): Output {
  const [a, b] = input
    .trim()
    .split(' ')
    .map(val => Number(val));

  return a + b;
}

module.exports = { solution };