-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
36 lines (27 loc) · 684 Bytes
/
script.js
File metadata and controls
36 lines (27 loc) · 684 Bytes
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
32
33
34
35
36
// Don't touch this part
process.stdin.resume();
process.stdin.setEncoding("utf-8");
var input_stdin = "";
var input_currentline = 0;
process.stdin.on("data", (rawData) => {
input_stdin += rawData;
});
process.stdin.on("end", () => {
input_stdin = input_stdin.trim().split("\n").map(line => {
return line.trim()
});
main();
});
function readLine() {
return input_stdin[input_currentline++];
}
// ########### TYPE YOUR CODE INSIDE MAIN FUNCTION ###########
function main() {
// type your solution here
// process strings
const string = readLine()
console.log(string)
// process integers
const number = parseInt(readLine())
console.log(number)
}