1 |
|
2 |
|
3 | ;
|
4 |
|
5 | const { handleInput } = require('..');
|
6 |
|
7 | process.stdin.resume();
|
8 | process.stdin.setEncoding('utf8');
|
9 |
|
10 | let input = '';
|
11 |
|
12 | process.stdin.on('data', chunk => {
|
13 | input += chunk;
|
14 | });
|
15 |
|
16 | process.stdin.on('end', () => {
|
17 | handleInput(input, err => {
|
18 | if (err) {
|
19 | throw err;
|
20 | }
|
21 | });
|
22 | });
|