buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
using namespace std;
int main() {
long X, M, C;
M = 100;
C = 0;
cin >> X;
for (;;) {
M += M / 100;
C++;
if (X < M) {
cout << C;
break;
}
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long X, M, C;
M = 100;
C = 0;
cin >> X;
for (;;) {
M += M / 100;
C++;
if (X <= M) {
cout << C;
break;
}
}
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 61 |
x = int(input())
money = 100
ans = 0
while(money < x):
ans += 1
money *= 1.01
print(ans)
| x = int(input())
money = 100
ans = 0
while(money < x):
ans += 1
money *= 1.01
money = int(money)
print(ans)
| [["+", 0, 52, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 31 |
#include <iostream>
using namespace std;
long long X;
long long money = 100;
int main() {
cin >> X;
int cnt = 0;
while (X >= money) {
money = money * 1.01;
cnt++;
}
cout << cnt;
} | #include <iostream>
using namespace std;
long long X;
long long money = 100;
int main() {
cin >> X;
int cnt = 0;
while (X > money) {
money = money * 1.01;
cnt++;
}
cout << cnt;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 52 |
<?php
$hope = trim(fgets(STDIN));
$x = 100;
$count = 0;
while($x <= $hope){
$x = $x * 1.01;
$count++;
}
echo $count; | <?php
$hope = trim(fgets(STDIN));
$x = 100;
$count = 0;
while($x < $hope){
$x = floor($x * 1.01);
$count++;
}
echo $count; | [["-", 0, 493, 0, 52, 15, 23, 0, 16, 17, 19], ["+", 0, 493, 0, 52, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 1, 0, 11, 12, 613, 63, 141], ["+", 0, 1, 0, 11, 12, 613, 3, 3, 0, 24], ["+", 0, 1, 0, 11, 12, 613, 3, 3, 0, 25]] | 6 | 48 |
#include <iostream>
using namespace std;
long long X;
long long sum = 100;
int ans = 0;
int main() {
cin >> X;
while (sum >= X) {
sum *= 1.01;
ans += 1;
}
cout << ans;
} | #include <iostream>
using namespace std;
long long X;
long long sum = 100;
int ans = 0;
int main() {
cin >> X;
while (sum < X) {
sum *= 1.01;
ans += 1;
}
cout << ans;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 51 |
#include <bits/stdc++.h>
#include <iostream>
#define fastIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
using namespace ... | #include <bits/stdc++.h>
#include <iostream>
#define fastIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
using namespace ... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22]] | 1 | 66 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X;
cin >> X;
long long sum = 100;
long long ans = 0;
while (sum < X) {
sum += sum * 0.01;
ans++;
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
cin >> X;
long long sum = 100;
long long ans = 0;
while (sum < X) {
sum += sum * 0.01;
ans++;
}
cout << ans << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 54 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long x, k = 100, ans = 0;
cin >> x;
while (k <= x) {
k = k * 1.01;
ans++;
}
cout << ans;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, k = 100, ans = 0;
cin >> x;
while (k < x) {
k = k * 1.01;
ans++;
}
cout << ans;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 49 |
x = int(input())
ct = 0
y = 100
while y < x:
y=y*1.01
ct+=1
print(ct) | x = int(input())
ct = 0
y = 100
while y < x:
y=int(y*1.01)
ct+=1
print(ct) | [["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 31 |
// inputに入力データ全体が入る
function Main(input) {
// 1行目がinput[0], 2行目がinput[1], …に入る
n = input;
var a = 100;
var year = 0;
while (a <= n) {
a = Math.floor(a * 1.01);
year = year + 1;
}
//出力
console.log(year);
}
//*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します)
Main(require("fs").readFileSync("/dev/stdi... | // inputに入力データ全体が入る
function Main(input) {
// 1行目がinput[0], 2行目がinput[1], …に入る
n = input;
var a = 100;
var year = 0;
while (a < n) {
a = Math.floor(a * 1.01);
year = year + 1;
}
//出力
console.log(year);
}
//*この行以降は編集しないでください(標準入出力から一度に読み込み、Mainを呼び出します)
Main(require("fs").readFileSync("/dev/stdin... | [["-", 8, 556, 0, 52, 15, 23, 0, 16, 17, 19], ["+", 8, 556, 0, 52, 15, 23, 0, 16, 17, 18]] | 2 | 78 |
#include <bits/stdc++.h>
// In wrong answers we believe//
#define db double
#define ll long long int
#define ld long long double
//#define int long long int
#define ull unsigned long long
#define vii vector<int>
#define vll vector<ll>
#define pii pair<int, int>
#define fi first
#define se second
#define rep(i, a, n)... | #include <bits/stdc++.h>
// In wrong answers we believe//
#define db double
#define ll long long int
#define ld long long double
//#define int long long int
#define ull unsigned long long
#define vii vector<int>
#define vll vector<ll>
#define pii pair<int, int>
#define fi first
#define se second
#define rep(i, a, n)... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 569 |
import math
x = int(input())
a = 100
cnt = 0
#file = open('test.txt', 'w')
while a <= x:
a = a*1.01
a = int(a)
b = str(a)
# file.write(b + '\n')
cnt = cnt + 1
#file.close()
print(cnt) | import math
x = int(input())
a = 100
cnt = 0
#file = open('test.txt', 'w')
while a < x:
a = a*1.01
a = int(a)
b = str(a)
# file.write(b + '\n')
cnt = cnt + 1
#file.close()
print(cnt) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 50 |
#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() {
int n;
cin >> n;
int a = 100;
int count = 1;
while (true) {
a += a / 100;
if (a >= n)
break;
count++;
}
cout << count << endl;
... | #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() {
ll n;
cin >> n;
ll a = 100;
int count = 1;
while (true) {
a += a / 100;
if (a >= n)
break;
count++;
}
cout << count << endl;
re... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 85 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int p = 100, n, s = 0;
cin >> n;
while (p < n) {
p += p / 100;
s++;
}
cout << s << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll p = 100, n, s = 0;
cin >> n;
while (p < n) {
p += p / 100;
s++;
}
cout << s << endl;
return 0;
} | [["+", 36, 36, 36, 36, 0, 30, 0, 58, 0, 148], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 141, 22], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 53 |
n=int(input())
k=100
count=0
while True :
k=k+(k/100)
count+=1
if k>=n :
print(count)
break | n=int(input())
k=100
count=0
while True :
k=k+(k//100)
count+=1
if k>=n :
print(count)
break | [["-", 0, 662, 12, 657, 12, 23, 0, 657, 17, 85], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 17, 676]] | 5 | 39 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
long long int n;
cin >> n;
long long int m = 100;
int ans = 1;
while (m <= n) {
m += m / 100;
ans++;
}... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
long long int n;
cin >> n;
long long int m = 100;
int ans = 0;
while (m < n) {
m += m / 100;
ans++;
}
... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["-", 8, 9, 0, 1, 0, 16, 12, 16, 17, 33], ["-", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]] | 1 | 82 |
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define STR 1000
int main() {
long long x;
long long cnt = 0;
double money = 100;
scanf("%lld", &x);
while (money < x) {
money += money / 100;
cnt += 1;
}
printf("%lld", cnt);
return 0;
} | #include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define STR 1000
int main() {
long long x;
long long cnt = 0;
long long money = 100;
scanf("%lld", &x);
while (money < x) {
money += money / 100;
cnt += 1;
}
printf("%lld", cnt);
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 0 | 74 |
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
using namespace std;
int main() {
int X, ans = 0, Q = 100;
cin >> X;
while (Q < X) {
Q += Q / 100;
ans++;... | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
using namespace std;
int main() {
long long X, ans = 0, Q = 100;
cin >> X;
while (Q < X) {
Q += Q / 100;
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 60 |
# -*- coding: utf-8 -*-
# 整数の入力
x = int(input())
money = 100
year = 0
while (money <= x):
money = int(money * 1.01)
year = year + 1
print('{}'.format(year))
| # -*- coding: utf-8 -*-
# 整数の入力
x = int(input())
money = 100
year = 0
while (money < x):
money = int(money * 1.01)
year = year + 1
print('{}'.format(year))
| [["-", 0, 656, 0, 52, 15, 23, 0, 666, 667, 19], ["+", 0, 656, 0, 52, 15, 23, 0, 666, 667, 18]] | 5 | 47 |
#include <bits/stdc++.h>
#define ll uint64_t
using namespace std;
int main() {
ll X, cnt = 0;
ll dep = 100;
cin >> X;
while (dep <= X) {
dep += (dep * 0.01);
cnt++;
}
cout << cnt << endl;
} | #include <bits/stdc++.h>
#define ll uint64_t
using namespace std;
int main() {
ll X, cnt = 0;
ll dep = 100;
cin >> X;
while (dep < X) {
dep += (dep * 0.01);
cnt++;
}
cout << cnt << endl;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 56 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define all(v) ((v).begin()), ((v).end())
#define clr(a, b) memset(a, b, sizeof(a))
#define sz(a) (int)(a).size()
#define el '\n';
#define loop(i, n) for (int i = 0; i < int(n); i++)
#define PI acos(-1)
#define pb push_back
#define F first
#define S s... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define all(v) ((v).begin()), ((v).end())
#define clr(a, b) memset(a, b, sizeof(a))
#define sz(a) (int)(a).size()
#define el '\n';
#define loop(i, n) for (int i = 0; i < int(n); i++)
#define PI acos(-1)
#define pb push_back
#define F first
#define S s... | [["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 274 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int X;
cin >> X;
ll money = 100;
int count = 0;
while (money < X) {
money += money / 100;
count++;
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll X;
cin >> X;
ll money = 100;
int count = 0;
while (money < X) {
money += money / 100;
count++;
}
cout << count << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 55 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long mon = 100;
for (int i = 1; i <= 4000; i++) {
mon = mon + mon / 100;
if (mon > x) {
cout << i << endl;
return 0;
}
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long mon = 100;
for (int i = 1; i <= 4000; i++) {
mon = mon + mon / 100;
if (mon >= x) {
cout << i << endl;
return 0;
}
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 67 |
x = int(input())
money = 100
year = 0
while money < x:
money += (money / 100)
year += 1
print(year)
| x = int(input())
money = 100
year = 0
while money < x:
money += int(money / 100)
year += 1
print(year)
| [["+", 8, 196, 0, 1, 0, 677, 12, 652, 63, 22]] | 5 | 33 |
#include <iostream>
using namespace std;
int main() {
long long X;
long long A = 100;
int i = 0;
cin >> X;
while (A <= X) {
A += A / 100;
i++;
}
cout << i << endl;
}
| #include <iostream>
using namespace std;
int main() {
long long X;
long long A = 100;
int i = 0;
cin >> X;
while (A < X) {
A += A / 100;
i++;
}
cout << i << endl;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 54 |
a = int(100)
X = int(input())
c = 0
while a <= X :
a = a + a * 0.01
a = int(a)
c = c + 1
print(c) | a = int(100)
X = int(input())
c = 0
while a < X :
a = a + a * 0.01
a = int(a)
c = c + 1
print(c) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 44 |
a = int(input())
b = 100
c = 0
while true:
b += int(b / 100)
c += 1
if b >= a:
print(c)
exit() | a = int(input())
b = 100
c = 0
while True:
b += int(b / 100)
c += 1
if b >= a:
print(c)
exit() | [["-", 36, 36, 36, 36, 0, 656, 0, 52, 15, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 15, 146]] | 5 | 40 |
#include <bits/stdc++.h>
using namespace std;
int main() {
unsigned long long a = 100, x, y = 0, ans = 0;
cin >> x;
while (a >= x) {
a *= 1.01;
ans += 1;
}
cout << ans;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
unsigned long long a = 100, x, y = 0, ans = 0;
cin >> x;
while (a < x) {
a *= 1.01;
ans += 1;
}
cout << ans;
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 56 |
X = int(input())
year = 0
total = 100
while total < X:
total = round(total + 0.01 * total)
year += 1
print(year) | X = int(input())
year = 0
total = 100
while total < X:
total = total + int(0.01 * total)
year += 1
print(year) | [["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22], ["+", 0, 662, 12, 657, 12, 652, 3, 4, 0, 24]] | 5 | 36 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X;
int B = 100;
cin >> X;
int count = 0;
while (X > B) {
B += B / 100;
count++;
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
long long B = 100;
cin >> X;
long long count = 0;
while (X > B) {
B += B / 100;
count++;
}
cout << count << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 52 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, n;
n = 0;
cin >> x;
for (int i = 100; i < x; n++)
i = i + (i / 100);
cout << n;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
unsigned long x, n;
n = 0;
cin >> x;
for (unsigned long i = 100; i < x; n++)
i = i + (i / 100);
cout << n;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 7, 10, 43, 39, 40], ["+", 8, 9, 0, 7, 10, 43, 39, 86, 0, 87], ["+", 8, 9, 0, 7, 10, 43, 39, 86, 0, 96]] | 1 | 56 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
int a = 100, b, c = 0;
while (a < x) {
a = a + a / 100;
c++;
}
cout << c;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int x;
cin >> x;
long long int a = 100, b, c = 0;
while (a < x) {
a = a + a / 100;
c++;
}
cout << c;
}
| [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 53 |
import math
X = int(input())
deposit = 100
cnt = 0
for i in range(1,100**18):
deposit = math.floor(deposit * 1.01)
cnt += 1
if deposit >= X:
print(deposit)
break
print(cnt)
| import math
X = int(input())
deposit = 100
cnt = 0
for i in range(1,100**18):
deposit = math.floor(deposit * 1.01)
cnt += 1
if deposit >= X:
break
print(cnt)
| [["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 55 |
X = int(input())
yen = 100
count = 0
while True:
if yen >= X:
break
yen *= 1.01
count += 1
print(count)
| X = int(input())
yen = 100
count = 0
while True:
if yen >= X:
break
yen += yen // 100
count += 1
print(count)
| [["-", 0, 52, 8, 196, 0, 1, 0, 677, 17, 108], ["-", 0, 52, 8, 196, 0, 1, 0, 677, 12, 531], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 8, 196, 0, 1, 0, 677, 12, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 677, 12, 657, 17, 676], ["+", 8, 196, 0, 1, 0, 677, 12, 657, 12, 612]] | 5 | 33 |
#include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define rrep(i, n) for (ll i = 1; i <= (n); ++i)
#define drep(i, n) for (ll i = (n)-1; i >= 0; --i)
#define all(v) v.begin(), v.end()
#define len(x) (ll)(x).length()
#define maxs(x, y) x = max(x, y)
#define mins(x... | #include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define rrep(i, n) for (ll i = 1; i <= (n); ++i)
#define drep(i, n) for (ll i = (n)-1; i >= 0; --i)
#define all(v) v.begin(), v.end()
#define len(x) (ll)(x).length()
#define maxs(x, y) x = max(x, y)
#define mins(x... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 17, 108], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 107], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 9, 0, 1, 0, 11, 1... | 1 | 294 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long x, a = 100, ans = 0;
cin >> x;
while (a > x) {
a += a / 100;
ans++;
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, a = 100, ans = 0;
cin >> x;
while (a < x) {
a += a / 100;
ans++;
}
cout << ans << endl;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 51 |
X=int(input())
n=0
m=100
while True:
n+=1
m*=101/100
if m >=X:
print(n)
break
| X = int(input())
n=0
m=100
while True:
n+=1
m+=m//100
if m >=X:
print(n)
break | [["-", 0, 52, 8, 196, 0, 1, 0, 677, 17, 108], ["-", 8, 196, 0, 1, 0, 677, 12, 657, 31, 612], ["-", 8, 196, 0, 1, 0, 677, 12, 657, 17, 85], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 8, 196, 0, 1, 0, 677, 12, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 677, 12, 657, 17, 676]] | 5 | 35 |
x = int(input())
i = 0
k = 100
while True:
if(k>=x):
break
else:
k*=1.01
i+=1
print(i)
| x = int(input())
i = 0
k = 100
while True:
if(k>=x):
break
else:
k*=1.01
k=k//1
i+=1
print(i) | [["+", 75, 76, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 37 |
x = int(input())
a = 100
i = 0
while a < x:
i += 1
a += a // 100
print(math.floor(i))
| x = int(input())
a = 100
i = 0
while a < x:
i += 1
a += a // 100
print(i)
| [["-", 0, 652, 3, 4, 0, 652, 63, 319, 500, 22], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 36 |
a=gets.chomp
m=100
c=0
while a>m
m+=m/100
c+=1
end
p c
| a=gets.to_i
m=100
c=0
while a>m
m+=m/100
c+=1
end
p c | [["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]] | 4 | 26 |
import math
from decimal import Decimal
X = int(input())
now = 100
year = 0
while True:
if now >= X:
break
#now = int(now * Decimal("1.01"))
#now = int(now * round(Decimal(1.01), 2))
now += now / 100
year += 1
print(year)
| import math
from decimal import Decimal
X = int(input())
now = 100
year = 0
while True:
if now >= X:
break
#now = int(now * Decimal("1.01"))
#now = int(now * round(Decimal(1.01), 2))
now += now // 100
year += 1
print(year)
| [["-", 8, 196, 0, 1, 0, 677, 12, 657, 17, 85], ["+", 8, 196, 0, 1, 0, 677, 12, 657, 17, 676]] | 5 | 43 |
#include <iostream>
using namespace std;
int main() {
long long x, yen = 100, ans = 0;
cin >> x;
while (yen <= x) {
yen += yen / 100;
ans++;
}
cout << ans << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
long long x, yen = 100, ans = 0;
cin >> x;
while (yen < x) {
yen += yen / 100;
ans++;
}
cout << ans << endl;
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 54 |
X = int(input())
total = 100
count = 0
while total <= X:
total += total//100
count += 1
print(count) | X = int(input())
total = 100
count = 0
while total < X:
total += total//100
count += 1
print(count)
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 31 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int X;
int Y = 100;
int C = 0;
cin >> X;
while (Y < X) {
Y += Y / 100;
C++;
}
cout << (C) << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
long X;
long Y = 100;
long C = 0;
cin >> X;
while (Y < X) {
Y += Y / 100;
C++;
}
cout << (C) << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 62 |
a = list(map(int,open(0).read().split()))
i = 100
c = 0
while i < a[0]:
i = int(i * 101 / 100)
c += 1
print(c) | a = list(map(int,open(0).read().split()))
i = 100
c = 0
while i < a[0]:
i += i//100
c += 1
print(c) | [["-", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["-", 12, 652, 3, 4, 0, 657, 31, 657, 17, 48], ["-", 12, 652, 3, 4, 0, 657, 31, 657, 12, 612], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 85], [... | 5 | 53 |
X=int(input())
Y=100
num=0
while Y<X:
Y += Y//100
num += 1
print(Y)
print(num) | X=int(input())
Y=100
num=0
while Y<X:
Y += Y//100
num += 1
print(num) | [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 35 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long p = 100;
int cnt = 0;
while (p <= x) {
p += p / 100;
cnt++;
}
cout << cnt << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long p = 100;
int cnt = 0;
while (p < x) {
p += p / 100;
cnt++;
}
cout << cnt << endl;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 54 |
#include <bits/stdc++.h>
int main() {
int a;
std::cin >> a;
long takahashi_money = 100;
int count = 0;
while (takahashi_money < a) {
takahashi_money = takahashi_money + takahashi_money / 100;
count++;
}
std::cout << count << std::endl;
return 0;
}
| #include <bits/stdc++.h>
int main() {
long long a;
std::cin >> a;
long takahashi_money = 100;
int count = 0;
while (takahashi_money < a) {
takahashi_money = takahashi_money + takahashi_money / 100;
count++;
}
std::cout << count << std::endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 59 |
x = int(input())
s = 0
t = 100
while True:
if t >= x:
break
t = t*1.01
s = s + 1
print(s) | x = int(input())
s = 0
t = 100
while True:
if t >= x:
break
t = int(t*1.01)
s = s + 1
print(s) | [["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 37 |
#include <stdio.h>
int main(void) {
long long int x;
double a = 100;
scanf("%lld", &x);
int y = 0;
while (a < x) {
a = a + a / 100;
y++;
}
printf("%d", y);
return 0;
} | #include <stdio.h>
int main(void) {
long long int x;
long long int a = 100;
scanf("%lld", &x);
int y = 0;
while (a < x) {
a = a + a / 100;
y++;
}
printf("%d", y);
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]] | 0 | 65 |
X = int(input())
money, cnt = 100, 0
while money < X:
cnt += 1
money += money/100
print(cnt) | X = int(input())
money, cnt = 100, 0
while money < X:
cnt += 1
money += money//100
print(cnt) | [["-", 8, 196, 0, 1, 0, 677, 12, 657, 17, 85], ["+", 8, 196, 0, 1, 0, 677, 12, 657, 17, 676]] | 5 | 32 |
#include <algorithm>
#include <bits/stdc++.h>
#include <vector>
using namespace std;
int main() {
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
int x;
cin >> x;
long long m = 100;
int ans = 0;
while (m < x) {
m += (m / 100);
ans++;
}
cout << ans << "\n";
return 0;
} | #include <algorithm>
#include <bits/stdc++.h>
#include <vector>
using namespace std;
int main() {
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
long long x;
cin >> x;
long long m = 100;
int ans = 0;
while (m < x) {
m += (m / 100);
ans++;
}
cout << ans << "\n";
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 78 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
long x = scan.nextInt();
long m = 100;
int ans = 0;
while (m < x) {
m = m + m / 100;
ans++;
}
System.out.println(ans);
}
} | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
long x = scan.nextLong();
long m = 100;
int ans = 0;
while (m < x) {
m = m + m / 100;
ans++;
}
System.out.println(ans);
}
}
| [["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22]] | 3 | 82 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define all(v) v.begin(), v.end()
int main() {
ll X;
ll a = 100;
ll count = 0;
while (a < X) {
a += a / 100;
count++;
}
cout << count << endl;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define all(v) v.begin(), v.end()
int main() {
ll X;
cin >> X;
ll a = 100;
ll count = 0;
while (a < X) {
a += a / 100;
count++;
}
cout << count << endl;
}
| [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 60 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
#define PI 3.14159265358979323846
using namespace std;
int main() {
long long x, count = 0;
cin >> x;
long long balance = 100;
while (balance <= x) {
balance += balance / 100;
count++;
}
cout << count <... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
#define PI 3.14159265358979323846
using namespace std;
int main() {
long long x, count = 0;
cin >> x;
long long balance = 100;
while (balance < x) {
balance += balance / 100;
count++;
}
cout << count <<... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 64 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
long long int x, ans = 0, y = 100;
cin >> x;
while (x >= y) {
y += y / 100;
ans++;
}
cout << ans;
} | #include <iostream>
#include <vector>
using namespace std;
int main() {
long long int x, ans = 0, y = 100;
cin >> x;
while (x > y) {
y += y / 100;
ans++;
}
cout << ans;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 52 |
x=int(input())
c=100
a=0
while c<x:
c=c+c/100
#c=int(c)
a+=1
print(a) | x=int(input())
c=100
a=0
while c<x:
c+=c//100
a+=1
print(a) | [["-", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["-", 0, 1, 0, 662, 12, 657, 12, 657, 17, 85], ["+", 8, 196, 0, 1, 0, 677, 12, 657, 17, 676]] | 5 | 34 |
#include <bits/stdc++.h>
using namespace std;
int main() {
uint64_t n;
cin >> n;
uint64_t t = 100;
uint64_t count = 0;
while (n <= t) {
t += t * 0.01;
count++;
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
uint64_t n;
cin >> n;
uint64_t t = 100;
uint64_t count = 0;
while (n > t) {
t += t * 0.01;
count++;
}
cout << count << endl;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 52 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
int p = 100;
int cnt = 0;
while (p < x) {
p += p / 100;
cnt++;
}
cout << cnt << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long p = 100;
int cnt = 0;
while (p < x) {
p += p / 100;
cnt++;
}
cout << cnt << endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 55 |
#include <stdio.h>
int main() {
long long x, a[5000];
scanf("%d", &x);
a[0] = 100;
for (int i = 1; i > 0; i++) {
a[i] = a[i - 1] + (a[i - 1] - (a[i - 1] % 100)) / 100;
if (a[i] >= x) {
printf("%d", i);
return 0;
}
}
}
| #include <stdio.h>
int main() {
long long x, a[5000];
scanf("%lld", &x);
a[0] = 100;
for (int i = 1; i > 0; i++) {
a[i] = a[i - 1] + (a[i - 1] - (a[i - 1] % 100)) / 100;
if (a[i] >= x) {
printf("%d", i);
return 0;
}
}
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 107 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
x = int(input())
base = 100
year = 0
while x <= base:
year += 1
base = int(base * 1.01)
print(year)
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
x = int(input())
base = 100
year = 0
while x > base:
year += 1
base = int(base * 1.01)
print(year) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]] | 5 | 36 |
#include <bits/stdc++.h>
using namespace std;
long long int x, p = 100;
long double res;
int main() {
cin >> x;
int cnt = 0;
while (p <= x) {
p += p / 100;
cnt++;
}
cout << cnt << endl;
}
| #include <bits/stdc++.h>
using namespace std;
long long int x, p = 100;
long double res;
int main() {
cin >> x;
int cnt = 0;
while (p < x) {
p += p / 100;
cnt++;
}
cout << cnt << endl;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 57 |
X = int(input())
T = 100
InterestRate = 1.01
n = 0
while True:
T = int(T * InterestRate)
if T >= X:
print(n + 1)
break
n += 1
print("DONE")
| X = int(input())
T = 100
InterestRate = 1.01
n = 0
while True:
T = int(T * InterestRate)
if T >= X:
print(n + 1)
break
n += 1
| [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 49 |
import math
X=int(input())
origin=100
count=0
while(origin<X):
origin+=int(origin*0.01)
print(origin)
count+=1
print(count) | import math
X=int(input())
origin=100
count=0
while(origin<X):
origin+=int(origin*0.01)
count+=1
print(count) | [["-", 0, 52, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 42 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
int c = 100;
for (int i = 1; i < 5000; i++) {
c *= 1.01;
if (c >= x) {
cout << i << endl;
break;
}
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long x;
cin >> x;
long c = 100;
for (int i = 1; i < 5000; i++) {
c *= 1.01;
if (c >= x) {
cout << i << endl;
break;
}
}
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 60 |
import numpy as np
import math
x = int(input())
ans = 0
now = 100
for i in range(1,10**100):
now = int(x*1.01)
if now >= x:
ans = i
break
print(ans) | import numpy as np
import math
x = int(input())
ans = 0
now = 100
for i in range(1,10**100):
now = int(now*1.01)
if now >= x:
ans = i
break
print(ans) | [["-", 0, 662, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 31, 22]] | 5 | 53 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n;
ll now = 100, ans = 0;
while (1) {
now += now / 100;
ans++;
if (now >= n) {
cout << ans << endl;
return 0;
}
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n;
ll now = 100, ans = 0;
cin >> n;
while (1) {
now += now / 100;
ans++;
if (now >= n) {
cout << ans << endl;
return 0;
}
}
return 0;
}
| [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 64 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, now = 100, ans = 0;
cin >> x;
while (now < x) {
now += now / 100;
ans++;
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, now = 100, ans = 0;
cin >> x;
while (now < x) {
now += now / 100;
ans++;
}
cout << ans << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 50 |
#include <bits/stdc++.h>
using namespace std;
int main() {
unsigned long long X;
int T;
cin >> X;
T = 100;
for (int i = 1;; i++) {
T = T + T * 1 / 100;
if (X <= T) {
cout << i << endl;
return 0;
}
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
long long T;
cin >> X;
T = 100;
for (int i = 1;; i++) {
T = T + T * 1 / 100;
if (X <= T) {
cout << i << endl;
return 0;
}
}
}
| [["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 68 |
X = int(input())
now = 100
year = 0
while now < X:
X *= 1.01
#X = int(X)
X -= X%1
year += 1
print(year) | X = int(input())
now = 100
year = 0
while now < X:
now *= 1.01
#X = int(X)
now -= now%1
year += 1
print(year)
| [["-", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 31, 22], ["-", 8, 196, 0, 1, 0, 677, 12, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 677, 12, 657, 31, 22]] | 5 | 35 |
package main
import (
"fmt"
"math"
)
func main() {
run(1000000000000000000)
}
func fromConsole() {
var x int
fmt.Scan(&x)
run(x)
}
func run(x int) {
i := 0
r := 100
for r < x {
i++
r += calcRishi(r)
}
fmt.Println(i)
}
func calcRishi(i int) int {
f := math.Trunc(float64(i) * 0.01)
return int(f)
}
| package main
import (
"fmt"
"math"
)
func main() {
fromConsole()
}
func fromConsole() {
var x int
fmt.Scan(&x)
run(x)
}
func run(x int) {
i := 0
r := 100
for r < x {
i++
r += calcRishi(r)
}
fmt.Println(i)
}
func calcRishi(i int) int {
f := math.Trunc(float64(i) * 0.01)
return int(f)
}
| [["-", 0, 435, 8, 196, 0, 1, 0, 2, 63, 22], ["+", 0, 435, 8, 196, 0, 1, 0, 2, 63, 22], ["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 433]] | 7 | 122 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
int a = 100;
cin >> n;
int count = 0;
for (int i = 0; i < n; i++) {
a += a / 100;
count++;
if (a >= n)
break;
}
cout << count << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t n;
int64_t a = 100;
cin >> n;
int count = 0;
for (int i = 0; i < n; i++) {
a += a / 100;
count++;
if (a >= n)
break;
}
cout << count << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 68 |
x=int(input())
ans = 100
for i in range(1,10**18+1):
ans *= 1.01
if ans >= x:
print(i)
exit() | x=int(input())
ans = 100
for i in range(1,10**18+1):
ans = int(ans*1.01)
if ans >= x:
print(i)
exit() | [["-", 0, 7, 8, 196, 0, 1, 0, 677, 17, 108], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 40 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 0x3f3f3f3f;
const int MOD = 1e9 + 7;
const int MAXN = 105;
int main() {
ll x, res = 0;
double t = 100;
scanf("%I64d", &x);
while (t < x) {
t *= 1.01;
t = (ll)t;
res++;
// cout<<t<<endl;
}
printf("%I64d\n", re... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 0x3f3f3f3f;
const int MOD = 1e9 + 7;
const int MAXN = 105;
int main() {
ll x, res = 0;
double t = 100;
scanf("%lld", &x);
while (t < x) {
t *= 1.01;
t = (ll)t;
res++;
// cout<<t<<endl;
}
printf("%lld\n", res)... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 95 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X;
long long sum = 100;
cin >> X;
for (int i = 1; i < X; i++) {
sum *= 1.01;
if (sum >= X) {
cout << i << endl;
break;
}
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
long long sum = 100;
cin >> X;
for (long long i = 1; i < X; i++) {
sum *= 1.01;
if (sum >= X) {
cout << i << endl;
break;
}
}
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 7, 10, 43, 39, 40], ["+", 8, 9, 0, 7, 10, 43, 39, 86, 0, 96]] | 1 | 61 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long amount = 100;
int count = 0;
while (x >= amount) {
amount = amount * 1.01;
count++;
}
cout << count << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long amount = 100;
int count = 0;
while (x > amount) {
amount += amount * 0.01;
count++;
}
cout << count << endl;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 107], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 54 |
import static java.lang.System.out;
import java.io.*;
public final class Main {
public static void main(String[] args) throws IOException {
try (var istr = new InputStreamReader(System.in);
var br = new BufferedReader(istr)) {
long k = Long.parseLong(br.readLine());
double i = 100;
in... | import static java.lang.System.out;
import java.io.*;
public final class Main {
public static void main(String[] args) throws IOException {
try (var istr = new InputStreamReader(System.in);
var br = new BufferedReader(istr)) {
long k = Long.parseLong(br.readLine());
double i = 100;
in... | [["-", 0, 52, 8, 196, 0, 1, 0, 11, 17, 107], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 17, 32]] | 3 | 119 |
#include <bits/stdc++.h>
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
#define debug(x) cerr << #x << ": " <... | #include <bits/stdc++.h>
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
#define debug(x) cerr << #x << ": " <... | [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 124 |
import math
x = int(input())
money = 100
i = 0
while True:
money = math.floor(money*1.01)
i += 1
if money > x:
break
print(i) | import math
x = int(input())
money = 100
i = 0
while True:
money = math.floor(money*1.01)
i += 1
if money >= x:
break
print(i) | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 42 |
#!/usr/bin/env python3
# 初めて参照しました。
# ありがとう!
x = int(input())
p = 100
i = 0
while p < x:
p += p / 100
i += 1
print(i)
| #!/usr/bin/env python3
# 初めて参照しました。
# ありがとう!
x = int(input())
p = 100
i = 0
while p < x:
p += int(p / 100)
i += 1
print(i)
| [["+", 8, 196, 0, 1, 0, 677, 12, 652, 63, 22], ["+", 0, 1, 0, 677, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 677, 12, 652, 3, 4, 0, 25]] | 5 | 34 |
X = int(input())
a = 100
n = 0
while a < X:
a = a * 1.01
n = n + 1
print(n)
| X = int(input())
a = 100
n = 0
while a < X:
a = int(a * 1.01)
n = n + 1
print(n)
| [["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 33 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X;
cin >> X;
int i = 100;
int O = 0;
while (X > i) {
i += i / 100;
O++;
}
cout << O << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
cin >> X;
long long i = 100, O = 0;
while (X > i) {
i += i / 100;
O++;
}
cout << O << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21]] | 1 | 52 |
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
long long x;
int c = 0;
long long y = 100;
cin >> x;
while (y <= x) {
y = 1.01 * y;
c = c + 1;
}
cout << c << endl;
return 0;
} | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
long long x;
int c = 0;
long long y = 100;
cin >> x;
while (y < x) {
y = 1.01 * y;
c = c + 1;
}
cout << c << endl;
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 64 |
#include <math.h>
#include <stdio.h>
int main(void) {
long long int i, X, kane = 100;
scanf("%d", &X);
for (i = 0; X > kane; i++) {
kane = kane + kane / 100;
}
printf("%d\n", i);
return 0;
} | #include <math.h>
#include <stdio.h>
int main(void) {
long long int i, X, kane = 100;
scanf("%lld", &X);
for (i = 0; X > kane; i++) {
kane = kane + kane / 100;
}
printf("%lld\n", i);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 68 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
const int MOD = 1e9 + 7;
int main() {
int x;
cin >> x;
ll n = 1;
ll p = 100;
while (true) {
// double a=100*pow(1.01,n);
double ci = p / 100;
p += ci;
if (p >= x) {
cout << n << endl;
break;
}
n += 1;
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
const int MOD = 1e9 + 7;
int main() {
ll x;
cin >> x;
ll n = 1;
ll p = 100;
while (true) {
// double a=100*pow(1.01,n);
double ci = p / 100;
p += ci;
if (p >= x) {
cout << n << endl;
break;
}
n += 1;
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 82 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
const int MOD = 1e9 + 7;
int main() {
int x;
cin >> x;
ll n = 0;
ll p = 100;
while (p < x) {
p = floor(1.01 * p);
n++;
}
cout << n << endl;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
const int MOD = 1e9 + 7;
int main() {
ll x;
cin >> x;
ll n = 0;
ll p = 100;
while (p < x) {
p = floor(1.01 * p);
n++;
}
cout << n << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 70 |
a=int(input())
c=0
N=100
while True:
N=int(N*1.01)
c+=1
if N > a:
print(c)
break | a=int(input())
c=0
N=100
while True:
N=int(N*1.01)
c+=1
if N >= a:
print(c)
break
| [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 38 |
import math
X = int(input())
original = 100
n = 0
while True:
n+=1
original = math.ceil(original * 1.01)
if original >= X:
break
print(n) | X = int(input())
original = 100
n = 0
while True:
n+=1
original = int(original * 1.01)
if original >= X:
break
print(n)
| [["-", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["-", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 500, 22], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22]] | 5 | 42 |
import static java.util.Collections.list;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.lang.*;
import java.nio.file.Files;
impo... | import static java.util.Collections.list;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.lang.*;
import java.nio.file.Files;
impo... | [["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 19], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 18]] | 3 | 589 |
#include <bits/stdc++.h>
using namespace std;
int main() {
double x;
cin >> x;
double ini = 100;
int cont = 0;
while (ini <= x) {
ini = (ini + floor(ini / 100));
// cout << ini << "\n";
cont++;
}
cout << cont << "\n";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
double x;
cin >> x;
double ini = 100;
int cont = 0;
while (ini < x) {
ini = (ini + floor(ini / 100));
// cout << ini << "\n";
cont++;
}
cout << cont << "\n";
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 62 |
import math
X = int(input())
Takahashi_money =100
num = 0
while Takahashi_money <= X:
Takahashi_money = Takahashi_money * 1.01
Takahashi_money = math.floor(Takahashi_money)
num += 1
print(num) | import math
X = int(input())
Takahashi_money =100
num = 0
while Takahashi_money < X:
Takahashi_money = Takahashi_money * 1.01
Takahashi_money = math.floor(Takahashi_money)
num += 1
print(num) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 41 |
#include <bits/stdc++.h>
using namespace std;
void solve(long long X) {
long long ans = 100, tot = 0;
while (ans <= X) {
ans = ans + ans / 100;
tot++;
}
cout << tot << endl;
}
// Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools (tips: You
// use the default template now. You can remo... | #include <bits/stdc++.h>
using namespace std;
void solve(long long X) {
long long ans = 100, tot = 0;
while (ans < X) {
ans = ans + ans / 100;
tot++;
}
cout << tot << endl;
}
// Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools (tips: You
// use the default template now. You can remov... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 81 |
#include <iostream>
using namespace std;
int x;
int main() {
cin >> x;
unsigned long long sum = 100, count = 0;
while (x > sum) {
sum *= 1.01;
count += 1;
}
cout << count << endl;
}
| #include <iostream>
using namespace std;
unsigned long long x;
int main() {
cin >> x;
unsigned long long sum = 100, count = 0;
while (x > sum) {
sum *= 1.01;
count += 1;
}
cout << count << endl;
}
| [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 87], ["+", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96]] | 1 | 52 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
long double x, y = 100;
int cnt = 0;
long long int ans;
cin >> x;
while (x > y) {
y = y * 1.01;
cnt++;
}
// y = (log(x)-log(100))/log(1.01) + 1;
cout << cnt << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
long long int x, y = 100;
int cnt = 0;
long long int ans;
cin >> x;
while (x > y) {
y = y * 1.01;
cnt++;
}
// y = (log(x)-log(100))/log(1.01) + 1;
cout << cnt << endl;
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]] | 1 | 67 |
#include <bits/stdc++.h>
using namespace std;
int main() {
uint64_t X;
cin >> X;
uint64_t m = 100;
uint64_t count = 0;
while (X >= m) {
m *= 1.01;
count++;
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
uint64_t X;
cin >> X;
uint64_t m = 100;
uint64_t count = 0;
while (X > m) {
m *= 1.01;
count++;
}
cout << count << endl;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 50 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rept(i, k, n) for (int i = (k); i < (int)(n); i++)
typedef long long ll;
typedef pair<int, int> Pii;
typedef pair<long long, long long> Pll;
int main() {
ll a = 100, x;
cin >> x;
for (int i = 0; i < x; i++... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rept(i, k, n) for (int i = (k); i < (int)(n); i++)
typedef long long ll;
typedef pair<int, int> Pii;
typedef pair<long long, long long> Pll;
int main() {
ll a = 100, x;
cin >> x;
for (int i = 0; i < x; i++... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 108 |
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long year = 0;
double kingaku = 100;
do {
kingaku = kingaku * 1.01;
kingaku = Math.floor(kingaku);
year++;
} while (kingaku <= ... | import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
long year = 0;
double kingaku = 100;
do {
kingaku = kingaku * 1.01;
kingaku = Math.floor(kingaku);
year++;
} while (kingaku < x... | [["-", 8, 196, 0, 82, 15, 23, 0, 16, 17, 19], ["+", 8, 196, 0, 82, 15, 23, 0, 16, 17, 18]] | 3 | 91 |
X=gets.to_i()
p=100
count=0
while p<=X do
p=(p*1.01).floor
count=count+1
end
puts(count)
| X=gets.to_i()
p=100
count=0
while p<X do
p=(p*1.01).floor
count=count+1
end
puts(count)
| [["-", 36, 36, 0, 493, 0, 89, 15, 738, 17, 19], ["+", 36, 36, 0, 493, 0, 89, 15, 738, 17, 18]] | 4 | 37 |
X = input()
Money = 100
counter = 0
while int(X) > Money:
Money = Money*1.01
counter = counter + 1
print(counter) | X = input()
Money = 100
counter = 0
while int(X) > Money:
Money = int(Money*1.01)
counter = counter + 1
print(counter) | [["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 33 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a = 100;
int x;
cin >> x;
int year = 0;
while (true) {
if (a >= x) {
break;
}
a += a / 100;
year++;
}
cout << year << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long a = 100;
long long x;
cin >> x;
long long year = 0;
while (true) {
if (a >= x) {
break;
}
a += a / 100;
year++;
}
cout << year << endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 63 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.