Created
February 4, 2025 16:11
-
-
Save merunga/9e046bee8bc638225491db153eea2bcc to your computer and use it in GitHub Desktop.
Solve Me First (Javascript) https://www.hackerrank.com/challenges/solve-me-first/submissions/code/153858452
This file contains hidden or 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
process.stdin.resume(); | |
process.stdin.setEncoding('ascii'); | |
| |
var input_stdin = ""; | |
var input_stdin_array = ""; | |
var input_currentline = 0; | |
| |
process.stdin.on('data', function (data) { | |
input_stdin += data; | |
}); | |
| |
process.stdin.on('end', function () { | |
input_stdin_array = input_stdin.split("\n"); | |
main(); | |
}); | |
| |
function readLine() { | |
return input_stdin_array[input_currentline++]; | |
} | |
| |
function solveMeFirst(a, b) { | |
return a + b | |
} | |
| |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment