Network mask v2 by patashu

class N{static{try{int c=0,i=0;byte[]b=new byte[999];System.in.read(b);String[]s=new String(b).split("\\D");for(;;){c+=Long.bitCount(Long.decode(s[i++]));if(i%4<1){System.out.println(c);c=0;}}}catch(Exception e){}}}

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

download

return to the top page