ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1072
. Routing
Nikita Mogilevets
The only possible difficulty.
// Problem
1072. Routing
17 Jul 2017 23:37
To read IP address /subnet mask
I recommend you to use the following template
unsigned int read_mask(){
unsigned int a, b, c, d;
scanf("%u.%u.%u.%u", &a, &b, &c, &d);
return (a<<24) + (b<<16) + (c<<8) + d;
}
© 2000–2026
Timus Online Judge Team
. All rights reserved.