fork(3) download
  1. #include <stdio.h>
  2. #include<math.h>
  3. int main(void)
  4. {
  5. int T,N,p,i;
  6. scanf("%d",&T);
  7. for(i=0;i<T;i++)
  8. {
  9. scanf("%d",&N);
  10. p=pow(2,(N-1));
  11. printf("%d",p);
  12. }
  13. return 0;
  14. }
  15.  
  16.  
  17.  
Success #stdin #stdout 0s 2300KB
stdin
1
5
stdout
16