ENG  RUSTimus 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 thread

Discussion of Problem 1072. Routing

Reply to message

  • Messages should be written in English and correspond to the matter of the website.
  • Messages should not contain offences and obscene words.
  • Messages should not contain correct solutions.
The only possible difficulty.
Posted by Mahilewets 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;
}


JUDGE_ID
Subject