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 <stdio.h>
int main(void) {
unsigned long int a, b, c;
int i = 0;
b = 100;
scanf("%ld", &a);
do {
b = (long int)(b * 1.01);
} while (b < a);
printf("%ld", i);
return 0;
} | #include <stdio.h>
int main(void) {
unsigned long int a, b, c;
int i = 0;
b = 100;
scanf("%ld", &a);
do {
b = (long int)(b * 1.01);
i++;
} while (b < a);
printf("%ld", i);
return 0;
} | [["+", 0, 82, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 82, 8, 9, 0, 1, 0, 27, 17, 29], ["+", 8, 9, 0, 82, 8, 9, 0, 1, 0, 35]] | 0 | 71 |
X=int(input())
a=100
count=0
while a<=X:
a=int(a+(a*0.01))
count=count+1
print(count) | X=int(input())
a=100
count=0
while a<X:
a=int(a+(a*0.01))
count=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 | 40 |
import sys
import math
X = int(input())
i = 1
k = int(100*1.01)
while 1:
if X < k:
break
k = int(k * 1.01)
i += 1
print(i) | import sys
import math
X = int(input())
i = 1
k = int(100*1.01)
while 1:
if X <= k:
break
k = int(k * 1.01)
i += 1
print(i) | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 47 |
n=int(input())
money=100
year=0
while(money<n):
year=year+1
money=money*1.01
print(year)
| n=int(input())
money=100
year=0
while(money<n):
year=year+1
money=int(money*1.01)
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, 652, 3, 4, 0, 25]] | 5 | 35 |
#include <iostream>
using namespace std;
int main() {
int n = 100;
int x;
int count = 0;
cin >> x;
while (n < x) {
count += 1;
n += n / 100;
}
cout << count << '\n';
return 0;
}
| #include <iostream>
using namespace std;
int main() {
long long int n = 100;
long long int x;
int count = 0;
cin >> x;
while (n < x) {
count += 1;
n += n / 100;
}
cout << count << '\n';
return 0;
}
| [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 58 |
import numpy as np
import math
X=int(input())
tmp=100
#x=((math.log(X)/math.log(1.01)))//1+1
for i in range(5000):
tmp=int(tmp*1.01)
if(tmp>X):
print(i+1)
break | import numpy as np
import math
X=int(input())
tmp=100
#x=((math.log(X)/math.log(1.01)))//1+1
for i in range(6000):
tmp=int(tmp*1.01)
if(tmp>=X):
print(i+1)
break | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 47], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20]] | 5 | 48 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
cin >> X;
long long Y = 100;
long long i = 0;
while (X >= Y) {
Y = 1.01 * Y;
i = i + 1;
}
cout << i << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
cin >> X;
long long Y = 100;
long long i = 0;
while (X > Y) {
Y = 1.01 * Y;
i = i + 1;
}
cout << i << endl;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 58 |
import sys
def get_ints(): return map(int, sys.stdin.readline().strip().split())
def get_array(): return list(map(int, sys.stdin.readline().strip().split()))
def input(): return sys.stdin.readline().strip()
x = int(input())
p = 100
year = 0
while p<=x:
p = p*(1.01)
p //= 1
year += 1
print(year) | import sys
def get_ints(): return map(int, sys.stdin.readline().strip().split())
def get_array(): return list(map(int, sys.stdin.readline().strip().split()))
def input(): return sys.stdin.readline().strip()
x = int(input())
p = 100
year = 0
while p<x:
p = p*(1.01)
p //= 1
year += 1
print(year)
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 110 |
#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 5;
typedef long long ll;
const int MOD = 1e9 + 7;
int main() {
ll n;
cin >> n;
// cout<<n<<endl;
ll g = 100;
ll count = 0;
ll r;
// int rr=200;
while (n >= g) {
r = g / 100;
g += r;
// cout<<g<<endl;
count++;
// rr-... | #include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 5;
typedef long long ll;
const int MOD = 1e9 + 7;
int main() {
ll n;
cin >> n;
// cout<<n<<endl;
ll g = 100;
ll count = 0;
ll r;
// int rr=200;
while (n > g) {
r = g / 100;
g += r;
// cout<<g<<endl;
count++;
// rr--... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 88 |
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
int main() {
double a = 100, x, cnt = 0;
cin >> x;
while (a <= x) {
a += a * 0.01;
cnt++;
}
cout << cnt;
}
| #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
int main() {
int64_t a = 100, x, cnt = 0;
cin >> x;
while (a < x) {
a += a * 0.01;
cnt++;
}
cout << cnt;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 50 |
import math
n = int(input())
i = 100
count = 0
while i < n:
i += math.floor(i*1.01)
count += 1
print(count) | import math
n = int(input())
i = 100
count = 0
while i < n:
i = math.floor(i*1.01)
count += 1
print(count)
| [["-", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32]] | 5 | 38 |
n = int(input())
n = n
c = 0
m = 100
while True:
m = m * 1.01
m = int(m)
c += 1
if m > n:
break
print(c)
| n = int(input())
c = 0
m = 100
while True:
m = m * 1.01
m = int(m)
c += 1
if m >= n:
break
print(c)
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 44 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll x, t, tmp = 100;
double in;
cin >> x;
while (tmp < x) {
in = (tmp * 1) / 100;
t++;
tmp = tmp + in;
}
cout << t;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll x, t = 0, tmp = 100;
double in;
cin >> x;
while (tmp < x) {
in = (tmp * 1) / 100;
t++;
tmp = tmp + in;
}
cout << t;
return 0;
}
| [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 67 |
#include <cmath>
#include <cstdio>
#define DB double
#define LL long long
#define Int register int
using namespace std;
int main() {
LL X;
scanf("%lld", &X);
LL Now = 100, tot = 0;
while (Now <= X) {
Now += (LL)Now * 0.01;
tot++;
}
printf("%lld", tot);
return 0;
} | #include <cmath>
#include <cstdio>
#define DB double
#define LL long long
#define Int register int
using namespace std;
int main() {
LL X;
scanf("%lld", &X);
LL Now = 100, tot = 0;
while (Now < X) {
Now += (LL)Now * 0.01;
tot++;
}
printf("%lld", tot);
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 77 |
import sys
import math as mt
import collections as cc
I=lambda:list(map(int,input().split()))
n,=I()
x=100
i=0
while x<=n:
i+=1
temp=x*0.01
x+=mt.floor(temp)
print(i) | import sys
import math as mt
import collections as cc
I=lambda:list(map(int,input().split()))
n,=I()
x=100
i=0
while x<n:
i+=1
temp=x*0.01
x+=mt.floor(temp)
print(i) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 66 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ll n, t = 100, sum = 0;
ll t1 = 0;
cin >> n;
while (t <= n) {
t = t * 1.01;
sum++;
... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ll n, t = 100, sum = 0;
ll t1 = 0;
cin >> n;
while (t < n) {
t = t * 1.01;
sum++;
}... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 76 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long dep = 100, res = 0;
while (dep <= x) {
dep *= 1.01;
res++;
}
cout << res << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long dep = 100, res = 0;
while (dep < x) {
dep *= 1.01;
res++;
}
cout << res << endl;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 51 |
X = int(input())
total = 100
count = 0
while total <= X:
count += 1
total = total + int(total * 0.01)
print(count) | X = int(input())
total = 100
count = 0
while total < X:
count += 1
total = int(total) + int(total * 0.01)
print(count)
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18], ["+", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22], ["+", 0, 662, 12, 657, 31, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 657, 31, 652, 3, 4, 0, 25]] | 5 | 36 |
from math import floor
X = int(input())
m = 100
d = 0
while m <= X:
d += 1
m = floor(m * 1.01)
print(d)
| from math import floor
X = int(input())
m = 100
d = 0
while m < X:
d += 1
m = floor(m * 1.01)
print(d)
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 38 |
#include <stdio.h>
int main() {
unsigned long long X;
int i;
unsigned long long Y = 100;
scanf("%ul", &X);
for (i = 0; Y < X; i++) {
Y *= 1.01;
// printf("%2.3d\n",Y);
}
printf("%d", i);
return 0;
} | #include <stdio.h>
int main() {
unsigned long long X;
int i;
unsigned long long Y = 100;
scanf("%llu", &X);
for (i = 0; Y < X; i++) {
Y *= 1.01;
// printf("%2.3d\n",Y);
}
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 | 65 |
/*
LANG:C++
PROB:
*/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <functional>
#include <iostream>
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define rall(x)... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <functional>
#include <iostream>
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend... | [["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 52, 0, 89], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16... | 1 | 383 |
#include <iostream>
using namespace std;
using ll = long long;
int main() {
ll n;
cin >> n;
long long p = 100;
ll o = 0;
while (p <= n) {
p *= 1.01;
ll k = p;
o++;
p = k;
}
cout << o << endl;
} | #include <iostream>
using namespace std;
using ll = long long;
int main() {
ll n;
cin >> n;
long long p = 100;
ll o = 0;
while (p < n) {
p *= 1.01;
ll k = p;
o++;
p = k;
}
cout << o << endl;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 66 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF = numeric_limits<long long>::max();
#define intf int_fast64_t
int main() {
long long sum = 100;
int year = 0;
long long x;
cin >> x;
while (sum <= x) {
sum *= 1.01;
sum = floor(sum);
yea... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF = numeric_limits<long long>::max();
#define intf int_fast64_t
int main() {
long long sum = 100;
int year = 0;
long long x;
cin >> x;
while (sum < x) {
sum *= 1.01;
sum = floor(sum);
year... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 73 |
money =100
x=int(input())
r=0.01
count=0
while True:
count +=1
money = int(money*(1+r))
if x<=money:
print(money)
print(count)
break
| money =100
x=int(input())
r=0.01
count=0
while True:
count +=1
money = int(money*(1+r))
if x<=money:
print(count)
break
| [["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 49 |
import math
x = int(input())
r = 0.01
i = 0
s = 100
while True:
i += 1
s = int(s * (1 + r))
if s > x:
print(i)
break | import math
x = int(input())
r = 0.01
i = 0
s = 100
while True:
i += 1
s = math.floor(s * (1 + r))
if s >= x:
print(i)
break
| [["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 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], ["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 47 |
#include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
long long int X;
void load(void);
void output(void);
int main(void) {
load();
output();
}
void load(void) { cin >> X; }
void output(void) {
long long int i = 0, j = 100;
for (i = 1; i < 100... | #include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
long long int X;
void load(void);
void output(void);
int main(void) {
load();
output();
}
void load(void) { cin >> X; }
void output(void) {
long long int i = 0, j = 100;
for (i = 1; i < 100... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 117 |
x = int(input())
def ans():
deposit = 100
year = 0
while True:
deposit = int(deposit*1.01)
year +=1
if deposit < x:
continue
else:
return year
ans() | x = int(input())
def ans():
deposit = 100
year = 0
while True:
deposit = int(deposit*1.01)
year +=1
if deposit < x:
continue
else:
print(year)
return
ans() | [["-", 0, 57, 75, 76, 8, 196, 0, 37, 0, 38], ["+", 75, 76, 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, 25], ["+", 0, 57, 75, 76, 8, 196, 0, 37, 0, 38]] | 5 | 46 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main(void) {
long long int x;
cin >> x;
long long int t_money = 100;
int counter = 0;
while (t_money <= x) {
t_money = floor(t_money * 1.01);
counter++;
}
cout << counter << en... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main(void) {
long long int x;
cin >> x;
long long int t_money = 100;
int counter = 0;
while (t_money < x) {
t_money = floor(t_money * 1.01);
counter++;
}
cout << counter << end... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 71 |
c = 100
y = 0
x = int(input())
while True:
if c>x:
print(y)
break
c = int(c*1.01)
y += 1 | c = 100
y = 0
x = int(input())
while True:
if c>=x:
print(y)
break
c = int(c*1.01)
y += 1 | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 38 |
from decimal import Decimal
X = int(input())
save = 100
ans = 0
while save <= X :
save = int(save * 1.01)
ans += 1
print(ans)
| X = int(input())
save = 100
ans = 0
while save < X :
save = int(save * 1.01)
ans += 1
print(ans)
| [["-", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["-", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["-", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["-", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 38 |
x = int(input())
y = 100
ans = 0
while x >= y:
y = int(y * 1.01)
ans += 1
print(ans) | x = int(input())
y = 100
ans = 0
while x > y:
y = int(y * 1.01)
ans += 1
print(ans) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]] | 5 | 34 |
import math
X = int(input())
year = 0
deposit = 100
while(deposit <= X):
deposit *= 1.01
deposit = math.floor(deposit)
year += 1
print(year)
| import math
X = int(input())
year = 0
deposit = 100
while(deposit < X):
deposit *= 1.01
deposit = math.floor(deposit)
year += 1
print(year)
| [["-", 0, 656, 0, 52, 15, 23, 0, 666, 667, 19], ["+", 0, 656, 0, 52, 15, 23, 0, 666, 667, 18]] | 5 | 41 |
#include <bits/stdc++.h>
using namespace std;
// vector<vector<int>> a(n, vector<int> ())
int main() {
long long int money = 100;
long long int x;
cin >> x;
long long int year = 1;
for (int i = 0; i < x; i++) {
money *= 1.01;
if (money > x) {
break;
}
year++;
}
cout << year << endl... | #include <bits/stdc++.h>
using namespace std;
// vector<vector<int>> a(n, vector<int> ())
int main() {
long long int money = 100;
long long int x;
cin >> x;
long long int year = 1;
for (int i = 0; i < x; i++) {
money *= 1.01;
if (money >= x) {
break;
}
year++;
}
cout << year << end... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 75 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
int x;
cin >> x;
long long m = 100;
long long cnt = 0;
while (m < x) {
cnt++;
long long y = m * 0.01;
m += y;
}
cout << cnt << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
int main() {
long long x;
cin >> x;
long long m = 100;
long long cnt = 0;
while (m < x) {
cnt++;
long long y = m * 0.01;
m += y;
}
cout << cnt << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 68 |
#include <bits/stdc++.h>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main() {
int i = 0;
double X;
double N = 100;
cin >> X;
while (N < X) {
N = N * 1.01;
i++;
}
cout << i << endl;
}
| #include <bits/stdc++.h>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main() {
long long i = 0;
long long X;
long long N = 100;
cin >> X;
while (N < X) {
N = N * 1.01;
i++;
}
cout << i << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 60 |
import java.util.Scanner;
/**
* Main
*/
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long X = sc.nextLong();
long count = 0;
double Yokin = 100;
double Kinri = 1.01;
while (Yokin <= X) {
Yokin = Yokin * Kinri;
Yokin = Math.... | import java.util.Scanner;
/**
* Main
*/
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long X = sc.nextLong();
long count = 0;
double Yokin = 100;
double Kinri = 1.01;
while (Yokin < X) {
Yokin = Yokin * Kinri;
Yokin = Math.f... | [["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 19], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 18]] | 3 | 95 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int x;
long long n = 100;
cin >> x;
int i = 0;
while (true) {
if (n >= x) {
cout << i;
return 0;
}
n *= 1.01;
i++;
}
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
long long x;
long long n = 100;
cin >> x;
int i = 0;
while (true) {
if (n >= x) {
cout << i;
return 0;
}
n *= 1.01;
i++;
}
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 59 |
import math
#数値ひとつ
I = int(input())
#数値空白区切りで欲しいとき
#N, M = map(int, input().split())
#文字欲しいとき
#N = input()
#それをListにしたいとき
#list = list(N)
#数値を受け取る数が未定かつリストにしたいとき
#list = list(map(int, input().split()))
#受け取る文字列が未定かつリストにしたいとき(Iは回数)
#list = [input() for i in range(I)]
X = 100
cnt = 0
while(X <= I):
X = math.floor(X... | import math
#数値ひとつ
I = int(input())
#数値空白区切りで欲しいとき
#N, M = map(int, input().split())
#文字欲しいとき
#N = input()
#それをListにしたいとき
#list = list(N)
#数値を受け取る数が未定かつリストにしたいとき
#list = list(map(int, input().split()))
#受け取る文字列が未定かつリストにしたいとき(Iは回数)
#list = [input() for i in range(I)]
X = 100
cnt = 0
while(X < I):
X = math.floor(X ... | [["-", 0, 656, 0, 52, 15, 23, 0, 666, 667, 19], ["+", 0, 656, 0, 52, 15, 23, 0, 666, 667, 18], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 59 |
X = int(input())
syozikin = 100
ans = 0
while syozikin <= X:
syozikin = syozikin*1.01
syozikin =syozikin // 1
ans = ans + 1
print(ans)
| X = int(input())
syozikin = 100
ans = 0
while syozikin < X:
syozikin = syozikin*1.01
syozikin =syozikin // 1
ans = ans + 1
print(ans) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 38 |
import math
X=int(input())
u=100
y=0
while u<=X:
u=math.floor(u*1.01)
y+=1
print(y)
| import math
X=int(input())
u=100
y=0
while u<X:
u=math.floor(u*1.01)
y+=1
print(y) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 38 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long ans = 0, a, c = 100;
double b = 1.01;
cin >> a;
while (c <= a) {
c = c * b;
ans++;
}
cout << ans << "\n";
return (0);
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long ans = 0, a, c = 100;
double b = 1.01;
cin >> a;
while (c < a) {
c = c * b;
ans++;
}
cout << ans << "\n";
return (0);
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 63 |
#include <iostream>
using namespace std;
int main() {
long long X;
cin >> X;
int ct = 0;
long long mon = 100;
while (mon <= X) {
mon = mon * 1.01;
ct++;
}
cout << ct << endl;
} | #include <iostream>
using namespace std;
int main() {
long long X;
cin >> X;
int ct = 0;
long long mon = 100;
while (mon < X) {
mon = mon * 1.01;
ct++;
}
cout << ct << 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>
#define ll long long
using namespace std;
int main() {
/* ll t;
cin>>t;
while(t--) */
{
ll i, j, k, l, m, n, a, b, c, d, cnt = 0, f = 0;
cin >> k;
ll sum = 100;
float y;
while (sum <= k) {
y = (0.01 * sum);
sum += y;
cnt++;
}
cout << cnt << ... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
/* ll t;
cin>>t;
while(t--) */
{
ll i, j, k, l, m, n, a, b, c, d, cnt = 0, f = 0;
cin >> k;
ll sum = 100;
ll y;
while (sum < k) {
y = (0.01 * sum);
sum += y;
cnt++;
}
cout << cnt << endl... | [["-", 0, 14, 8, 9, 0, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 9, 0, 43, 39, 78], ["-", 0, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 0, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 88 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int X, Y;
int i;
double r = 1.01;
cin >> X;
Y = 100;
while (Y < X) {
Y *= r;
i++;
}
cout << i << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int X, Y;
int i;
i = 0;
double r = 1.01;
cin >> X;
Y = 100;
while (Y < X) {
Y *= r;
i++;
}
cout << i << endl;
}
| [["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 56 |
x = int(input())
a = 100
i = 0
while True:
i += 1
a = int(a * 1.01)
if(x < a):
print(i)
break
| x = int(input())
a = 100
i = 0
while True:
i += 1
a = int(a * 1.01)
# print(a)
if(x <= a):
print(i)
break
| [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 19]] | 5 | 40 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size())
using namespace std;
using lint = long long; //
template <typename T> T sq(T x) { return x * x; }
signed main() {
lint X;
cin >> X;
// cout << X << endl;
lint A = ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size())
using namespace std;
using lint = long long; //
template <typename T> T sq(T x) { return x * x; }
signed main() {
lint X;
cin >> X;
// cout << X << endl;
lint A = ... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 31, 13], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 31, 22], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 85], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 102 |
import math
x = int(input())
m = 100
cnt = 0
while 1:
cnt += 1
m = math.floor(m * 1.01)
if m > x:
break
print(cnt) | import math
x = int(input())
m = 100
cnt = 0
while 1:
cnt += 1
m = math.floor(m * 1.01)
if m >= x:
break
print(cnt) | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 42 |
import math
x = int(input())
m = 100
cnt = 0
while 1:
cnt += 1
m = math.floor(m * 1.01)
if m > x:
break
print(cnt) | import math
x = int(input())
m = 100
cnt = 0
while 1:
cnt += 1
m = m + math.floor(m * 0.01)
if m >= x:
break
print(cnt) | [["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531], ["+", 12, 657, 12, 652, 3, 4, 0, 657, 12, 531], ["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 42 |
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <deque>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
const long long P = 1000000007;
const long long INF = 1LL << 60;
int main() {
long long x;
cin >> x;
long long mon... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <deque>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
const long long P = 1000000007;
const long long INF = 1LL << 60;
int main() {
long long x;
cin >> x;
long long mon... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 90 |
X = int(input())
yokin = 100
def genYokin():
global yokin
return int(yokin*1.01)
year_cnt = 0
while True:
if X < yokin:
break
yokin = genYokin()
year_cnt += 1
print(year_cnt) | X = int(input())
yokin = 100
def getNextYokin():
global yokin
return int(yokin*1.01)
year_cnt = 0
while True:
if X <= yokin:
break
yokin = getNextYokin()
year_cnt += 1
print(year_cnt) | [["-", 36, 36, 36, 36, 0, 656, 0, 14, 141, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 14, 141, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22]] | 5 | 49 |
X=int(input())
temp=100
an=0
while True:
temp=int(temp*1.01)
an+=1
#print(temp)
if temp>X:
break
print(an-1) | X=int(input())
temp=100
an=0
while True:
temp=int(temp*1.01)
an+=1
#print(temp)
if temp>=X:
break
print(an)
| [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 20], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 41 |
X = int(input())
base = 100
rt = 0
while X > base:
base = math.floor(base * 1.01)
rt += 1
print(rt) | import math
X = int(input())
base = 100
rt = 0
while X > base:
base = math.floor(base * 1.01)
rt += 1
print(rt) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 36 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int i = 100, n, k = 0;
cin >> n;
while (i <= n) {
i += i / 100;
k++;
}
cout << k;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int i = 100, n, k = 0;
cin >> n;
while (i < n) {
i += i / 100;
k++;
}
cout << k;
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 53 |
x = gets.to_i
t = 100
cnt = 0
while t <= x
cnt += 1
t = (t * 1.01).to_i
end
puts cnt | x = gets.to_i
t = 100
cnt = 0
while t < x
cnt += 1
t = (t * 1.01).to_i
end
puts cnt | [["-", 36, 36, 0, 493, 0, 89, 15, 738, 17, 19], ["+", 36, 36, 0, 493, 0, 89, 15, 738, 17, 18]] | 4 | 30 |
#include <iostream>
using namespace std;
int main() {
long long int x, k = 100, t = 0;
cin >> x;
while (k <= x) {
k = k + k * 0.01;
t++;
}
cout << t << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
long long int x, k = 100, t = 0;
cin >> x;
while (k < x) {
k = k + k * 0.01;
t++;
}
cout << t << endl;
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 57 |
import math
x = int(input())
n = 16 // (math.log10(1.01))
a = 100
cnt = 0
while a <= x:
cnt += 1
a = math.floor(a * 1.01)
'''
for i in range(1, math.floor(n)+1):
a = math.floor(a * 1.01)
cnt += 1
if a >= x:
break
else:
continue
'''
print(cnt) | import math
x = int(input())
n = 16 // (math.log10(1.01))
a = 100
cnt = 0
while a < x:
cnt += 1
a = math.floor(a * 1.01)
'''
for i in range(1, math.floor(n)+1):
a = math.floor(a * 1.01)
cnt += 1
if a >= x:
break
else:
continue
'''
print(cnt) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 53 |
import math
x = int(input())
a = 100
i = 0
while a < x:
i = i + 1
a = math.floor(a * 1.01)
print(i, a) | import math
x = int(input())
a = 100
i = 0
while a < x:
i = i + 1
a = math.floor(a * 1.01)
print(i) | [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 42 |
def main():
X = int(input())
tmp = 100
counter = 0
while tmp < X:
tmp = round(tmp * 1.01)
counter += 1
print(counter)
if __name__ == "__main__":
main()
| import math
def main():
X = int(input())
tmp = 100
counter = 0
while tmp < X:
tmp = math.floor(tmp * 1.01)
counter += 1
print(counter)
if __name__ == "__main__":
main()
| [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 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]] | 5 | 49 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double t = 100;
int sum = 0;
int k = sc.nextInt();
while (t < k) {
t = t + Math.floor(t * 0.01);
sum++;
}
System.out.println(sum);
}
}
| import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double t = 100;
int sum = 0;
long k = sc.nextLong();
while (t < k) {
t = t + Math.floor(t * 0.01);
sum++;
}
System.out.println(sum);
}
}
| [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22]] | 3 | 87 |
x = int(input())
const_a, count = 100, 0
while const_a < x:
a += a//100
count += 1
print(count) | x = int(input())
const_a, count = 100, 0
while const_a < x:
const_a += const_a//100
count += 1
print(count)
| [["-", 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 | 32 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define Inf 0x3f3f3f3f
int main() {
ll x;
cin >> x;
double money = 100;
int i = 0;
while (money <= x) {
money = floor(money + money * 0.01);
i++;
}
cout << i << endl;
}
| #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define Inf 0x3f3f3f3f
int main() {
ll x;
cin >> x;
double money = 100;
ll i = 0;
while (money < x) {
money = floor(money + money * 0.01);
i++;
}
cout << i << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 63 |
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
long long int price = 100;
long long int k;
cin >> k;
int ans = 0;
while (price <= k) {
price += price / 100;
ans++;
}
cout << ans <<... | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
long long int price = 100;
long long int k;
cin >> k;
int ans = 0;
while (price < k) {
price += price / 100;
ans++;
}
cout << ans << ... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 70 |
#include <iostream>
using namespace std;
int main() {
long long K;
cin >> K;
long long ans = 100;
long long y = 0;
while (ans <= K) {
ans *= (1 + 0.01);
y++;
}
cout << --y << endl;
return 0;
} |
#include <iostream>
using namespace std;
int main() {
long long K;
cin >> K;
long long ans = 100;
long long y = 0;
while (ans < K) {
ans *= (1 + 0.01);
y++;
}
cout << y << endl;
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["-", 0, 1, 0, 16, 31, 16, 12, 27, 17, 68]] | 1 | 61 |
#include <iostream>
using namespace std;
int main() {
unsigned long long x;
int ans = 0;
cin >> x;
int money = 100;
while (money < x) {
money = (double)money * 1.01;
ans++;
}
cout << ans;
return 0;
} | #include <iostream>
using namespace std;
int main() {
unsigned long long x;
int ans = 0;
cin >> x;
unsigned long long money = 100;
while (money < x) {
money = (double)money * 1.01;
ans++;
}
cout << ans;
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]] | 1 | 58 |
X = int(input())
a = 100
cnt = 0
while a < X :
a = 1.01*a
cnt += 1
print(cnt) | X = int(input())
a = 100
cnt = 0
while a < X :
a = 1.01*int(a )
cnt += 1
print(cnt) | [["+", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22], ["+", 0, 662, 12, 657, 12, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 657, 12, 652, 3, 4, 0, 25]] | 5 | 31 |
import math
X=int(input())
total=100
count=0
while X>=total:
total = math.floor(total*1.01)
count +=1
print(math.ceil(count)) | import math
X=int(input())
total=100
count=0
while X>total:
total = math.floor(total*1.01)
count +=1
print(math.ceil(count)) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]] | 5 | 43 |
import math
x = int(input())
s=[]
a=100
while math.floor(a*1.01)<=x:
a = math.floor(a*1.01)
s.append(a)
print(len(s)+1)
| import math
x = int(input())
s=[]
a=100
while math.floor(a*1.01)<x:
a = math.floor(a*1.01)
s.append(a)
print(len(s)+1) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 54 |
target = int(input())
year = 0
money = 100
while money < target:
year += 1
money *= 1.01
money = round(money)
print(year)
| import math
target = int(input())
year = 0
money = 100
while money < target:
year += 1
money *= 1.01
money = math.floor(money)
print(year) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 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]] | 5 | 35 |
#include <stdio.h>
#include <stdlib.h>
int main() {
int y = 0;
long long int o = 100, x;
scanf("%I64d", &x);
while (o < x) {
o = (long long int)(o * 1.01);
y++;
}
printf("%d", y);
return 0;
}
| #include <stdio.h>
#include <stdlib.h>
int main() {
int y = 0;
long long o = 100, x;
scanf("%lld", &x);
while (o < x) {
o = (long long)(o * 1.01);
y++;
}
printf("%d", y);
return 0;
}
| [["-", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 11, 12, 74, 39, 77, 39, 86, 39, 40]] | 0 | 70 |
x = int(input())
num = 100
count = 0
while x == num:
num = num + (num // 100)
count += 1
print(count)
| x = int(input())
num = 100
count = 0
while x > num:
num = num + (num // 100)
count += 1
print(count)
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 60], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]] | 5 | 35 |
// ABC 165 B
#include <iostream>
using namespace std;
int main() {
long long int A, b, c, d;
long double a;
cin >> a;
c = 0;
b = 100;
A = a;
while (a >= 100) {
a = a / 1.01;
c++;
}
for (int i = 0; i < c; i++) {
b = b * 1.01;
}
if (b < A) {
while (b <= A) {
b *= 1.01;
c... | // ABC 165 B
#include <iostream>
using namespace std;
int main() {
long long int A, b, c, d;
long double a;
cin >> a;
c = 0;
b = 100;
A = a;
while (a >= 100) {
a = a / 1.01;
c++;
}
for (int i = 0; i < c; i++) {
b = b * 1.01;
}
if (b < A) {
while (b < A) {
b *= 1.01;
c+... | [["-", 64, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 64, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 112 |
#include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <string>
#include <vector>
using namespace std;
int main() {
long long x;
cin >> x;
long long p = 100;
long long n = 0;
while (x >= p) {
p = p * 1.01;
n++;
}
cout << n << ... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <string>
#include <vector>
using namespace std;
int main() {
long long x;
cin >> x;
long long p = 100;
long long n = 0;
while (x > p) {
p = p * 1.01;
n++;
}
cout << n << e... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 72 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, M = 100, cnt = 0;
cin >> N;
while (true) {
int i = M / 100;
M += i;
cnt++;
if (M >= N)
break;
}
cout << cnt << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long N, M = 100, cnt = 0;
cin >> N;
while (true) {
long long i = M / 100;
M += i;
cnt++;
if (M >= N)
break;
}
cout << cnt << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 52, 8, 9, 0, 43, 39, 40], ["+", 0, 52, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 61 |
import math
money = 100
x = int(input())
#print(x)
cnt = 0
while money <= x:
money += money * 0.01
money = int(money)
cnt += 1
#print(cnt,money)
print(cnt) | import math
money = 100
x = int(input())
#print(x)
cnt = 0
while money < x:
money += money * 0.01
money = int(money)
cnt += 1
#print(cnt,money)
print(cnt)
| [["-", 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;
int main() {
long long int x, i = 100, j = 0;
while (i < x) {
i += i / 100;
j++;
}
cout << j;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int x, i = 100, j = 0;
cin >> x;
while (i < x) {
i += i / 100;
j++;
}
cout << j;
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 | 49 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
typedef long long LL;
typedef pair<int, int> P;
int main() {
LL X;
cin >> X;
int ans = 0;
LL N = 100;
while (N <= X) {
N += N / 100;
ans++;
}
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
typedef long long LL;
typedef pair<int, int> P;
int main() {
LL X;
cin >> X;
int ans = 0;
LL N = 100;
while (N < X) {
N += N / 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 | 77 |
#include <bits/stdc++.h>
using namespace std;
#define ms(s, n) memset(s, n, sizeof(s))
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define FORd(i, a, b) for (int i = (a)-1; i >= (b); i--)
#define FORall(it, a) \
for (__typeof((a).begin()) it = (a).beg... | #include <bits/stdc++.h>
using namespace std;
#define ms(s, n) memset(s, n, sizeof(s))
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define FORd(i, a, b) for (int i = (a)-1; i >= (b); i--)
#define FORall(it, a) \
for (__typeof((a).begin()) it = (a).beg... | [["-", 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, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48]] | 1 | 678 |
import math
X = int(input())
i = 0
money = 100
while money <= X:
money *= 1.01
money = math.floor(money)
i += 1
print(i)
| import math
X = int(input())
i = 0
money = 100
while money < X:
money *= 1.01
money = math.floor(money)
i += 1
print(i)
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 39 |
import math
x = int(input())
count=0
count_1 = 100
ans=0
while x >= count_1:
count=(math.floor(count_1*0.01))
count_1+=math.floor(count)
ans += 1
print(ans) | import math
x = int(input())
count=0
count_1 = 100
ans=0
while x > count_1:
count=(math.floor(count_1*0.01))
count_1+=math.floor(count)
ans += 1
print(ans)
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]] | 5 | 51 |
X=int(input())
A=int(100)
B=int(0)
while A<=X:
A=A*101//100
B=B+1
print(B) | X=int(input())
A=int(100)
B=int(0)
while A<X:
A=A*101//100
B=B+1
print(B)
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 41 |
#include <algorithm>
#include <climits>
#include <cmath>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
#define FAST_IO \
ios_base::sync_with_stdio(false), cin.... | #include <algorithm>
#include <climits>
#include <cmath>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
#define FAST_IO \
ios_base::sync_with_stdio(false), cin.... | [["+", 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]] | 1 | 145 |
s=int(input())
a=100
b=0
while a<=s:
a=int(a*(1+0.01))
b+=1
print(b) | s=int(input())
a=100
b=0
while a<s:
a=int(a*(1+0.01))
b+=1
print(b) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 38 |
import math
x = int(input())
t = 100
count = 0
while t <= x:
count += 1
t = t+(math.floor(t*1/100))
print(count) | import math
x = int(input())
t = 100
count = 0
while t < x:
count += 1
t = t+(math.floor(t*1/100))
print(count) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 44 |
import math
num_x = int(input())
taka = 100
count = 0
while num_x >= taka :
taka = taka*0.01 + taka
taka = math.floor(taka)
count = count + 1
print(count) | import math
num_x = int(input())
taka = 100
count = 0
while num_x > taka :
taka = taka*0.01 + taka
taka = math.floor(taka)
count = count + 1
print(count) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]] | 5 | 45 |
import math
X= int(input())
money = 100
cnt = 0
while True:
money = 1.01*money
cnt += 1
if int(money>=X):
print(cnt)
break |
import math
X= int(input())
money = 100
cnt = 0
while True:
money = int(1.01*money)
cnt += 1
if money>=X:
print(cnt)
break | [["+", 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], ["-", 0, 52, 8, 196, 0, 57, 15, 652, 63, 22], ["-", 8, 196, 0, 57, 15, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 57, 15, 652, 3, 4, 0, 25]] | 5 | 40 |
X = int(input())
ans = 0
a = 100
while True:
if a>=X:
break
if a<X:
a+=(a*0.01)
ans+=1
print(ans) | X = int(input())
ans = 0
a = 100
while True:
if a>=X:
break
if a<X:
a+=int(a*0.01)
ans+=1
print(ans) | [["+", 64, 196, 0, 1, 0, 677, 12, 652, 63, 22]] | 5 | 42 |
import math
X = int(input())
money = 100
year = 0
while(money <= X):
money += math.floor(money * 0.01)
year += 1
print(year) | import math
X = int(input())
money = 100
year = 0
while(money < X):
money += math.floor(money * 0.01)
year += 1
print(year) | [["-", 0, 656, 0, 52, 15, 23, 0, 666, 667, 19], ["+", 0, 656, 0, 52, 15, 23, 0, 666, 667, 18]] | 5 | 40 |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
int y = 100;
int year = 0;
outloop:
for (int i = 0;; i++) {
y = y + (y / 100);
if (y >= x) {
year = i;
break outloop;
}
}... | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
long x = scan.nextLong();
long y = 100;
int year = 0;
outloop:
for (int i = 1;; i++) {
y = y + (y / 100);
if (y >= x) {
year = i;
break outloop;
}
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["-", 0, 97, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 0, 97, 0, 7, 502, 503, 49, 200, 51, 499]] | 3 | 102 |
#include <algorithm>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
long long X;
cin >> X;
long long sum = 100;
int t = 0;
while (sum <= X) {
sum = sum + sum / (long long)100;
// cout<<t<<endl;
t++;
}
cout << t << endl;
} | #include <algorithm>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
long long X;
cin >> X;
long long sum = 100;
int t = 0;
while (sum < X) {
sum = sum + sum / (long long)100;
// cout<<t<<endl;
t++;
}
cout << t << endl;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 65 |
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
ull now = 100, to, ans = 0;
int main() {
cin >> to;
while (now <= to) {
ans++, now += now / 100;
}
cout << ans;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
ull now = 100, to, ans = 0;
int main() {
cin >> to;
while (now < to) {
ans++, now += now / 100;
}
cout << ans;
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 57 |
// At Corder.cpp : このファイルには 'main'
// 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
#include <numeric>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using p = pair<int, int>; //<key,value>
int main(... | // At Corder.cpp : このファイルには 'main'
// 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
#include <numeric>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using p = pair<int, int>; //<key,value>
int main(... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 115 |
#include <bits/stdc++.h>
using namespace std;
const int nm = 1e5;
int n, m[3], q[nm][2], x, y;
string s;
char ans[100000];
int main() {
cin >> n;
for (int i = 0; i < 3; i++)
cin >> m[i];
for (int i = 0; i < n; i++) {
cin >> s;
q[i][0] = s[0] - 'A';
q[i][1] = s[1] - 'A';
}
for (int i = 0; i <... | #include <bits/stdc++.h>
using namespace std;
const int nm = 1e5;
int n, m[3], q[nm][2], x, y;
string s;
char ans[100000];
int main() {
cin >> n;
for (int i = 0; i < 3; i++)
cin >> m[i];
for (int i = 0; i < n; i++) {
cin >> s;
q[i][0] = s[0] - 'A';
q[i][1] = s[1] - 'A';
}
for (int i = 0; i <... | [["+", 8, 9, 0, 1, 0, 27, 28, 69, 28, 22], ["+", 0, 1, 0, 27, 28, 69, 341, 342, 0, 70], ["+", 0, 1, 0, 27, 28, 69, 341, 342, 0, 73]] | 1 | 315 |
#include <iostream>
#include <string>
#include <vector>
#define rip(i, n, s) for (int i = (s); i < (int)(n); i++)
using namespace std;
int g[3], ans[100000];
string d[100001];
void j(int i, int x, int y) {
ans[i] = x;
g[x]++;
g[y]--;
}
int main() {
int n;
cin >> n >> g[0] >> g[1] >> g[2];
rip(i, n, 0) cin >... | #include <iostream>
#include <string>
#include <vector>
#define rip(i, n, s) for (int i = (s); i < (int)(n); i++)
using namespace std;
int g[3], ans[100000];
string d[100001];
void j(int i, int x, int y) {
ans[i] = x;
g[x]++;
g[y]--;
}
int main() {
int n;
cin >> n >> g[0] >> g[1] >> g[2];
rip(i, n, 0) cin >... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 330 |
n, a, b, c = map(int, input().split())
v = {
'A': a,
'B': b,
'C': c
}
ss = []
for _ in range(n):
ss.append(input())
history = []
flag = True
for i in range(n):
s = ss[i]
if v[s[0]] == 0 and v[s[1]] == 0:
flag = False
break
elif v[s[0]] > v[s[1]]:
history.append(s[1])
v[s[0]] -=... | n, a, b, c = map(int, input().split())
v = {
'A': a,
'B': b,
'C': c
}
ss = []
for _ in range(n):
ss.append(input())
history = []
flag = True
for i in range(n):
s = ss[i]
if v[s[0]] == 0 and v[s[1]] == 0:
flag = False
break
elif v[s[0]] > v[s[1]]:
history.append(s[1])
v[s[0]] -=... | [["-", 0, 1, 0, 652, 3, 4, 0, 206, 51, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 206, 51, 22]] | 5 | 326 |
#!/usr/bin/python3
import sys
from collections import defaultdict
(n, a, b, c) = map(int, input().split())
ss = []
for i in range(n):
ss.append(input())
def psum(pair):
if pair == 'AB':
return a + b
elif pair == 'AC':
return a + c
elif pair == 'BC':
return b + c
def select(... | #!/usr/bin/python3
import sys
from collections import defaultdict
(n, a, b, c) = map(int, input().split())
ss = []
for i in range(n):
ss.append(input())
def psum(pair):
if pair == 'AB':
return a + b
elif pair == 'AC':
return a + c
elif pair == 'BC':
return b + c
def select(... | [["+", 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, 25]] | 5 | 570 |
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#defin... | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#defin... | [["-", 0, 1, 0, 2, 3, 4, 0, 103, 0, 125], ["+", 0, 1, 0, 2, 3, 4, 0, 103, 0, 125]] | 1 | 579 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a) for (int i = 0; i < (a); i++)
const ll MOD = 1000000007;
// const ll MOD=998244353;
vector<char> ans;
vector<string> V;
void func(int ind, int X, int Y, char x, char y) {
if (X > Y) {
ans[ind] = y;
X--, Y++;
} else if (X... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a) for (int i = 0; i < (a); i++)
const ll MOD = 1000000007;
// const ll MOD=998244353;
vector<char> ans;
vector<string> V;
void func(int ind, int &X, int &Y, char x, char y) {
if (X > Y) {
ans[ind] = y;
X--, Y++;
} else if ... | [["+", 49, 53, 54, 55, 0, 56, 49, 352, 0, 67]] | 1 | 400 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
int main() {
int n, a, b, c;
cin >> n >> a >> b >> c;
bool ex = true;
vector<char> d;
vector<string> s(n);
rep(i, n) { cin >> s.at(i); }
rep(i, n - ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
int main() {
int n, a, b, c;
cin >> n >> a >> b >> c;
bool ex = true;
vector<char> d;
vector<string> s(n);
rep(i, n) { cin >> s.at(i); }
rep(i, n - ... | [["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18]] | 1 | 842 |
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#define ll long long
#define gmax(x, y) x = max(x, y)
#define gmin(x, y) x = min(x, y)
#define F first
#define S second
#define P pair
#define FOR(i, a, b) for (int i = a; i <= b; i++)
#define rep(i, a, b) for (int i = a; i < b; i++)
#define V vector
#define RE ret... | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#define ll long long
#define gmax(x, y) x = max(x, y)
#define gmin(x, y) x = min(x, y)
#define F first
#define S second
#define P pair
#define FOR(i, a, b) for (int i = a; i <= b; i++)
#define rep(i, a, b) for (int i = a; i < b; i++)
#define V vector
#define RE ret... | [["-", 12, 23, 0, 16, 12, 16, 12, 5, 0, 6], ["+", 12, 23, 0, 16, 12, 16, 12, 5, 0, 6]] | 1 | 459 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define ll long long
#define pb push_back
#define fi first
#define fastio \
ios_base::sync_with_stdio(... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define ll long long
#define pb push_back
#define fi first
#define fastio \
ios_base::sync_with_stdio(... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 1,330 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.