Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const getGets = (arr) => {
- let index = 0;
- return () => {
- const toReturn = arr[index];
- index += 1;
- return toReturn;
- };
- };
- // this is the test
- const test = [
- '1234566666666666666666666666666777777778888887',
- ];
- const gets = this.gets || getGets(test);
- const print = this.print || console.log;
- //и тук
- const n = gets();
- // тук са корекциите
- const fillArray = (start, end) => [...Array(+bigInt(end).minus(start).add(1).toString())].map((item, index) => bigInt(start).add(index).toString());
- const result = fillArray(bigInt(n).add(1), bigInt(n).add(10));
- print(result.join('\r\n'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement