alexjercan/bugnet huggingface dataset:
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <iostream>
using namespace std;

int main() {
  long long X, money = 100, result = 0;
  ;
  cin >> X;
  while (money < X) {
    money = 1.01 * money;
    result++;
  }

  cout << result << endl;
  return 0;
}

Error: TLE

Fixed submission:

#include <iostream>
using namespace std;

int main() {
  int X, money = 100, result = 0;
  cin >> X;
  while (true) {
    if (money < X) {
      money = 1.01 * money;
      result++;
    } else {
      break;
    }
  }

  cout << result << endl;
  return 0;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
  long long X, A = 100;
  int Y = 0;
  cin >> X;
  while (A < X) {
    A = A + A / 100;
    Y++;
  }
  cout << Y << endl;
}

Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
  long long X, A = 100;
  int Y = 0;
  cin >> X;
  while (A < X) {
    A = A * 101 / 100;
    Y++;
  }
  cout << Y << endl;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;

int main() {
  int ans = 0;
  long long X, num = 100;
  cin >> X;
  while (num < X) {
    ans++;
    num += num / 100;
  }
  cout << ans;
}

Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;

int main() {
  int ans = 0, num = 100;
  long long X;
  cin >> X;
  while (num < X) {
    ans++;
    X *= 101;
    X /= 100;
  }
  cout << ans;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x;
  cin >> x;
  long long p = 100LL;
  long long num = 0LL;
  while (p < x) {
    num++;
    p += p / 100;
  }
  cout << num;
}

Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x;
  cin >> x;
  long long p = 100LL;
  long long num = 0LL;
  while (p < x) {
    num++;
    p *= 101;
    p /= 100;
  }
  cout << num;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;

int main() {
  long long int bal = 100, val, count = 0;
  cin >> val;
  while (bal < val) {
    bal += (long long int)(bal * 0.01);
    count++;
  }
  cout << count;
  return 0;
}

Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;

int main() {
  long long int bal = 100, val, count = 0;
  cin >> val;
  while (bal < val) {
    bal += int(bal * 0.01);
    count++;
  }
  cout << count;
  return 0;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <iostream>

using namespace std;

int main() {
  long long int border{};
  cin >> border;

  long long int year = 0, money = 100;

  while (money < border) {
    money *= 1.01;
    ++year;
  }

  cout << year << endl;
  return 0;
}

Error: TLE

Fixed submission:

#include <iostream>

using namespace std;

int main() {
  int border{};
  cin >> border;

  int year = 0;
  int money = 100;

  while (money < border) {
    money += money * 0.01;
    ++year;
  }

  cout << year;
  return 0;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.hpp>
using namespace boost::multiprecision;
using namespace std;
#define int int128_t
#define alpha_size 26

int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);

  int x;
  cin >> x;
  int cur = 100;
  int timer = 0;
  while (cur < x) {
    cur = cur * 101;
    cur = cur / 100;
    timer++;
  }
  cout << timer << endl;
}

Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define alpha_size 26

int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);

  int x;
  cin >> x;
  int cur = 100;
  int timer = 0;
  while (cur < x) {
    cur = cur * 101;
    cur = cur / 100;
    timer++;
  }
  cout << timer << endl;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <string.h>
#include <string>
// #include <Eigen/Dense>
// #include <Eigen/Geometry>
// using namespace Eigen;

using namespace std;

int main() {

  long long n;
  cin >> n;
  long long m = 100;
  long long iter = 0;
  while (1) {
    m *= 1.01;
    iter++;
    if (m >= n) {
      cout << iter << endl;
      return 0;
    }
  }

  return 0;
}


Error: TLE

Fixed submission:

#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <string.h>
#include <string>
// #include <Eigen/Dense>
// #include <Eigen/Geometry>
// using namespace Eigen;

using namespace std;

int main() {

  int n;
  cin >> n;
  int m = 100;
  int iter = 0;
  while (1) {
    m *= 1.01;
    iter++;
    if (m >= n) {
      cout << iter << endl;
      return 0;
    }
  }

  return 0;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
#define ll long long
#define PI 3.14159265358979323846
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  /// https://ideone.com/Fd5s8n

  ll x;
  cin >> x;
  ll a[4000];
  a[0] = 100;
  for (int i = 1; i <= 4000; i++) {
    a[i] = a[i - 1] + a[i - 1] / 100;
    if (a[i] >= x) {
      cout << i << endl;
      return 0;
    }
  }
  return 0;
}


