The Open Port
Statement
Goal
You have an specialInput
The IP address. You know... numbers are separated by dots.
Output
The open port.
Constraints
4<=port <=65535
Example
Input
127.0.0.1
Output
11
Game modes
Fastest, Shortest
Test cases
Localhost Test
Input
127.0.0.1
Output
11
Reverse Localhost Validator
Input
1.2.3.4
Output
10
Google Test
Input
216.58.210.14
Output
60
Codingame Validator
Input
178.32.52.110
Output
30
Huge Port Test
Input
99.99.99.99
Output
648
Maximum Port Validator
Input
99.199.199.199
Output
675
On the edge Test
Input
255.255.255.255
Output
96
Almost on the edge Validator
Input
225.225.225.225
Output
72
Reverse countdown Test
Input
87.65.43.210
Output
288
Anonymous Network Validator
Input
1.3.3.7
Output
14
Solution language
Solution
Stub generator input