Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let input = ['a', '1'];
- let gets = this.gets || ((arr, index) => () => arr[index++])(input, 0);
- let print = this.print || console.log;
- let label = gets().charCodeAt(0);
- let rank = +gets();
- let result = (
- (label % 2 === 0 && rank % 2 === 0) || (label % 2 === 1 && rank % 2 === 1)
- ) ? 'dark' : 'light';
- print(result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement