fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a=3;
  6. while(a<10000){
  7. a=2*a-1;
  8. }
  9. printf("%dの時初めて10000を超える。",a);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0.01s 5312KB
stdin
Standard input is empty
stdout
16385の時初めて10000を超える。