fork download
  1. {
  2. result = 0
  3. for ( i = 1 ; i < NF+1 ; i++ ) {
  4. result = result * 2 + $i
  5. }
  6. printf("%d\n",$0,result)
  7. }
Success #stdin #stdout 0s 5896KB
stdin
0111111100110110100010110111001101100100110010100000000000111111110001111011011000101101100011001000
stdout
111111100110110105806965136502365097020395430921009715339863380454811509067018989729212232707866624