본문 바로가기

yourgenieus

검색하기
yourgenieus
프로필사진 EOJIN

  • 분류 전체보기 (23)
    • Android (21)
      • Android Kotlin 기초 실습 정리 (21)
    • 코딩테스트 (2)
      • 백준 (2)
      • 프로그래머스 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/12   »
일 월 화 수 목 금 토
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 31
Tags
  • 코딩테스트
  • 알고리즘
  • javascript
  • 노드
  • nodejs
  • 백준
  • 자바스크립트
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록javascript (1)

yourgenieus

[Node.js] 1764: 듣보잡

https://www.acmicpc.net/problem/1764처음에는 단순 list끼리 비교해서 includes로 필터링하면 될 것이라고 생각하였습니다.사전순 출력도 sort를 이용하면 되니 별로 신경쓸 부분이 없었습니다.const fs = require("fs");const input = fs.readFileSync("input.txt").toString().split("\n");const [n, m] = input.shift().split(" ").map(Number);const listen = input.slice(0, n);const see = input.slice(n, n + m);const list = listen.filter((name) => see.includes(name));conso..

코딩테스트/백준 2025. 10. 24. 15:42
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바