Network mask v2 by hallvabo

class N{static{java.util.Scanner s=new java.util.Scanner(System.in);for(;s==s;){int a=0;for(String t:s.next().split("\\."))a+=Long.bitCount(new Long(t));System.out.println(a);}}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page