Error: TLE

Fixed submission:

#include <bits/stdc++.h>
#define ll long long
#define PI 3.14159265358979323846
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  /// https://ideone.com/Fd5s8n

  ll x;
  cin >> x;
  int a[4000];
  a[0] = 100;
  for (int i = 1; i <= 4000; i++) {
    a[i] = a[i - 1] + a[i - 1] / 100;
    if (a[i] >= x) {
      cout << i << endl;
      return 0;
    }
  }
  return 0;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;

int main(void) {
  ll target;
  ll b = 100;
  int cnt = 0;
  cin >> target;
  while (target > b) {
    b += b / 100;
    cnt++;
  }
  cout << cnt;
  return 0;
}

Error: TLE

Fixed submission:

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;

int main(void) {
  int target;
  int b = 100;
  int cnt = 0;
  cin >> target;
  while (target > b) {
    b += b / 100;
    cnt++;
  }
  cout << cnt;
  return 0;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
#define rep(i, n) for (int(i) = 0; (i) < (n); i++)
#define ll long long
using namespace std;

int main() {
  ll X;
  ll a = 100;
  ll ans = 0;
  cin >> X;
  while (a <= X) {
    a += a / 100;
    ans++;
    if (a >= X) {
      cout << ans;
      return 0;
    }
  }
}


Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int X;
  int N = 100;
  int ans = 0;
  cin >> X;
  while (N < X) {
    N += N / 100;
    ans++;
  }
  cout << ans << endl;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>

using namespace std;

int main(void) {
  int i;
  int64_t sum, hun, X;
  sum = 100;
  hun = 100;
  i = 0;

  cin >> X;

  if (X < 100508083) {
    while (sum < X) {
      sum += sum / hun;
      i++;
    }
  } else {
    i = 1446;
    sum = 100508083;
    while (sum < X) {
      sum += sum / hun;
      i++;
    }
  }

  cout << i << endl;

  return 0;
}

Error: TLE

Fixed submission:

#include <bits/stdc++.h>

using namespace std;

int main(void) {
  int X, i, sum;
  sum = 100;
  i = 0;

  cin >> X;

  while (sum < X) {
    sum += sum / 100;
    i++;
  }

  cout << i << endl;

  return 0;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>

#ifdef NON_SUBMIT
#define TEST(n) (n)
#define tout cerr
#else
#define TEST(n) ((void)0)
#define tout cin
#endif

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  TEST(freopen("input.txt", "r", stdin));
  TEST(freopen("output.txt", "w", stdout));
  TEST(freopen("debug.txt", "w", stderr));
  long long X;
  __int128 c = 100;
  cin >> X;
  for (int i = 1;; i++) {
    c = c * 101 / 100;
    if (c >= X) {
      cout << i << '\\n';
      break;
    }
  }
  return 0;
}

Error: TLE

Fixed submission:

#include <bits/stdc++.h>

#ifdef NON_SUBMIT
#define TEST(n) (n)
#define tout cerr
#else
#define TEST(n) ((void)0)
#define tout cin
#endif

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  TEST(freopen("input.txt", "r", stdin));
  TEST(freopen("output.txt", "w", stdout));
  TEST(freopen("debug.txt", "w", stderr));
  long long X, c = 100;
  cin >> X;
  for (int i = 1;; i++) {
    c = c * 101 / 100;
    if (c >= X) {
      cout << i << '\\n';
      break;
    }
  }
  return 0;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;

int main() {
  int year = 0;
  long long money = 100;
  long long X;
  cin >> X;
  for (int i = 0; money < X; i++) {
    money += money / 100;
    year++;
  }
  cout << year << endl;
}


Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;

int main() {
  int X, year = 0;
  int money = 100;

  cin >> X;
  for (int i = 0; money < X; i++) {
    money += money / 100;
    year++;
  }
  cout << year << endl;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded



#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x;
  cin >> x;
  long long sum = 100;
  long long y = 0;
  while (x > sum) {
    sum = sum + (sum / 100);
    y++;
  }

  cout << y;
}


Error: TLE

Fixed submission:



#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  cin >> x;
  int sum = 100;
  int y = 0;
  while (x > sum) {
    sum = sum + (sum / 100);
    y++;
  }

  cout << y;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;

int main() {
  long long x, i;
  i = 0;
  cin >> x;
  long long a = 100;
  while (a < x) {
    long long b = a / 100;
    a += b;
    i++;
  }
  cout << i << endl;
}


Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;

int main() {
  long long x, i;
  i = 0;
  cin >> x;
  int a = 100;
  while (a < x) {
    int b = a / 100;
    a += b;
    i++;
  }
  cout << i << endl;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;

int main() {
  int64_t x;
  cin >> x;

  int64_t h = 100;
  int64_t ans = 0;
  while (h < x) {
    h *= 1.01;
    ans++;
  }
  cout << ans << endl;
}

Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;

int main() {
  int64_t x;
  cin >> x;

  int h = 100;
  int ans = 0;
  while (h < x) {
    h *= 1.01;
    ans++;
  }
  cout << ans << endl;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t a = 100;
  int64_t x;
  cin >> x;
  int count = 0;
  while (a < x) {
    a += a / 100;
    count++;
  }
  cout << count << endl;
}


Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t a = 100;
  int64_t x;
  cin >> x;
  int count = 0;
  while (a < x) {
    a = a * 101 / 100;
    count++;
  }
  cout << count << endl;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;

int main() {
  double X;
  long int mon = 100;
  int year = 0;
  cin >> X;

  while (mon < X) {
    mon = mon * 1.01;
    year = year + 1;
    if (mon >= X) {
      cout << year << endl;
    }
  }
}

Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;

int main() {
  int X;
  int mon = 100;
  int year = 0;

  cin >> X;

  while (mon < X) {
    mon = mon * 1.01;
    year = year + 1;
  }

  cout << year << endl;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int x;
  long long int y = 100;
  cin >> x;
  long long int r;
  for (long long int i = 1;; i++) {
    r = y / 100;
    y = y + r;
    if (y >= x) {
      cout << i << endl;
      return 0;
    }
  }
}


Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  int y = 100;
  cin >> x;
  int r = 0;
  for (int i = 1;; i++) {
    r = y / 100;
    y = y + r;
    if (y >= x) {
      cout << i << endl;
      return 0;
    }
  }
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x;
  cin >> x;
  long long ans = 0, money = 100;
  while (x > money) {
    ans++;
    money += money / 100;
  }
  cout << ans << endl;
  return 0;
}

Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int x;
  cin >> x;
  int ans = 0, money = 100;
  while (x > money) {
    ans++;
    money += money / 100;
  }
  cout << ans << endl;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;

int main() {

  long long i, X;
  long long Y = 100;
  cin >> X;

  for (i = 0; Y < X; i++) {
    Y += Y / 100;
  }
  cout << i << endl;
}


Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;

int main() {

  int i;
  int X;
  int Y = 100;
  cin >> X;

  for (i = 0; Y < X; i++) {
    Y *= 1.01;
  }
  cout << i << endl;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <algorithm>
#include <iostream>
#include <string.h>
#define ull unsigned long long
using namespace std;
ull x, yer;
void dp() {
  for (ull i = 100, j = 1; i < x; j++) {
    i += i / 100;
    yer = j;
  }
}
int main() {
  scanf("%lld", &x);
  dp();
  printf("%lld\\n", yer);
  return 0;
}

Error: TLE

Fixed submission:

#include <cstdio>
#include <iostream>

using namespace std;

int main() {
  long long int p = 100;
  long long int x;
  scanf("%lld", &x);
  int k = 0;
  while (1) {
    if (p != x) {
      p = p * 1.01;
      k++;
    }
    if (p == x)
      break;
  }
  printf("%d\\n", k);
  return 0;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x, a = 100;
  int i;
  cin >> x;
  for (i = 0; a < x; i++) {
    a = (long long)(1.01 * a);
  }
  cout << i;
}


Error: TLE

Fixed submission:

#include <iostream>
using namespace std;
int main() {
  int yen;
  int year = 0;
  int i = 100;
  cin >> yen;
  do {
    i += (0.01 * i);
    year++;
  } while (i < yen);
  cout << year << endl;
  return 0;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;

typedef long long ll;

#define optimize()                                                             \\
  ios_base::sync_with_stdio(0);                                                \\
  cin.tie(0);                                                                  \\
  cout.tie(0);
#define file()                                                                 \\
  freopen("input.txt", "r", stdin);                                            \\
  freopen("output.txt", "w", stdout);
#define tt                                                                     \\
  int t;                                                                       \\
  cin >> t;                                                                    \\
  while (t--)
#define nl cout << "\\n";
#define sp cout << " ";
#define rep(i, a, b) for (long long i = a; i < b; i++)

const int INF = 1e9 + 7;
const int MOD = 1e9 + 7;
double PI = 4 * atan(1);

int main() {
  optimize();

  unsigned long long n, p = 100, t = 0;

  cin >> n;

  while (p < n) {
    p += p / 100;
    t++;
  }

  cout << t;
  nl;

  return 0;
}


Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long num, solve;
  while (cin >> num) {
    int count = 0;
    solve = 100;
    while (num != solve) {
      int percentage = solve / 100;
      solve += percentage;
      num -= percentage;
      count++;
    }
    cout << count << endl;
  }
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>

using namespace std;

int main(void) {
  long long X;
  cin >> X;

  long long ykn = 100;

  int ans = 0;
  while (ykn < X) {
    ans++;
    ykn += ykn / 100;
  }

  cout << ans << endl;
  return 0;
}

Error: TLE

Fixed submission:

#include <bits/stdc++.h>

using namespace std;

int main(void) {
  long long X;
  cin >> X;

  long long ykn = 100;

  int ans = 0;
  while (ykn < X) {
    ans++;
    ykn = ykn * 101 / 100;
  }

  cout << ans << endl;
  return 0;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;
int main() {
  double i, c = 0, p;
  long long int a, n, x = 100;

  cin >> n;

  while (x < n) {
    x = x + x / 100;
    c++;
    // cout<<x<<endl;
  }

  cout << c << endl;
}


Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;
int main() {
  double i, c = 1;
  long long int a, n, x = 100;
  double p = 0;
  cin >> n;
  while (1) {
    p = x * pow(1.01, c);
    a = p;
    // cout<<p<<endl;
    // printf("%lf\\n",p);
    if (a == n)
      break;
    c++;
  }

  cout << c << endl;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;

int main(void) {
  long long x;
  long long money = 100;
  long long year = 0;
  cin >> x;

  while (money < x) {
    money = money + (money / 100);
    year++;
  }
  cout << year << endl;

  return (0);
}

Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;

int main(void) {
  int target;
  int year = 0;
  int money = 100;
  cin >> target;

  while (money < target) {
    money = money * 1.01;
    year++;
  }
  cout << year << endl;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ALL(a) (a).begin(), (a).end()
using namespace std;
using ll = long long;
using P = pair<int, int>;

int main() {
  ll x, m = 100, ans = 0;
  cin >> x;
  while (true) {
    m = m * 1.01;
    ++ans;
    if (m >= x)
      break;
  }
  cout << ans << endl;
}


Error: TLE

Fixed submission:

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ALL(a) (a).begin(), (a).end()
using namespace std;
using ll = long long;
using P = pair<int, int>;

int main() {
  ll x, m = 100, ans = 0;
  cin >> x;
  while (true) {
    m = m * 101 / 100;
    ++ans;
    if (m >= x)
      break;
  }
  cout << ans << endl;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
#define PI 3.1415926535897
using namespace std;
typedef long long ll;
const int INF = 1000000000;
const ll LINF = 1000000000000000000; // 1e18
const double EPS = 1e-10;

int main(void) {
  ll X;
  cin >> X;

  ll ans = 0;
  ll current = 100;
  while (current < X) {
    current += current / 100;
    ans++;
  }
  cout << ans << endl;
  return (0);
}

Error: TLE

Fixed submission:

#include <bits/stdc++.h>
#define PI 3.1415926535897
using namespace std;
typedef long long ll;
const int INF = 1000000000;
const ll LINF = 1000000000000000000; // 1e18
const double EPS = 1e-10;
int main(void) {
  ll X;
  cin >> X;

  int ans;
  int current = 100.0;
  for (int i = 0;; i++) {
    if (current >= X) {
      ans = i;
      break;
    }
    current += (current * 1 / 100);
    // printf("%d\\n", current);
  }
  cout << ans << endl;
  return (0);
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;

int main() {
  long long N;
  cin >> N;
  long long C = 0;
  long long M = 100;
  while (M < N) {
    M = M * 1.01;
    C++;
  }
  cout << C << endl;
}

Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;

int main() {
  long long N;
  cin >> N;
  int C = 0;
  long long M = 100;
  while (M < N) {
    M = M * 101 / 100;
    C++;
  }
  cout << C << endl;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define int long long
#define big 998244353
#define ff first
#define se second
#define pb push_back
#define pii pair<int, int>
#define fast                                                                   \\
  ios_base::sync_with_stdio(0);                                                \\
  cin.tie(0);                                                                  \\
  cout.tie(0)
#define PSET(x, y) fixed << setprecision(y) << x
#define mp make_pair
#define pi 3.141592653589
int power(int x, int y) {
  int r = 1, z = x;
  while (y) {
    if (y & 1)
      r *= z;
    z *= z;
    y = y >> 1;
  }
  return r;
}
int powerm(int x, int y, int p) {
  int r = 1;
  while (y) {
    if (y & 1)
      r = (r * x) % p;
    y = y >> 1;
    x = (x * x) % p;
  }
  return r % p;
}
int modinv(int x, int m) { return powerm(x, m - 2, m); }
int logarithm(int a, int b) {
  int x = 0;
  while (a > 1) {
    x++;
    a /= b;
  }
  return x;
}
int32_t main() {
  fast;
  int x;
  cin >> x;
  int curr = 100;
  int t = 0;
  while (curr < x) {
    t++;
    curr = curr * 1.01;
  }
  cout << t;
  return 0;
}

Error: TLE

Fixed submission:

#include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define int long long
#define big 998244353
#define ff first
#define se second
#define pb push_back
#define pii pair<int, int>
#define fast                                                                   \\
  ios_base::sync_with_stdio(0);                                                \\
  cin.tie(0);                                                                  \\
  cout.tie(0)
#define PSET(x, y) fixed << setprecision(y) << x
#define mp make_pair
#define pi 3.141592653589
int power(int x, int y) {
  int r = 1, z = x;
  while (y) {
    if (y & 1)
      r *= z;
    z *= z;
    y = y >> 1;
  }
  return r;
}
int powerm(int x, int y, int p) {
  int r = 1;
  while (y) {
    if (y & 1)
      r = (r * x) % p;
    y = y >> 1;
    x = (x * x) % p;
  }
  return r % p;
}
int modinv(int x, int m) { return powerm(x, m - 2, m); }
int logarithm(int a, int b) {
  int x = 0;
  while (a > 1) {
    x++;
    a /= b;
  }
  return x;
}
int32_t main() {
  fast;
  int x;
  cin >> x;
  int curr = 100;
  int t = 0;
  while (curr < x) {
    t++;
    curr = curr * 101 / 100;
  }
  cout << t;
  return 0;
}
Problem p02694 (C++) — buggy submission, verdict: Time Limit Exceeded

#include <cmath>
#include <iostream>
#include <string>
using namespace std;

int main() {
  long long int x;
  cin >> x;

  // double l = log(100 * x) / log(1.01);

  int i = 0;
  for (long long int a = 100; a < x; a *= 1.01) {
    i++;
  }
  cout << i << endl;

  return 0;
}

Error: TLE

Fixed submission:

#include <cmath>
#include <iostream>
#include <string>
using namespace std;

int main() {
  int x;
  cin >> x;

  // double l = log(100 * x) / log(1.01);

  int i = 0;
  for (int a = 100; a < x; a *= 1.01)
    i++;
  cout << i << endl;
  return 0;
}