fork download
  1. #include <stdio.h>
  2.  
  3. int l(unsigned long long n)
  4. {
  5. return n?l(n/2)+1:-1;
  6. }
  7.  
  8. int main(void) {
  9. unsigned long long n = 65535;
  10. printf ("%lld %d\n", n,l(n));
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
65535 15