Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Test cases:
- { "test": [0b1001, 0b0011, 0b0110], "answer": 8},
- { "test": [0b1001, 0b0011, 0b0111], "answer": 6},
- { "test": [0b1011, 0b0011, 0b0110], "answer": 6},
- { "test": [0b1101, 0b0111, 0b0110], "answer": 5},
- { "test": [0b1001, 0b1011, 0b1110], "answer": 5},
- PASS
- 8 == 8
- 1001
- 0011
- 0110
- 8
- 0011
- 0110
- 0111
- 1001
- 1011
- 1101
- 1110
- 1111
- -
- PASS
- 6 == 6
- 1001
- 0011
- 0111
- 6
- 0011
- 0111
- 1001
- 1011
- 1101
- 1111
- -
- PASS
- 6 == 6
- 1011
- 0011
- 0110
- 6
- 0011
- 0110
- 0111
- 1011
- 1110
- 1111
- -
- FAIL
- 5 != 6
- 1101
- 0111
- 0110
- 5
- 0110
- 0111
- 1101
- 1110
- 1111
- -
- FAIL
- 5 != 6
- 1001
- 1011
- 1110
- 5
- 1001
- 1011
- 1101
- 1110
- 1111
- -
Advertisement
Add Comment
Please, Sign In to add comment