This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE: This code is suitable for someone in a competition space | |
// that needs to read files line-by-line from standard input. | |
const readline = require("readline"); | |
// Create an interface for reading lines | |
// from the standard input | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout, | |
terminal: false, |