fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. uint original = 182;
  8. int n = 6;
  9. var top = ~((1U<<(n+1))-1);
  10. Console.WriteLine(top.ToString("X"));
  11. var bottom = (1U<<n)-1;
  12. Console.WriteLine(bottom.ToString("X"));
  13. var res = ((original & top)>>1) | (original & bottom);
  14. Console.WriteLine(res);
  15. }
  16. }
Success #stdin #stdout 0.03s 24144KB
stdin
Standard input is empty
stdout
FFFFFF80
3F
118