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;
typedef long long ll;
//マクロ
// forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
// Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//マクロ
// forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
// Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for ... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 22], ["+", 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]] | 1 | 168 |
#include <ctype.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define loop(i, st, en) for (int i = st; i < en; i++)
#define loop0n(i, n) for (int i = 0; i < n; i++)
int main() {
unsigned long long int money = 100, X = 0;
int year = 0;
scanf("%I64d", &X);
... | #include <ctype.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define loop(i, st, en) for (int i = st; i < en; i++)
#define loop0n(i, n) for (int i = 0; i < n; i++)
int main() {
unsigned long long int money = 100, X = 0;
int year = 0;
scanf("%I64lld", &X);
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 98 |
s= int(input())
cost =100
count = 0
while(cost <= s):
cost = int(cost* 1.01)
count += 1
print(count) | s= int(input())
cost =100
count = 0
while(cost < s):
cost = int(cost* 1.01)
count += 1
print(count) | [["-", 0, 656, 0, 52, 15, 23, 0, 666, 667, 19], ["+", 0, 656, 0, 52, 15, 23, 0, 666, 667, 18]] | 5 | 36 |
#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main(void) {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
ll X;
cin >> X;
double c = 100;
ll ans = 0;
while (c < X) {
c += c * 0.01;
ans++;
}
cout << ans << endl;
return 0;
}
| #include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main(void) {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
ll X;
cin >> X;
ll c = 100;
ll ans = 0;
while (c < X) {
c += c * 0.01;
ans++;
}
cout << ans << endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 83 |
#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
#define ll long long
#define SIZE_OF_ARRAY(array) (sizeof(array) / sizeof(array[0]))
using namespace std;
int gcd(int x, int y) { return (x % y) ? gcd(y, x % y) : y; }
int main() {
float X;
cin >> X;
float mon = 100;
int ans = 0... | #include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
#define ll long long
#define SIZE_OF_ARRAY(array) (sizeof(array) / sizeof(array[0]))
using namespace std;
int gcd(int x, int y) { return (x % y) ? gcd(y, x % y) : y; }
int main() {
ll X;
cin >> X;
ll mon = 100;
int ans = 0;
w... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 101 |
count = 0
x = int(input())
bal = 100
while bal<=x:
count+=1
bal = int(bal*(1.01))
print(count) | count = 0
x = int(input())
bal = 100
while bal<x:
count+=1
bal = int(bal*(1.01))
print(count) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 36 |
#include <algorithm>
#include <cstdio>
using namespace std;
int main() {
long long x;
long long m = 100;
int y = 0;
scanf("%lld", &x);
while (m <= x) {
m += m / (long long)100;
y++;
}
printf("%d\n", y);
return 0;
}
| #include <algorithm>
#include <cstdio>
using namespace std;
int main() {
long long x;
long long m = 100;
int y = 0;
scanf("%lld", &x);
while (m < x) {
m += m / (long)100;
y++;
}
printf("%d\n", y);
return 0;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["-", 12, 16, 12, 74, 39, 77, 39, 86, 0, 96]] | 1 | 73 |
import math
X = int(input())
money = 100
y = 1
while X > money:
money += moth.floor(money*0.01)
y += 1
print(y)
| import math
X = int(input())
money = 100
y = 0
while X > money:
money += math.floor(money*0.01)
y += 1
print(y) | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 0, 1, 0, 677, 12, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 677, 12, 652, 63, 319, 500, 22]] | 5 | 38 |
#include <stdio.h>
int main() {
int x;
scanf("%d", &x);
int ans;
int money = 100;
for (int i = 0; x > money; i++) {
money += money / 100;
ans = i;
}
printf("%d", ans + 1);
return 0;
} | #include <stdio.h>
int main() {
unsigned long long int x;
scanf("%llu", &x);
int ans;
long long int money = 100;
for (int i = 0; x > money; i++) {
money += money / 100;
ans = i;
}
printf("%d", ans + 1);
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 69 |
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define rep(n) for (int i = 0; i < n; i++)
#define all(a) a.begin(), a.end()
#define NumofDigits(n) ((long long)log10(n) + 1)
#define Unique(n) (n).erase(unique(all(n)), (n).end())
void quick() {
cin.tie(0);
cout.tie(0);
ios_base::sync_with_stdio(0... | #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define rep(n) for (int i = 0; i < n; i++)
#define all(a) a.begin(), a.end()
#define NumofDigits(n) ((long long)log10(n) + 1)
#define Unique(n) (n).erase(unique(all(n)), (n).end())
void quick() {
cin.tie(0);
cout.tie(0);
ios_base::sync_with_stdio(0... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 255 |
x = int(input())
a = 100
cnt = 0
while x >= a:
a = a * 1.01
a = int(a)
cnt += 1
print(cnt)
| x = int(input())
a = 100
cnt = 0
while x > a:
a = a * 1.01
a = int(a)
cnt += 1
print(cnt)
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]] | 5 | 37 |
x = int(input())/100
amt=100
t=0
while(amt<x):
amt+= amt//100
t+=1
print(t) | x = int(input())
amt=100
t=0
while(amt<x):
amt+= amt//100
t+=1
print(t)
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 35 |
x = int(input())
total = 100
year=0
while True:
if total >= x:
print(year)
break
else:
total = total + total * 0.01
year += 1 | x = int(input())
total = 100
year=0
while True:
if total >= x:
print(year)
break
else:
total = total + int(total * 0.01)
year += 1 | [["+", 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 | 39 |
x = int(input())
count = 0
a = 100
while x > a:
a += a * (1/100)
count += 1
print(count) | x = int(input())
count = 0
a = 100
while x > a:
a += int(a * (1/100))
count += 1
print(count) | [["+", 8, 196, 0, 1, 0, 677, 12, 652, 63, 22], ["+", 0, 1, 0, 677, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 657, 12, 23, 0, 25]] | 5 | 35 |
#include <bits/stdc++.h>
using namespace std;
int main() {
double x;
cin >> x;
double count = 0, a = 100;
while (a > 0) {
a *= 1.01;
count++;
if (x <= a)
break;
}
cout << count << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int x;
cin >> x;
long long int count = 0, a = 100;
while (a > 0) {
a *= 1.01;
count++;
if (x <= a)
break;
}
cout << count << endl;
}
| [["-", 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]] | 1 | 57 |
x = int(input())
kane = 100
count = 0
while kane < x:
kane= kane*1.01
count = 1 + count
print(count) | x = int(input())
kane = 100
count = 0
while kane < x:
kane= kane*1.01//1
count = 1 + count
print(count) | [["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 33 |
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
long X, cnt = 0, max = 100;
cin >> X;
while (max <= X) {
max = max * 1.01;
cnt++;
}
cout << cnt;
} | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
long X, cnt = 0, max = 100;
cin >> X;
while (max < X) {
max = max * 1.01;
cnt++;
}
cout << cnt;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 52 |
#include <stdio.h>
int main() {
long int X, money, year;
scanf("%ld", &X);
money = 100;
year = 0;
while (money < X) {
money = money * 1.01;
long int(money);
year++;
}
printf("%ld/n", year);
return 0;
} | #include <stdio.h>
int main() {
long int X, money;
int year;
scanf("%ld", &X);
money = 100;
year = 0;
while (money < X) {
money = money * 1.01;
long int(money);
year++;
}
printf("%d\n", year);
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 69 |
x = int(input())
a = 100
ans = 0
while a <= x:
a += a*0.01
a = int(a)
ans += 1
print(ans) | x = int(input())
a = 100
ans = 0
while a < x:
a += a*0.01
a = int(a)
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 | 37 |
#include <iostream>
using namespace std;
int main() {
int i;
long long x, t;
t = 100;
cin >> x;
for (i = 0; t <= x; i++) {
t *= 1.01;
}
cout << i;
} | #include <iostream>
using namespace std;
int main() {
int i;
long long x, t;
t = 100;
cin >> x;
for (i = 0; t < x; i++) {
t *= 1.01;
}
cout << i;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18]] | 1 | 52 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
constexpr int mod = 1000000007;
constexpr int inf = 1e9;
const int maxn = 100005;
long double x;
int u;
int main() {
cin >> x;
u = 0;
long double y = 100.0;
long double rate = 1.01;
while (y <= x) {
y *= rate;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
constexpr int mod = 1000000007;
constexpr int inf = 1e9;
const int maxn = 100005;
long double x;
int u;
int main() {
cin >> x;
u = 0;
long double y = 100.0;
long double rate = 1.01;
while (y < x) {
y *= rate;
y... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 98 |
X = int(input())
count = 0
hun = 100
while X >= hun:
count += 1
hun = int(hun*1.01)
print(count) | X = int(input())
count = 0
hun = 100
while X > hun:
count += 1
hun = int(hun*1.01)
print(count) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]] | 5 | 34 |
n = int(input())
now = 100
y = 0
while(n < now):
y += 1
now = int(now * 1.01)
print(y) | n = int(input())
now = 100
y = 0
while(n > now):
y += 1
now = int(now * 1.01)
print(y) | [["-", 0, 656, 0, 52, 15, 23, 0, 666, 667, 18], ["+", 0, 656, 0, 52, 15, 23, 0, 666, 667, 47]] | 5 | 36 |
n = int(input())
ans = 0
x = 100
while x<=n:
x = x+(x//100)
ans+=1
print(ans)
| n = int(input())
ans = 0
x = 100
while x<n:
x = x+(x//100)
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 | 35 |
#!/usr/bin/env python3
from collections import defaultdict,deque
from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
import sys, random, itertools, math
sys.setrecursionlimit(10**5)
input = sys.stdin.readline
sqrt = math.sqrt
def LI(): return list(map(int, input().split()))
def LF(): return... | #!/usr/bin/env python3
from collections import defaultdict,deque
from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
import sys, random, itertools, math
sys.setrecursionlimit(10**5)
input = sys.stdin.readline
sqrt = math.sqrt
def LI(): return list(map(int, input().split()))
def LF(): return... | [["+", 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 | 356 |
X = int(input())
start = 100
year = 0
if start < X:
start = int(start * 1.01)
year += 1
else:
print(year) | X = int(input())
start = 100
year = 0
while start < X:
start = int(start * 1.01)
year += 1
else:
print(year) | [["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 0, 89]] | 5 | 36 |
#include <bits/stdc++.h>
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(nullptr); \
cin.tie(nullptr);
#define int long long
using na... | #include <bits/stdc++.h>
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(nullptr); \
cin.tie(nullptr);
#define int long long
using na... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 59 |
a=int(input())
b=100
c=0
while b>=a:
c+=1
b=b*1.01
print(c) | a=int(input())
b=100
c=0
while b<a:
c+=1
b=int(b*1.01)
print(c) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18], ["+", 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 |
#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 init = 100;
ll money = init;
int x;
cin >> x;
ll ans = 1;
while (true) {
money = money * 1.01;
if (money >= x) {
cout << ans << 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() {
int init = 100;
ll money = init;
ll x;
cin >> x;
ll ans = 1;
while (true) {
money = money * 1.01;
if (money >= x) {
cout << ans << endl;
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 93 |
X = int(input())
count = 0
num = 100
while num < X:
num = round(num * 1.01)
count += 1
print(count)
| X = int(input())
count = 0
num = 100
while num < X:
num = int(num * 1.01)
count += 1
print(count)
| [["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22]] | 5 | 34 |
#include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
int ans = 0;
long long int c = 100;
while (c < x) {
c += c / 100;
ans++;
}
cout << ans << "\n";
return 0;
}
| #include <iostream>
using namespace std;
int main() {
long long int x;
cin >> x;
int ans = 0;
long long int c = 100;
while (c < x) {
c += c / 100;
ans++;
}
cout << ans << "\n";
return 0;
}
| [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 59 |
# coding: utf-8
def main():
x = int(input())
money = 100
year = 0
while money <= x:
year += 1
money *= 1.01
money = money//1
print(year)
if __name__ == '__main__':
main() | # coding: utf-8
def main():
x = int(input())
money = 100
year = 0
while money < x:
year += 1
money *= 1.01
money = money//1
print(year)
if __name__ == '__main__':
main() | [["-", 0, 14, 8, 196, 0, 52, 15, 666, 667, 19], ["+", 0, 14, 8, 196, 0, 52, 15, 666, 667, 18]] | 5 | 50 |
num=gets.strip.to_i
t=100
a=0
while(t<=num)
t=(t*1.01).to_i
a+=1
end
puts a | num=gets.strip.to_i
t=100
a=0
while(t<num)
t=(t*1.01).to_i
a+=1
end
puts a
| [["-", 0, 493, 0, 89, 15, 739, 0, 738, 17, 19], ["+", 0, 493, 0, 89, 15, 739, 0, 738, 17, 18]] | 4 | 34 |
#include <algorithm>
#include <cmath> //abs()かfabs()で少数絶対値
#include <cstdlib> //abs()で整数絶対値
#include <functional> //sort第三引数greater<型名>()で降順
#include <iomanip> //cout<<setw(数字) で空白による桁揃え
#include <iostream> //cout<<right で右揃え
#include <queue>
#include <string>
#include <vector>
using namespace std;
using ... | #include <algorithm>
#include <cmath> //abs()かfabs()で少数絶対値
#include <cstdlib> //abs()で整数絶対値
#include <functional> //sort第三引数greater<型名>()で降順
#include <iomanip> //cout<<setw(数字) で空白による桁揃え
#include <iostream> //cout<<right で右揃え
#include <queue>
#include <string>
#include <vector>
using namespace std;
using ... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 107], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13]] | 1 | 85 |
X=int(input())
K=100
count=0
while K<=X:
K=int(K*1.01)
count+=1
print(count)
| X=int(input())
K=100
count=0
while K<X:
K+=int(K*0.01)
count+=1
print(count)
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18], ["-", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 12, 531], ["+", 0, 677, 12, 652, 3, 4, 0, 657, 12, 531]] | 5 | 34 |
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main() {
ios::sync_with_stdio(false);
ll x;
cin >> x;
ll a = 100;
ll n = 0;
while (a <= x) {
a *= 1.01;
n++;
// cout<<a<<endl;
}
cout << n << endl;
}
| #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main() {
ios::sync_with_stdio(false);
ll x;
cin >> x;
ll a = 100;
ll n = 0;
while (a < x) {
a *= 1.01;
n++;
// cout<<a<<endl;
}
cout << n << endl;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 63 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <unordered_set>
#include <vector>
#define Endl endl
#define inf 0x3f3f3f3f
using namespace std;
typedef long long... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <unordered_set>
#include <vector>
#define Endl endl
#define inf 0x3f3f3f3f
using namespace std;
typedef long long... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 138 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
ll x;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cin >> x;
ll k = 100;
ll k1 = 0;
while (k <= x) {
k += k / 100;
k1++;
}
cout << k1;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define ll long long
ll x;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cin >> x;
ll k = 100;
ll k1 = 0;
while (k < x) {
k += k / 100;
k1++;
}
cout << k1;
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 70 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define FOR(i) for (cin >> i; i > 0; i--)
#define elif else if
#define pb push_back
#define ll long long
#define mp make_pair
#define all(x) x.begin(), x.end()
#define re(x) ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define FOR(i) for (cin >> i; i > 0; i--)
#define elif else if
#define pb push_back
#define ll long long
#define mp make_pair
#define all(x) x.begin(), x.end()
#define re(x) ... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 78]] | 1 | 105 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ull unsigned long long
int main() {
ull x, sum = 100, count = 0;
scanf("%lld", &x);
while (x >= sum) {
sum += sum / 100;
count++;
}
printf("%lld", count - 1);
return 0;
}
| #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ull unsigned long long
int main() {
ull x, sum = 100, count = 0;
scanf("%lld", &x);
while (x > sum) {
sum += sum / 100;
count++;
}
printf("%lld", count);
return 0;
}
| [["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 47], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 33], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 0 | 67 |
x = int(input())
n = 100
count = 0
while n <= x:
n *= 1.01
n = int(n)
count += 1
print(count) | x = int(input())
n = 100
count = 0
while n < x:
n *= 1.01
n = int(n)
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 | 35 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef pair<int, int> P;
#define PI 3.14159265359
#define MOD 1000000007
const int MAX = 510000;
int main() {
unsigned long long int X;
cin >> X;
ll ans = 0;
unsigned... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef pair<int, int> P;
#define PI 3.14159265359
#define MOD 1000000007
const int MAX = 510000;
int main() {
unsigned long long int X;
cin >> X;
ll ans = 0;
unsigned... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 115 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Field = vector<vector<int>>;
using Graph = vector<vector<int>>;
using VI = vector<int>;
using VC = vector<char>;
using PI = pair<int, int>;
#define REP(i, n) for (int i = 0; i < (n); i++)
#define ALL(x) x.begin(), x.end()
const long long INF ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Field = vector<vector<int>>;
using Graph = vector<vector<int>>;
using VI = vector<int>;
using VC = vector<char>;
using PI = pair<int, int>;
#define REP(i, n) for (int i = 0; i < (n); i++)
#define ALL(x) x.begin(), x.end()
const long long INF ... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 222 |
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
String answer = "";
Scanner s = new Scanner(System.in);
int x = Integer.parseInt(s.next());
int yo = 100;
// int a = Integer.parseInt(s.next());
// int b = Integer.parseInt(s.next());
for (int i = 1;; i... | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
String answer = "";
Scanner s = new Scanner(System.in);
long x = Long.parseLong(s.next());
long yo = 100;
// int a = Integer.parseInt(s.next());
// int b = Integer.parseInt(s.next());
for (int i = 1;; i... | [["-", 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, 500, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 500, 22], ["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["+", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22]] | 3 | 102 |
k = $stdin.gets.chomp.to_i
ans = 0
n = 100
while k >= n do
n = (n.to_f * 1.01).to_i
ans += 1
end
puts ans | k = $stdin.gets.chomp.to_i
ans = 0
n = 100
while k > n do
n = (n.to_f * 1.01).to_i
ans += 1
end
puts ans | [["-", 36, 36, 0, 493, 0, 89, 15, 738, 17, 20], ["+", 36, 36, 0, 493, 0, 89, 15, 738, 17, 47]] | 4 | 37 |
x=int(input())
a=100
cnt=0
while x>=a:
a=int(a*1.01)
# print(a)
cnt+=1
print(cnt) | x=int(input())
a=100
cnt=0
while x>a:
a=int(a*1.01)
cnt+=1
print(cnt) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]] | 5 | 35 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define mod 1000000007
#define pi 3.141592653589793
typedef vector<ll> vcl;
ll gcd(ll a, ll b) {
if (b > a)
swap(a, b);
if (b == 0)
return a;
return gcd(b, a % b)... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define mod 1000000007
#define pi 3.141592653589793
typedef vector<ll> vcl;
ll gcd(ll a, ll b) {
if (b > a)
swap(a, b);
if (b == 0)
return a;
return gcd(b, a % b)... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 240 |
#include <algorithm>
#include <cassert>
#include <cmath>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
typedef long long ll;
int dx[4] = {0, 0, 1, -1};
int dy[4] = {1, -... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
typedef long long ll;
int dx[4] = {0, 0, 1, -1};
int dy[4] = {1, -... | [["-", 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], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 31, 13], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 48], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 612 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
using namespace std;
int main() {
int x;
cin >> x;
int count = 0;
int sum = 100;
;
while (x > sum) {
sum = sum + (sum / 100);
count++;
}
cout << count << endl;
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
using namespace std;
int main() {
ll x;
cin >> x;
int count = 0;
ll sum = 100;
;
while (x > sum) {
sum = sum + (sum / 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 | 70 |
import math
i = int(input())
count = 0
money = 100
while True:
if(money>i):
print(count)
break
money= math.floor(money*1.01)
count+=1 | import math
i = int(input())
count = 0
money = 100
while True:
if(money>=i):
print(count)
break
money= math.floor(money*1.01)
count+=1 | [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 47], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20]] | 5 | 44 |
#include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmin... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmin... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 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]] | 1 | 491 |
#define _USE_MATH_DEFINES
#include <algorithm>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <numeric>
#include <stdio.h>
#include <vector>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
int main() {
ll X;
cin >> X;
ll out =... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <math.h>
#include <numeric>
#include <stdio.h>
#include <vector>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
int main() {
ll X;
cin >> X;
ll out =... | [["-", 0, 57, 15, 339, 51, 16, 31, 2, 63, 22], ["-", 15, 339, 51, 16, 31, 2, 3, 4, 0, 24], ["-", 15, 339, 51, 16, 31, 2, 3, 4, 0, 25], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 98 |
import math
X = int(input())
A = 100
t = 0
while A < X:
A *= 1.01
A = math.floor(A)
t += 1 | import math
X = int(input())
A = 100
t = 0
while A < X:
A *= 1.01
A = math.floor(A)
t += 1
print(t) | [["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 35 |
//
// main.cpp
// ABC164
//
// Copyright © 2020 エロやん. All rights reserved.
//
#include <iostream>
using namespace std;
int main() {
long long X;
long long tyokin = 100;
int count = 0;
cin >> X;
while (tyokin < 100) {
tyokin = tyokin * 1.01;
count++;
}
cout << count;
return 0;
}
| //
// main.cpp
// ABC164
//
// Copyright © 2020 エロやん. All rights reserved.
//
#include <iostream>
using namespace std;
int main() {
long long X;
long long tyokin = 100;
int count = 0;
cin >> X;
while (tyokin < X) {
tyokin = tyokin * 1.01;
count++;
}
cout << count;
return 0;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 12, 22]] | 1 | 61 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll x;
cin >> x;
ll n = 100;
int cnt = 0;
while (n <= x) {
n += n * 0.01;
cnt++;
}
cout << cnt;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll x;
cin >> x;
ll n = 100;
int cnt = 0;
while (n < x) {
n += n * 0.01;
cnt++;
}
cout << cnt;
return 0;
}
| [["-", 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>
#define ll long long int
#define endl "\n"
using namespace std;
#define M 1000000007
#define pb push_back
#define rep(i, a, b) for (int i = a; i <= b; i++)
ll mod = 998244353;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
t = 1;
// cin >> t;
while (t--) {
... | #include <bits/stdc++.h>
#define ll long long int
#define endl "\n"
using namespace std;
#define M 1000000007
#define pb push_back
#define rep(i, a, b) for (int i = a; i <= b; i++)
ll mod = 998244353;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
t = 1;
// cin >> t;
while (t--) {
... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 12, 22]] | 1 | 117 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll balance = 100;
ll x;
cin >> x;
ll count = 0;
while (balance <= x) {
balance = balance + balance * 0.01;
++count;
}
cout << count << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll balance = 100;
ll x;
cin >> x;
ll count = 0;
while (balance < x) {
balance = balance + (ll)(balance * 0.01);
++count;
}
cout << count << endl;
return 0;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 0, 11, 12, 16, 12, 2, 63, 23, 0, 24], ["+", 0, 11, 12, 16, 12, 2, 63, 23, 0, 22], ["+", 0, 11, 12, 16, 12, 2, 63, 23, 0, 25], ["+", 0, 11, 12, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 11, 12, 16, 12, 2, 3, 4, 0, 25]] | 1 | 76 |
import math
x = int(input())
year = 0
y = 100
t = True
while t:
year += 1
y = math.floor(y*1.01)
if y > x:
print(year)
t = False
| import math
x = int(input())
year = 0
y = 100
t = True
while t:
year += 1
y = math.floor(y*1.01)
if y >= x:
print(year)
t = False
| [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 47 |
x=int(input())
a=100
for i in range(100000000):
a=int(a*1.01)
if(a>x):
print(i)
break | x=int(input())
a=100
for i in range(100000000):
a=int(a*1.01)
if(a>=x):
print(i+1)
break | [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 47], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 39 |
data = input()
x = int(data)
yen = 100
cnt = 0
while(1):
cnt = cnt + 1
yen = yen * 1.01
if yen >= x:
print(cnt)
break | data = input()
#data2 = input().split()
x = int(data)
#a = int(data2[0])
#b = int(data2[1])
yen = 100.0
cnt = 0
while(1):
cnt = cnt + 1
yen = int(yen * 1.01)
if yen >= x:
print(cnt)
break | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 531], ["+", 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 | 42 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vl vector<ll>
#define vi vector<int>
#define pi pair<int, int>
#define pl pair<ll, ll>
#define all(a) a.begin(), a.end()
#define mem(a, x) memset(a, x, sizeof(a))
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vl vector<ll>
#define vi vector<int>
#define pi pair<int, int>
#define pl pair<ll, ll>
#define all(a) a.begin(), a.end()
#define mem(a, x) memset(a, x, sizeof(a))
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 133 |
import math
X=int(input())
# a=int(input())
#A,B=map(int,input().split(" "))
#a=[int(_) for _ in input().split(" ")]
i=0
t=100
while t <= X:
t = math.floor(t * 1.01)
i += 1
#print(a,b)
print(i) | import math
X=int(input())
# a=int(input())
#A,B=map(int,input().split(" "))
#a=[int(_) for _ in input().split(" ")]
i=0
t=100
while t < X:
t = math.floor(t * 1.01)
i += 1
#print(a,b)
print(i) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 42 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define deb(x) cout << #x << " " << x << endl;
#define print(arr, n) \
for (int i = 0; i < n; ++i) { \
cout... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define deb(x) cout << #x << " " << x << endl;
#define print(arr, n) \
for (int i = 0; i < n; ++i) { \
cout... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18]] | 1 | 535 |
X = int(input())
cnt = 0
yokin = 100
while (X >= yokin):
yokin = int(yokin * 1.01)
cnt += 1
print(cnt)
| X = int(input())
cnt = 0
yokin = 100
while (X > yokin):
yokin = int(yokin * 1.01)
cnt += 1
print(cnt)
| [["-", 0, 656, 0, 52, 15, 23, 0, 666, 667, 20], ["+", 0, 656, 0, 52, 15, 23, 0, 666, 667, 47]] | 5 | 36 |
#include <iostream>
const int money = 100;
const double interest = 1.01;
int main() {
long long int balance;
std::cin >> balance;
int year = 0;
for (long long i = money; i <= balance; i *= interest) {
++year;
}
std::cout << year << std::endl;
return 0;
}
| #include <iostream>
const int money = 100;
const double interest = 1.01;
int main() {
long long int balance;
std::cin >> balance;
int year = 0;
for (long long i = money; i < balance; i *= interest) {
++year;
}
std::cout << year << std::endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18]] | 1 | 70 |
X = int(input())
cnt = 0
A = 100
while X>A:
A = A*1.01
cnt+=1
print(cnt) | X = int(input())
cnt = 0
A = 100
while X>A:
A = int(A*1.01)
cnt+=1
print(cnt) | [["+", 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 |
n = gets.to_i
sum = 100
count = 0
while sum <= n
sum += (sum * 0.01).floor
count += 1
end
puts count
| n = gets.to_i
sum = 100
count = 0
while sum < n
sum += (sum * 0.01).floor
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 | 30 |
X = int(input())
s= 100
for i in range(10000000):
s *= 1.01
if int(s) >= X:
print(i+1)
break | X = int(input())
s= 100
for i in range(10000000):
s *= 1.01
s = int(s)
if s >= X:
print(i+1)
break | [["-", 0, 656, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 37 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
long long x;
long long now = 100;
int main() {
scanf("%lld", &x);
for (int i = 1;; i++) {
now = now + now / 100;
if (now > x) {
printf("%d\n", i);
... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
long long x;
long long now = 100;
int main() {
scanf("%lld", &x);
for (int i = 1;; i++) {
now = now + now / 100;
if (now >= x) {
printf("%d\n", i);
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 89 |
import math
A = int(input())
X = 0
N = 100
while N < A:
N = N * 1.01
math.floor(N)
X += 1
# print(N)
print(X)
| import math
A = int(input())
X = 0
N = 100
while N < A:
N = N * 1.01
N = math.floor(N)
X += 1
# print(N)
print(X) | [["+", 0, 52, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32]] | 5 | 40 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double db;
#define Check system("pause")
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define IOS \
ios::sync_with_stdio(false); ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double db;
#define Check system("pause")
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define IOS \
ios::sync_with_stdio(false); ... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 92 |
#include <bits/stdc++.h>
using namespace std;
int main() {
double N;
cin >> N;
double now = 100;
int count = 0;
while (now < N) {
now *= 1.01;
count++;
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long N;
cin >> N;
long long now = 100;
int count = 0;
while (now < N) {
now *= 1.01;
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 | 50 |
X = int(input())
money = 100
year = 0
while X > money :
money = 1.01*money
year += 1
print(year)
| X = int(input())
money = 100
year = 0
while X > money :
money = int(1.01*money)
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, 652, 3, 4, 0, 25]] | 5 | 31 |
x=int(input)
m=100
cnt=0
while x>m:
cnt+=1
m=(m*1.01)//1
print(str(cnt))
| x=int(input())
m=100
cnt=0
while x>m:
cnt+=1
m=(m*1.01)//1
print(str(cnt))
| [["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 36 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <time.h>
using namespace std;
typedef long long ll;
const double pi = acos(-1.0);
const ll mod = 1e9 + 7;
const int inf = 0x3f3f3f3f;
// ll begin_time=clock();
// ll end_time=clock();printf("time=%lldm... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <time.h>
using namespace std;
typedef long long ll;
const double pi = acos(-1.0);
const ll mod = 1e9 + 7;
const int inf = 0x3f3f3f3f;
// ll begin_time=clock();
// ll end_time=clock();printf("time=%lldm... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 98 |
#include <bits/stdc++.h>
#define pb push_back
#define ll long long
#define si short int
#define speed ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0)
#define pill pair<ll, ll>
#define f first
#define s second
#define pilc pair<ll, char>
#define all(a) (a).begin(), (a).end()
#define rep(s, e, step) for (int i = (s... | #include <bits/stdc++.h>
#define pb push_back
#define ll long long
#define si short int
#define speed ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0)
#define pill pair<ll, ll>
#define f first
#define s second
#define pilc pair<ll, char>
#define all(a) (a).begin(), (a).end()
#define rep(s, e, step) for (int i = (s... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 144 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long x, s = 0, i = 100;
cin >> x;
while (i <= x) {
i = floor(i * 1.01);
s++;
}
cout << s;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, s = 0, i = 100;
cin >> x;
while (i < x) {
i = floor(i * 1.01);
s++;
}
cout << s;
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 55 |
import math
X = int(input())
count = 0
money = 100
while(X >= money):
money = math.floor(money + money * 0.01)
count+=1
print(count)
| import math
X = int(input())
count = 0
money = 100
while(X > money):
money = math.floor(money + money * 0.01)
count+=1
print(count)
| [["-", 0, 656, 0, 52, 15, 23, 0, 666, 667, 20], ["+", 0, 656, 0, 52, 15, 23, 0, 666, 667, 47]] | 5 | 42 |
X = int(input())
yen = 100
count = 0
while True:
yen *= 1.01
count += 1
if yen >= X:
print(count)
break | X = int(input())
yen = 100
count = 0
while True:
yen *= 1.01
yen = int(yen)
count += 1
if yen >= X:
print(count)
break | [["+", 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 | 33 |
X = int(input())
yokin = 100
i = 0
while yokin <=X:
yokin = (yokin*1.01)//1
i += 1
print(i-1) | X = int(input())
yokin = 100
i = 0
while yokin <X:
yokin = (yokin*1.01)//1
i += 1
print(i) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 37 |
X = int(input())
m = 100
y = 0
while m < X:
m += 0.01*m
y += 1
print(y) | X = int(input())
m = 100
y = 0
while m < X:
m += 0.01*m
m = int(m)
y += 1
print(y) | [["+", 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 |
a=int(input())
count=0
b=100
while b<=a:
b=b*1.01
b=int(b)
count+=1
print(count) | a=int(input())
count=0
b=100
while b<a:
b=b*1.01
b=int(b)
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 | 37 |
x = int(input())
ans = 100
cnt = 0
while(True):
ans += round(ans*0.01)
cnt += 1
if ans >= x:
print(cnt)
break | import math
x = int(input())
ans = 100
cnt = 0
while(True):
ans += math.floor(ans*0.01)
cnt += 1
if ans >= x:
print(cnt)
break | [["+", 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, 677, 12, 652, 63, 22], ["+", 0, 1, 0, 677, 12, 652, 63, 319, 500, 22], ["+", 0, 1, 0, 677, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 677, 12, 652, 63, 319, 319, 22]] | 5 | 40 |
import math
X = int(input())
yokin=100
year=0
while yokin>=X:
yokin=math.floor(yokin*1.01)
year+=1
print(year) | import math
X = int(input())
yokin=100
year=0
while yokin<X:
yokin=math.floor(yokin*1.01)
year+=1
print(year) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 38 |
// include,namespace
#include <bits/stdc++.h>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
// REPmacro
#define all(x) (x).begin(), (x).end() //ソート
#define FOR(i, x, n) for (int i = (x); i < (n); i++)
#define FOR_R(i, x, n) for (int i = (n - 1); i >= (x); i--)
#define REP... | // include,namespace
#include <bits/stdc++.h>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
// REPmacro
#define all(x) (x).begin(), (x).end() //ソート
#define FOR(i, x, n) for (int i = (x); i < (n); i++)
#define FOR_R(i, x, n) for (int i = (n - 1); i >= (x); i--)
#define REP... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 12, 22], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 291 |
from sys import stdin
n = int(stdin.readline().rstrip())
a = 100
k = 0
while a < n:
a *= 1.01
k += 1
print(k) | from sys import stdin
n = int(stdin.readline().rstrip())
a = 100
k = 0
while a < n:
a *= 1.01
a = int(a)
k += 1
print(k) | [["+", 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 | 39 |
x=int(input())
i=100
c=0
while i<=x:
i=i+(i//100)
c=c+1
print(c) | x=int(input())
i=100
c=0
while i<x:
i=i+(i//100)
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 | 37 |
X = int(input())
ans = 0
tmp = 100
while tmp < X:
tmp *= 1.01
ans += 1
print(ans) | X = int(input())
ans = 0
tmp = 100
while tmp < X:
tmp *= 1.01
tmp = tmp//1
ans += 1
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, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 29 |
X = gets.to_i
g = 100
y = 0
while g <= X
g = (g * 1.01).floor
y += 1
if g >= X
puts y
end
end | X = gets.to_i
g = 100
y = 0
while g <= X
g = (g * 1.01).floor
y += 1
if g >= X
puts y
exit
end
end | [["+", 0, 89, 8, 170, 0, 121, 64, 749, 0, 22]] | 4 | 35 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll cnt = 0;
ll num;
cin >> num;
ll des = 100;
while (des <= num) {
des *= 1.01;
cnt++;
}
cout << cnt << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll cnt = 0;
ll num;
cin >> num;
ll des = 100;
while (des < num) {
des *= 1.01;
cnt++;
}
cout << cnt << endl;
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 58 |
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define sz size()
#define ll long long
#define all(_v) _v.begin(), _v.end()
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
ll x;
cin >> x;
ll t = 100, ans = 0;
whi... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define sz size()
#define ll long long
#define all(_v) _v.begin(), _v.end()
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
ll x;
cin >> x;
ll t = 100, ans = 0;
whi... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 97 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
sc.close();
int money = 100;
long count = 0;
while (true) {
count++;
money = (int)(money * 1.01d);
if (money >= x) {
Syst... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
sc.close();
long money = 100;
long count = 0;
while (true) {
count++;
money = (long)(money * 1.01d);
if (money >= x) {
... | [["-", 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, 1, 0, 11, 12, 74, 39, 506, 0, 507], ["+", 0, 1, 0, 11, 12, 74, 39, 506, 0, 96]] | 3 | 99 |
x = int(input())
n = 100
i = 0
while n < x:
n = math.floor(n * 1.01)
i += 1
print(i) |
import math
x = int(input())
n = 100
i = 0
while n < x:
n = math.floor(n * 1.01)
i += 1
print(i) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 36 |
#include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
int main() {
unsigned long long x;
// unsigned long long nx;
int counter;
unsigned long long now = 100;
cin >> x;
while (1) {
now = now * 1.01;
counter++;
if (now >= x) {
cout << counter <... | #include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
int main() {
unsigned long long x;
// unsigned long long nx;
int counter = 0;
unsigned long long now = 100;
cin >> x;
while (1) {
now = now * 1.01;
counter++;
if (now >= x) {
cout << count... | [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 72 |
x=int(input())
n=100
s=0
while True:
n+=n*0.01
s+=1
if n>=x:
print(s)
exit() | x=int(input())
n=100
s=0
while True:
n+=n*0.01
n=n//1
s+=1
if n>=x:
print(s)
exit() | [["+", 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, 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())
i = 0
money = 100
while money < x:
money *= 1.01
money = int(money)
i += 1
print(i,money) | x = int(input())
i = 0
money = 100
while money < x:
money *= 1.01
money = int(money)
i += 1
print(i)
| [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 37 |
#pragma GCC optimize(2)
#include <bits/stdc++.h>
#define ll long long
#define fi first
#define se second
#define _for(i, a, b) for (int i = (a); i < (b); i++)
#define endl '\n'
#define inf 0x3f3f3f3f
using namespace std;
const int mod = 1e9 + 7;
const int MAX = 1e6 + 7;
// ll a[MAX];
int main() {
ios::sync_with_stdio... | #pragma GCC optimize(2)
#include <bits/stdc++.h>
#define ll long long
#define fi first
#define se second
#define _for(i, a, b) for (int i = (a); i < (b); i++)
#define endl '\n'
#define inf 0x3f3f3f3f
using namespace std;
const int mod = 1e9 + 7;
const int MAX = 1e6 + 7;
// ll a[MAX];
int main() {
ios::sync_with_stdio... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 120 |
#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
int read() {
int x;
scanf("%d", &x);
return x;
}
int main() {
i64 now = 100, ans = 0, X;
cin >> X;
while (now <= X)
++ans, now += now / 100;
printf("%lld", ans);
}
| #include <bits/stdc++.h>
using namespace std;
using i64 = long long;
int read() {
int x;
scanf("%d", &x);
return x;
}
int main() {
i64 now = 100, ans = 0, X;
cin >> X;
while (now < X)
++ans, now += now / 100;
printf("%lld", ans);
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 79 |
#include <bits/stdc++.h>
using namespace std;
typedef signed long long sll;
sll x, ans;
int main() {
cin >> x;
double n = 100.0;
while (n < x) {
n *= 1.01;
ans++;
}
cout << ans;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
typedef signed long long sll;
sll x, ans;
int main() {
cin >> x;
sll n = 100;
while (n < x) {
n *= 1.01;
ans++;
}
cout << ans;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 54 |
#pragma GCC optimize "-O3"
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <functional>
#include <iostream>
using namespace __gnu_pbds;
using namespace std;
// Declaring ordered_set
typedef tree<long long int, null_type, less<long long int>, rb_tree_tag,
... | #pragma GCC optimize "-O3"
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <functional>
#include <iostream>
using namespace __gnu_pbds;
using namespace std;
// Declaring ordered_set
typedef tree<long long int, null_type, less<long long int>, rb_tree_tag,
... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 377 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.