[바미] K번째 수
·
하루 알고리즘(JS)
문제https://www.acmicpc.net/problem/1300코드const fs = require('fs');const input = fs.readFileSync('/dev/stdin').toString().trim().split('\n');const N = parseInt(input[0]);const k = parseInt(input[1]);function countLessOrEqual(x) { let count = 0; for (let i = 1; i = k) { result = mid; high = mid - 1; } else { low = mid + 1; } } return result..