fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a = 3;
  6. int b;
  7. while (a <= 10000){
  8. a = 2*a-1;
  9. b++;
  10. }
  11. printf("%d、%d",a,b);
  12.  
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
16385、13