Advertisement
3vo

01

3vo
Nov 5th, 2022
853
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let input = [
  2.     '3',
  3.     '3',
  4.     '4',
  5.     '5',
  6.     '4',
  7.     '5',
  8.     '6',
  9. ];
  10.  
  11. let print = this.print  console.log;
  12. let gets = this.gets  ((arr, index) => () => arr[index++])(input, 0);
  13.  
  14. let getCycles = +gets();
  15. let arrOne = [];
  16. let arrTwo = [];
  17. let result = '';
  18.  
  19. for (let i = 0; i < getCycles; i++) {
  20.     let getArrayOne = +gets();
  21.     arrOne.push(getArrayOne);
  22. }
  23.  
  24. for (let i = 0; i < getCycles; i++) {
  25.     let getArrayTwo = +gets();
  26.     arrTwo.push(getArrayTwo);
  27. }
  28.  
  29. if (arrOne[0] === arrTwo[0]  arrOne[1] === arrTwo[1]  arrOne[2] === arrTwo[2]) {
  30.     result = 'Equal';
  31. } else {
  32.     result = 'Not equal';
  33. }
  34.  
  35. console.log(result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement