what I do know

    전체 글 2

    [boj] 11652. 카드 (node.js)

    요약 11652 주어진 숫자 카드 중에서 가장 개수가 많은 카드를 출력하라. 최대 개수가 동일한 카드가 여러 개라면 카드 번호가 더 작은 카드를 출력. 풀이 내 풀이 const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); let input = []; rl.on("line", function (line) { input.push(line); }).on("close", function () { const [N, ...cards] = input.map(BigInt); cards.sort((a, b) => (a b ? ..

    알고리즘 2022.01.26

    [boj] 10825. 국영수 (node.js)

    요약 학생 N명의 이름과 과목별 점수가 주어질 때, 문제 조건에 따라 정렬한 후 정렬 결과를 학생의 이름만 출력하라. 내 풀이 const fs = require("fs"); const filePath = process.platform === "linux" ? "dev/stdin" : "input.txt"; const stdin = fs.readFileSync(filePath).toString().split("\n"); let cnt = 0; const input = () => { return stdin[cnt++]; }; function compare(a, b) { if (a[1] != b[1]) return -(a[1] - b[1]); if (a[2] != b[2]) return a[2] - b[2];..

    알고리즘 2022.01.25
    이전
    1
    다음
    더보기
    프로필사진

    what I do know

    • 분류 전체보기 (2)
      • 알고리즘 (2)

    Tag

    정렬, 알고리즘,

    최근글과 인기글

    • 최근글
    • 인기글

    최근댓글

    공지사항

    페이스북 트위터 플러그인

    • Facebook
    • Twitter

    Archives

    Calendar

    «   2026/02   »
    일 월 화 수 목 금 토
    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

    방문자수Total

    • Today :
    • Yesterday :

    Copyright © AXZ Corp. All rights reserved.

    티스토리툴바