#include <stdio.h> int main(void) { // your code goes here int a=3,n=0; do { a=2*a-1; n=n+1; } while(a<=10000); return 0; }
Standard input is empty
0回目、3 1回目、5 2回目、9 3回目、17 4回目、33 5回目、65 6回目、129 7回目、257 8回目、513 9回目、1025 10回目、2049 11回目、4097 12回目、8193 13回目、16385 13回目で初めて10000を超える。