buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
using namespace std;
int main() {
long long a = 100;
long long x;
cin >> x;
int i = 0;
while (a >= x) {
a += a / 100;
i++;
}
cout << i << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a = 100;
long long x;
cin >> x;
int i = 0;
while (a < x) {
a += a / 100;
i++;
}
cout << i << endl;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 54 |
#include <bits/stdc++.h>
#define ll long long
#define PI 3.14159265358979323846
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
/// https://ideone.com/Fd5s8n
ll x;
cin >> x;
int a[4000];
a[0] = 100;
for (int i = 1;; i++) {
a[i] = a[i - 1] + a[i - 1] / 100;
... | #include <bits/stdc++.h>
#define ll long long
#define PI 3.14159265358979323846
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
/// https://ideone.com/Fd5s8n
ll x;
cin >> x;
ll a[4000];
a[0] = 100;
for (int i = 1;; i++) {
a[i] = a[i - 1] + a[i - 1] / 100;
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 117 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
using pint = pair<int, int>;
int main() {
ll X;
cin >> X;
ll yokin = 100;
int ans = 1;
while (X > yokin) {
yokin += yokin / 100;
... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
using pint = pair<int, int>;
int main() {
ll X;
cin >> X;
ll yokin = 100;
int ans = 0;
while (X > yokin) {
yokin += yokin / 100;
... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 83 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long A;
int B = 0;
long long C = 100;
cin >> A;
while (C <= A) {
C *= 1.01;
B++;
}
cout << B << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long A;
int B = 0;
long long C = 100;
cin >> A;
while (C < A) {
C += C / 100;
B++;
}
cout << B << endl;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 17, 108], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 107], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 9, 0, 1, 0,... | 1 | 52 |
#include <bits/stdc++.h>
using namespace std;
using ll = uint64_t;
int main() {
ll x;
cin >> x;
ll money = 100;
for (int i = 1;; i++) {
money += money / 100;
if (money >= x) {
cout << x << endl;
return 0;
}
}
} | #include <bits/stdc++.h>
using namespace std;
using ll = uint64_t;
int main() {
ll x;
cin >> x;
ll money = 100;
for (int i = 1;; i++) {
money += money / 100;
if (money >= x) {
cout << i << endl;
return 0;
}
}
} | [["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 65 |
#include <bits/stdc++.h>
using namespace std;
const int Nmax = 2e5 + 5;
const int Mod = 1e9 + 7;
const int oo = 2e9;
int k, a, b;
int main() {
/**
#ifndef ONLINE_JUDGE
ifstream cin("test.in");
#endif // ONLINE_JUDGE
*/
cin >> k >> a >> b;
for (int i = a; i <= b; i++)
if (i % k ... | #include <bits/stdc++.h>
using namespace std;
const int Nmax = 2e5 + 5;
const int Mod = 1e9 + 7;
const int oo = 2e9;
int k, a, b;
int main() {
/**
#ifndef ONLINE_JUDGE
ifstream cin("test.in");
#endif // ONLINE_JUDGE
*/
cin >> k >> a >> b;
for (int i = a; i <= b; i++)
if (i % k ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 94 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
#define rep(i, n) for (i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define sqr(x) (x) * (x)
typedef long long l... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
#define rep(i, n) for (i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define sqr(x) (x) * (x)
typedef long long l... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]] | 1 | 134 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define set_bits(a) __builtin_popcount(a)
#define pb push_back
#define pf push_front
#define mod 1000000007
#define M 998244353
#define fi first
#define se second
#define endl '\n'
#define INF 1e18
#define PI 3.14159265358979323846
#define fast ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define set_bits(a) __builtin_popcount(a)
#define pb push_back
#define pf push_front
#define mod 1000000007
#define M 998244353
#define fi first
#define se second
#define endl '\n'
#define INF 1e18
#define PI 3.14159265358979323846
#define fast ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 129 |
k=int(input())
a,b=map(int,input().split())
print('Yes' if a//k-b//k or a%k==0 else 'No') | k=int(input())
a,b=map(int,input().split())
print('OK' if a//k-b//k or a%k==0 else 'NG')
| [["-", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 41, 0, 557, 0, 6]] | 5 | 48 |
n = int(input())
a,b = map(int, input().split(' '))
for i in range(a,b+1):
if i % n == 0:
print('Yes')
break
else:
print('No') | n = int(input())
a,b = map(int, input().split(' '))
for i in range(a,b+1):
if i % n == 0:
print('OK')
break
else:
print('NG') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 61 |
#include <bits/stdc++.h>
#define IO_OP \
std::ios::sync_with_stdio(0); \
std::cin.tie(0);
#define F first
#define S second
#define V vector
#define PB push_back
#define MP make_pair
#define EB emplace_bac... | #include <bits/stdc++.h>
#define IO_OP \
std::ios::sync_with_stdio(0); \
std::cin.tie(0);
#define F first
#define S second
#define V vector
#define PB push_back
#define MP make_pair
#define EB emplace_bac... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 137 |
#include <bits/stdc++.h>
#define forn(i, n) for (int i = 0; i < int(n); ++i)
#define for1(i, n) for (int i = 1; i <= int(n); ++i)
#define ms(a, x) memset(a, x, sizeof(a))
#define F first
#define S second
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const... | #include <bits/stdc++.h>
#define forn(i, n) for (int i = 0; i < int(n); ++i)
#define for1(i, n) for (int i = 1; i <= int(n); ++i)
#define ms(a, x) memset(a, x, sizeof(a))
#define F first
#define S second
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const... | [["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 24], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 51, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 25]] | 1 | 202 |
#include <bits/stdc++.h>
using namespace std;
int a, b, c;
int main() {
cin >> a;
cin >> b >> c;
for (int i = b; i <= c; i++) {
if (i % a == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "No" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int a, b, c;
int main() {
cin >> a;
cin >> b >> c;
for (int i = b; i <= c; i++) {
if (i % a == 0) {
cout << "OK" << endl;
return 0;
}
}
cout << "NG" << endl;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 74 |
#pragma GCC optimize("Ofast")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
/*#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>*/
#define pll pair<long long, long long>
#define pb push_back
#define ll long long
#define ff first
#define ss second
#... | #pragma GCC optimize("Ofast")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
/*#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>*/
#define pll pair<long long, long long>
#define pb push_back
#define ll long long
#define ff first
#define ss second
#... | [["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 131 |
k = int(input())
a,b = map(int,input().split())
for i in range(a, b+1):
if k % i == 0:
print("OK")
exit()
print("NG") | k = int(input())
a,b = map(int,input().split())
for i in range(a, b+1):
if i % k == 0:
print("OK")
exit()
print("NG") | [["-", 8, 196, 0, 57, 15, 666, 0, 657, 31, 22], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 58 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
typedef long long ll;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (a % k == 0 || b % k == 0 || a / k != b / k) {
cout << "Yes";
} else {
cout << "No";
}
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
typedef long long ll;
int main() {
int k, a, b;
cin >> k >> a >> b;
if (a % k == 0 || b % k == 0 || a / k != b / k) {
cout << "OK";
} else {
cout << "NG";
}
}
| [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 79 |
#include <algorithm>
#include <cctype>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <regex>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
typedef int long long ll;... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <regex>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
typedef int long long ll;... | [["+", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 241 |
#include <bits/stdc++.h>
using namespace std;
void solve() {
int a, b, k;
cin >> k >> a >> b;
if (b / k - a / k > 0)
cout << "OK";
else
cout << "NG";
}
int main() {
ios::sync_with_stdio(NULL), cin.tie(0), cout.tie(0);
cout.setf(ios::fixed), cout.precision(20);
solve();
}
| #include <bits/stdc++.h>
using namespace std;
void solve() {
int a, b, k;
cin >> k >> a >> b;
if (b / k - (a - 1) / k > 0)
cout << "OK";
else
cout << "NG";
}
int main() {
ios::sync_with_stdio(NULL), cin.tie(0), cout.tie(0);
cout.setf(ios::fixed), cout.precision(20);
solve();
}
| [["+", 51, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 51, 16, 31, 16, 12, 16, 31, 23, 0, 25]] | 1 | 99 |
#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cin >> n;
int a, b;
cin >> a >> b;
cout << (b / n - a / n ? "OK" : "NG");
} | #include <bits/stdc++.h>
using namespace std;
int n;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cin >> n;
int a, b;
cin >> a >> b;
cout << (b / n - (a - 1) / n ? "OK" : "NG");
} | [["+", 0, 41, 15, 16, 12, 16, 31, 23, 0, 24], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 41, 15, 16, 12, 16, 31, 23, 0, 25]] | 1 | 64 |
// WeirdBugsButOkay
#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pb push_back
#define ff first
#define ss second
#define endl '\n'
#define _dbg(x) cout << #x << " is " << (x) << endl;
#define dbg(v, x) ... | // WeirdBugsButOkay
#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pb push_back
#define ff first
#define ss second
#define endl '\n'
#define _dbg(x) cout << #x << " is " << (x) << endl;
#define dbg(v, x) ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 169 |
K = int(input())
a,b = map(int,(input().split()))
for i in range(a,b+1):
if i%K == 0:
print("Yes")
break
else:
print("NG") | K = int(input())
a,b = map(int,(input().split()))
for i in range(a,b+1):
if i%K == 0:
print("OK")
break
else:
print("NG") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 60 |
package main
import (
"bufio"
"fmt"
"math"
"os"
"strconv"
"strings"
)
func main() {
io := NewIo()
defer io.Flush()
// AUTOGENERATE
// STR := io.Next()
// Log("string", STR)
// F := io.NextFloat()
// Log("float", F)
// parsing int array
N := io.NextInt()
Logf("%v\n", N)
A := io.NextInt()
Logf("%v... | package main
import (
"bufio"
"fmt"
"math"
"os"
"strconv"
"strings"
)
func main() {
io := NewIo()
defer io.Flush()
// AUTOGENERATE
// STR := io.Next()
// Log("string", STR)
// F := io.NextFloat()
// Log("float", F)
// parsing int array
N := io.NextInt()
Logf("%v\n", N)
A := io.NextInt()
Logf("%v... | [["+", 64, 196, 0, 1, 0, 2, 63, 438, 439, 22], ["+", 64, 196, 0, 1, 0, 2, 63, 438, 0, 131], ["+", 64, 196, 0, 1, 0, 2, 63, 438, 119, 120], ["+", 64, 196, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 2, 3, 4, 0, 433], ["+", 64, 196, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 165]] | 7 | 1,868 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, k;
cin >> k >> a >> b;
int x = b / k - (a - 1) / k;
if (x == 0)
cout << "OK" << endl;
else
cout << "NG" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, k;
cin >> k >> a >> b;
int x = b / k - (a - 1) / k;
if (x == 0)
cout << "NG" << endl;
else
cout << "OK" << endl;
return 0;
}
| [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 68 |
#pragma region Macros
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define int ll
using vi = vector<int>;
using vvi = vector<vi>;
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define ALL(x) (x).begin(), (x).end()
#define SIZE(x) ((ll)(x).size())
#define MAX(x) *max_elemen... | #pragma region Macros
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define int ll
using vi = vector<int>;
using vvi = vector<vi>;
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define ALL(x) (x).begin(), (x).end()
#define SIZE(x) ((ll)(x).size())
#define MAX(x) *max_elemen... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 17, 108], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 107], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 9, 0, 1, 0,... | 1 | 358 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
long long int t, c = 0;
scanf("%lld", &t);
long long int yen = 100, amt = 0;
while (yen <= t) {
++c;
yen = yen + (long long int)(yen) / 100;
}
printf("%lld", c);
} | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
long long int t, c = 0;
scanf("%lld", &t);
long long int yen = 100, amt = 0;
while (yen < t) {
++c;
yen = yen + (long long int)(yen) / 100;
}
printf("%lld", c);
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 79 |
X = int(input())
yen = 100
ret = 0
while yen<X:
yen = 101*yen/100
ret += 1
print(ret) | X = int(input())
yen = 100
ret = 0
while yen<X:
yen = 101*yen//100
ret += 1
print(ret)
| [["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676]] | 5 | 33 |
X = int(input())
m = 100
a = 0
while m < X:
m = m + m * 0.01
a += 1
print(a) | X = int(input())
m = 100
a = 0
while m < X:
m = m + m // 100
a += 1
print(a) | [["-", 0, 1, 0, 662, 12, 657, 12, 657, 17, 48], ["-", 0, 1, 0, 662, 12, 657, 12, 657, 12, 531], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 17, 676], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 12, 612]] | 5 | 33 |
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, start, end) for (uint64_t i = start; i < end; i++)
#define REP(i, n) FOR(i, 0, n)
// 最大公約数gcd
// 最小公倍数lcm=m*n/gcd
uint64_t gcd(uint64_t m, uint64_t n) {
uint64_t temp;
while (m % n != 0) {
temp = n;
n = m % n;
m = temp;
}
return n;
}
ui... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, start, end) for (uint64_t i = start; i < end; i++)
#define REP(i, n) FOR(i, 0, n)
// 最大公約数gcd
// 最小公倍数lcm=m*n/gcd
uint64_t gcd(uint64_t m, uint64_t n) {
uint64_t temp;
while (m % n != 0) {
temp = n;
n = m % n;
m = temp;
}
return n;
}
ui... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 107], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 9, 0, 1, 0,... | 1 | 420 |
#include <iostream>
using namespace std;
#define int long long
signed main() {
// Your code here!
int i, p;
int ans = 0;
cin >> i;
p = 100;
for (int o = 1;; o++) {
p = p * 1.01;
if (p >= i) {
cout << o;
return 0;
}
}
/*
while(p < i)
{
ans ++;
p *= 1.01;
}
co... | #include <iostream>
using namespace std;
#define int long long
signed main() {
// Your code here!
int i, p;
int ans = 0;
cin >> i;
p = 100;
for (int o = 1;; o++) {
p += (p / 100);
if (p >= i) {
cout << o;
return 0;
}
}
/*
while(p < i)
{
ans ++;
p *= 1.01;
}
... | [["-", 0, 7, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 107], ["+", 8, 9, 0, 1, 0, 11, 12, 23, 0, 24], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 23, 0, 16, 17, 85], ["+", 0, 1, 0, 11, 12, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12... | 1 | 69 |
a=int(input())
c=100
x=0
while c<=a:
c=c+c//100
x=x+1
print(x) | a=int(input())
c=100
x=0
while c<a:
c=c+c//100
x=x+1
print(x) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 35 |
k=int(input())
x=100
count=0
while True:
x+=(x/100)
count+=1
if (x>k) or (x==k):
break
print(count) | k=int(input())
x=100
count=0
while True:
x+=x//100
count+=1
if (x>k) or (x==k):
break
print(count)
| [["-", 8, 196, 0, 1, 0, 677, 12, 23, 0, 24], ["-", 0, 1, 0, 677, 12, 23, 0, 657, 17, 85], ["+", 8, 196, 0, 1, 0, 677, 12, 657, 17, 676], ["-", 8, 196, 0, 1, 0, 677, 12, 23, 0, 25]] | 5 | 45 |
#include <iostream>
using namespace std;
int main() {
int X, P, a;
cin >> X;
P = 100;
a = 0;
do {
P += P / 100;
a++;
} while (P < X);
cout << a;
return 0;
} | #include <iostream>
using namespace std;
int main() {
long long int X, P, a;
cin >> X;
P = 100;
a = 0;
do {
P += P / 100;
a++;
} while (P < X);
cout << a;
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 57 |
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <climits>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <functional>
#incl... | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <climits>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <functional>
#incl... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 121 |
x = int(input())
ans = 0
m = 100
while m<=x:
ans += 1
m += m//100
print(ans)
| x = int(input())
ans = 0
m = 100
while m<x:
ans += 1
m += m//100
print(ans) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 31 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long x, c;
cin >> x;
long long a = 100;
while (a < x) {
c++;
a *= 1.01;
}
cout << c;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, c = 0;
cin >> x;
long long a = 100;
while (a < x) {
c++;
a *= 1.01;
}
cout << c;
return 0;
}
| [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 50 |
x = int(input())
y = 100
ans = 0
while y < x:
y = y*1.01
ans += 1
print(ans) | x = int(input())
y = 100
ans = 0
while y < x:
y += y//100
ans += 1
print(ans) | [["-", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 48], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 12, 531], ["+", 8, 196, 0, 1, 0, 677, 12, 657, 17, 676], ["+", 8, 196, 0, 1, 0, 677, 12, 657, 12, 612]] | 5 | 31 |
X = int(input())
i = 100
cnt = 0
while i<X:
i =i*101//1
cnt += 1
print(cnt) | X = int(input())
i = 100
cnt = 0
while i<X:
i =i*1.01//1
cnt += 1
print(cnt) | [["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 531]] | 5 | 33 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
typedef long long ll;
constexpr double PI = 3.141592653589793;
constexpr ... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
typedef long long ll;
constexpr double PI = 3.141592653589793;
constexpr ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 195 |
import math
def main():
deposit = 100
X = int(input())
year = 0
while X >= deposit:
deposit = int(deposit * 1.01)
year +=1
print(year)
if __name__ == "__main__":
main()
| import math
def main():
deposit = 100
X = int(input())
year = 0
while X > deposit:
deposit = int(deposit * 1.01)
year +=1
print(year)
if __name__ == "__main__":
main()
| [["-", 0, 14, 8, 196, 0, 52, 15, 666, 667, 20], ["+", 0, 14, 8, 196, 0, 52, 15, 666, 667, 47]] | 5 | 51 |
#include <iostream>
using namespace std;
int main() {
int X;
int ans = 0;
double many = 100;
cin >> X;
while (many < X) {
many += (int)(many * 0.01);
++ans;
}
cout << ans << endl;
} | #include <iostream>
using namespace std;
int main() {
long long X;
int ans = 0;
long long many = 100;
cin >> X;
while (many < X) {
many += (long long)(many * 0.01);
++ans;
}
cout << ans << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 11, 12, 74, 39, 77, 39, 40], ["+", 0, 11, 12, 74, 39, 77, 39, 86, 0, 96]] | 1 | 57 |
x = int(input())
y = 100
count = 0
while (True):
if y <= x:
y *= 1.01
y = int(y)
count += 1
else:
break
print(count) | x = int(input())
y = 100
count = 0
while (True):
if y < x:
y *= 1.01
y = int(y)
count += 1
else:
break
print(count) | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18]] | 5 | 43 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
boolean flg = true;
int year = 0;
long money = 100;
long counter = 0;
while (flg) {
money *= 1.01;
counter += 1;
if (num <= mone... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long num = sc.nextLong();
boolean flg = true;
int year = 0;
long money = 100;
long counter = 0;
while (flg) {
money *= 1.01;
counter += 1;
if (num <= mo... | [["-", 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 | 99 |
((stdin) => {
let b = 100;
let i = 0;
for (i = 0; b >= +stdin; i++) {
b = Math.floor(b * 1.01);
}
console.log(i);
})(require('fs').readFileSync('/dev/stdin', 'UTF-8'));
| ((stdin) => {
let b = 100;
let i = 0;
for (i = 0; b < +stdin; i++) {
b = Math.floor(b * 1.01);
}
console.log(i);
})(require('fs').readFileSync('/dev/stdin', 'UTF-8'));
| [["-", 8, 556, 0, 7, 15, 1, 0, 16, 17, 20], ["+", 8, 556, 0, 7, 15, 1, 0, 16, 17, 18]] | 2 | 72 |
/*
ID: sixathofpain
TASK: friday
LANG: C++
*/
//#pragma GCC optimize("Ofast")
//#pragma GCC optimize ("unroll-loops")
//#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using ... |
/*
ID: sixathofpain
TASK: friday
LANG: C++
*/
//#pragma GCC optimize("Ofast")
//#pragma GCC optimize ("unroll-loops")
//#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using ... | [["+", 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 | 306 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
int p = 100, step = 0;
while (p < x) {
p += p / 100;
step++;
}
cout << step << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long p = 100, step = 0;
while (p < x) {
p += p / 100;
step++;
}
cout << step << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 51 |
import math
X = int(input())
yen = 100
n = 0
while yen < X:
n = n + 1
yen = math.floor(yen*1.01*n)
if X <= yen:
print(n) | import math
X = int(input())
yen = 100
n = 0
while yen < X:
n = n + 1
yen = math.floor(yen*1.01)
if X <= yen:
print(n) | [["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 48], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 12, 22]] | 5 | 47 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
typedef long long ll;
double x;
int main() {
scanf("%lf", &x);
/* double r=1.0*x/100;
ll ans=(ll)ceil((log(r)/log(1.01)));
printf("%lld\n",ans);*/
double cur = 100.0;
int cnt =... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
typedef long long ll;
double x;
int main() {
scanf("%lf", &x);
/* double r=1.0*x/100;
ll ans=(ll)ceil((log(r)/log(1.01)));
printf("%lld\n",ans);*/
double cur = 100.0;
int cnt =... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 84 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long X;
cin >> X;
long A = 100;
long ans = 0;
while (A <= X) {
A += A / 100;
ans++;
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long X;
cin >> X;
long A = 100;
long ans = 0;
while (A < X) {
A += A / 100;
ans++;
}
cout << ans << endl;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 52 |
import math
x=int(input())
n=0
start=100
while True:
n+=1
start+=start/100
start=math.floor(start)
if start>=x:
print(start)
print(n)
break | import math
x=int(input())
n=0
start=100
while True:
n+=1
start+=start/100
start=math.floor(start)
if start>=x:
print(n)
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 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
template <typename T> inline void print(T val) { cout << val << '\n'; }
template <typename Iterator> inline void print(Iterator begin, Iterator end) {
for (auto it = begin; it != end; it = next(it)) {
cout << *... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
template <typename T> inline void print(T val) { cout << val << '\n'; }
template <typename Iterator> inline void print(Iterator begin, Iterator end) {
for (auto it = begin; it != end; it = next(it)) {
cout << *... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25]] | 1 | 297 |
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int x;
cin >> x;
long long i = 100;
int ans = 0;
while (i < x) {
i += i / 100;
ans++;
}
cout << ans << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
long long x;
cin >> x;
long long i = 100;
int ans = 0;
while (i < x) {
i += i / 100;
ans++;
}
cout << ans << endl;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 66 |
function Main(input) {
x = input.split("\n");
x = parseInt(x[0], 10);
money = 100;
interest = 1.01;
years = 0;
while (money <= x) {
money = money * interest;
money = Math.floor(money);
years += 1;
}
console.log(years);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
| function Main(input) {
x = input.split("\n");
x = parseInt(x[0], 10);
money = 100;
interest = 1.01;
years = 0;
while (money < x) {
money = money * interest;
money = Math.floor(money);
years += 1;
}
console.log(years);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
| [["-", 8, 556, 0, 52, 15, 23, 0, 16, 17, 19], ["+", 8, 556, 0, 52, 15, 23, 0, 16, 17, 18]] | 2 | 97 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Long n = sc.nextLong();
Long money = 100L;
int y = 1;
while (money < n) {
money += money / 100;
y++;
}
System.out.println(y);
}
} | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Long n = sc.nextLong();
Long money = 100L;
int y = 0;
while (money < n) {
money += money / 100;
y++;
}
System.out.println(y);
}
} | [["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499]] | 3 | 80 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
int n;
cin >> n;
int as = 100;
int ans = 0;
while (as < n) {
as += n / 100;
ans++;
}
cout << ans << "\n";
} | #include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main() {
int n;
cin >> n;
int as = 100;
int ans = 0;
while (as < n) {
as += as / 100;
ans++;
}
cout << ans << "\n";
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22]] | 1 | 57 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main(void) {
int target;
int b = 100;
int cnt = 0;
cin >> target;
while (target > b) {
b += b / 100;
cnt++;
}
cout << cnt;
return 0;
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main(void) {
ll target;
ll b = 100;
int cnt = 0;
cin >> target;
while (target > b) {
b += b / 100;
cnt++;
}
cout << cnt;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 78 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X;
cin >> X;
int64_t j = 100, i = 0;
for (; j < X; i++)
j += j / 100;
cout << i << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t X;
cin >> X;
int64_t j = 100, i = 0;
for (; j < X; i++)
j += j / 100;
cout << i << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 50 |
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
var sc = bufio.NewScanner(os.Stdin)
func main() {
x := scanInt()
var mon int
var ans int
mon = 100
for {
if x >= mon {
break
}
mon += mon / 100
ans++
}
fmt.Println(ans)
}
func scanInt() int {
sc.Scan()
i, e := strconv.Atoi(sc.Text())
i... | package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
var sc = bufio.NewScanner(os.Stdin)
func main() {
x := scanInt()
var mon int
var ans int
mon = 100
for {
if x <= mon {
break
}
mon += mon / 100
ans++
}
fmt.Println(ans)
}
func scanInt() int {
sc.Scan()
i, e := strconv.Atoi(sc.Text())
i... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19], ["-", 36, 36, 36, 36, 36, 36, 0, 434, 0, 165]] | 7 | 133 |
x = int(input())
n, y = 100, 0
while n < x:
n = n * 1.01
y = y + 1
print(y) | x = int(input())
n, y = 100, 0
while n < x:
n = n * 101 // 100
y = y + 1
print(y) | [["-", 8, 196, 0, 1, 0, 662, 12, 657, 12, 531], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 34 |
package main
import "fmt"
func main() {
var x int
fmt.Scan(&x)
m := 100
y := 0
for {
y++
m += m / 100
if m > x {
break
}
}
fmt.Println(y)
} | package main
import "fmt"
func main() {
var x int
fmt.Scan(&x)
m := 100
y := 0
for {
y++
m += m / 100
if m >= x {
break
}
}
fmt.Println(y)
} | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20]] | 7 | 63 |
#include <stdio.h>
int main() {
unsigned long long x, i, b = 100;
scanf("%llu", &x);
while (b < x) {
b *= 1.01;
i++;
}
printf("%llu", i);
return 0;
} | #include <stdio.h>
int main() {
unsigned long long x, i = 0, b = 100;
scanf("%llu", &x);
while (b < x) {
b *= 1.01;
i++;
}
printf("%llu", i);
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 0 | 56 |
#include <bits/stdc++.h>
typedef long long LL;
using namespace std;
int main() {
LL X;
cin >> X;
LL deposit = 100;
long double interest;
int i = 0;
while (deposit < X) {
deposit = deposit + (LL)(deposit / 100 + 0.001);
}
cout << deposit << endl;
return 0;
}
| #include <bits/stdc++.h>
typedef long long LL;
using namespace std;
int main() {
LL X;
cin >> X;
LL deposit = 100;
long double interest;
int i = 0;
while (deposit < X) {
deposit = deposit + (LL)(deposit / 100 + 0.001);
i++;
}
cout << i << endl;
return 0;
}
| [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 29], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 70 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
cin >> X;
long long prod = 100;
int count = 0;
while (X >= prod) {
prod += prod / 100;
count++;
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
cin >> X;
long long prod = 100;
int count = 0;
while (X > prod) {
prod += prod / 100;
count++;
}
cout << count << endl;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 54 |
m = 100
x = gets.to_i
cnt = 0
while m <= x
m *= 1.01
m = m.to_i
cnt += 1
end
puts cnt | m = 100
x = gets.to_i
cnt = 0
while m < x
m *= 1.01
m = m.to_i
cnt += 1
end
puts cnt | [["-", 36, 36, 0, 493, 0, 89, 15, 738, 17, 19], ["+", 36, 36, 0, 493, 0, 89, 15, 738, 17, 18]] | 4 | 29 |
#include <stdio.h>
int main(void) {
long int deposit;
long int X;
int i;
scanf("%d", &X);
deposit = 100;
for (i = 0; deposit < X; i++) {
deposit *= 1.01;
}
printf("%d\n", i);
return 0;
} | #include <stdio.h>
int main(void) {
long int deposit;
long int x;
int i;
scanf("%ld", &x);
deposit = 100;
for (i = 0; deposit < x; i++) {
deposit *= 1.01;
}
printf("%d\n", i);
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 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, 66, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22... | 0 | 66 |
class Main {
public static void main(String[] s) {
long i = 1, a = 101, o = new java.util.Scanner(System.in).nextLong();
for (; a < o; i++)
a += a / 101;
System.out.print(i);
}
} | class Main {
public static void main(String[] s) {
long i = 1, a = 101, o = new java.util.Scanner(System.in).nextLong();
for (; a < o; i++)
a += a / 100;
System.out.print(i);
}
} | [["-", 0, 7, 8, 1, 0, 11, 12, 16, 12, 499], ["+", 0, 7, 8, 1, 0, 11, 12, 16, 12, 499]] | 3 | 68 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a;
cin >> a;
int b = 100;
int i = 0;
while (a > b) {
b += b / 100;
i++;
}
cout << i << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int a;
cin >> a;
long long int b = 100;
int i = 0;
while (a > b) {
b += b / 100;
i++;
}
cout << i << endl;
}
| [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 52 |
X = int(input())
money = 100
year = 0
while True:
if money > X:
print(year)
break
else:
money = int(money*1.01)
year += 1 | X = int(input())
money = 100
year = 0
while True:
if money >= X:
print(year)
break
else:
money = money + int(money*0.01)
year += 1 | [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 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]] | 5 | 40 |
x = int(input())
year = 0
num = 100
while num < x:
num = num * 1.01
year += 1
print(year) | x = int(input())
year = 0
num = 100
while num < x:
num = num * 1.01
year += 1
num = int(num)
print(year) | [["+", 0, 52, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 31 |
#include <stdio.h>
int main(void) {
long x, a = 100;
int i = 0;
scanf("%ld", &x);
while (a <= x) {
a *= 1.01;
i++;
}
printf("%d", i);
return 0;
}
| #include <stdio.h>
int main(void) {
long x, a = 100;
int i = 0;
scanf("%ld", &x);
while (a < x) {
a *= 1.01;
i++;
}
printf("%d", i);
return 0;
}
| [["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 18]] | 0 | 58 |
i = 0
x = int(input())
y = 100
while x >= y:
y = int(y * 101 /100)
i += 1
print(i)
| i = 0
x = int(input())
y = 100
while x > y:
y = int(y * 101 /100)
i += 1
print(i)
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47]] | 5 | 36 |
#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;
typedef tree<int, null_type, less<int>, rb_tree_tag,
tree_order_statistics_node_update>
indexed_set;
mt19937 rng((uint32_t)chrono::steady_clock::now()... | #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;
typedef tree<int, null_type, less<int>, rb_tree_tag,
tree_order_statistics_node_update>
indexed_set;
mt19937 rng((uint32_t)chrono::steady_clock::now()... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 131 |
#include <bits/stdc++.h>
#define this ->tt
#define long long ll
using namespace std;
int main() {
int a, b = 100, c = 0;
cin >> a;
while (b < a) {
b = b + (b / 100);
c++;
}
cout << c;
return 0;
}
/*
▀█████████▄ ▄████████ ▄████████ ▄████████
███ ███ ███ ███ ███ ███ ███ ... | #include <bits/stdc++.h>
#define tt this->
#define ll long long
using namespace std;
int main() {
ll a, b = 100, c = 0;
cin >> a;
while (b < a) {
b = b + (b / 100);
c++;
}
cout << c;
return 0;
}
/*
▀█████████▄ ▄████████ ▄████████ ▄████████
███ ███ ███ ███ ███ ███ ███ ... | [["-", 36, 36, 36, 36, 0, 30, 0, 58, 141, 22], ["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 141, 22], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 62 |
x = int(input())
d = 100
i = 0
while d <= x:
d += d//100
i += 1
else:
print(i) | x = int(input())
d = 100
i = 0
while d < x:
d += d//100
i += 1
else:
print(i) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 33 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long int x, ans = 0;
double sum = 100.0;
cin >> x;
while (sum < x) {
sum += (sum * 0.01); // cout<<sum<<"\n";
ans++;
}
cout << ans << "\n";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long int x, ans = 0;
double sum = 100.0;
cin >> x;
while (sum < x) {
sum += floor(sum * 0.01); // cout<<sum<<"\n";
ans++;
}
cout << ans << "\n";
return 0;
}
| [["+", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22]] | 1 | 82 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y = 100, i = 0;
cin >> x;
while (y < x) {
y += y / 100;
i++;
}
cout << i;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, y = 100, i = 0;
cin >> x;
while (y < x) {
y += y / 100;
i++;
}
cout << i;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 48 |
#include <iostream>
using namespace std;
int main() {
int border{};
cin >> border;
long long int year = 0, money = 100;
while (money < border) {
money *= 1.01;
++year;
}
cout << year << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
long long int border{};
cin >> border;
long long int year = 0, money = 100;
while (money < border) {
money *= 1.01;
++year;
}
cout << year << endl;
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 56 |
goal = int(input())
count = 0
money = 100
while money < goal:
count += 1
money = int(money**1.01)
print(count) | goal = int(input())
count = 0
money = 100
while money < goal:
count += 1
money = int(money*1.01)
print(count) | [["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 578], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 48]] | 5 | 34 |
//インクルード(アルファベット順)
#include <algorithm> //sort,二分探索,など
#include <bitset> //固定長bit集合
#include <cmath> //pow,logなど
#include <complex> //複素数
#include <deque> //両端アクセスのキュー
#include <functional> //sortのgreater
#include <iomanip> //setprecision(浮動小数点の出力の誤差)
#include <iostream> //入出力
#include <iterator>... | //インクルード(アルファベット順)
#include <algorithm> //sort,二分探索,など
#include <bitset> //固定長bit集合
#include <cmath> //pow,logなど
#include <complex> //複素数
#include <deque> //両端アクセスのキュー
#include <functional> //sortのgreater
#include <iomanip> //setprecision(浮動小数点の出力の誤差)
#include <iostream> //入出力
#include <iterator>... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 0, 1, 0, 11, 12, 16, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 211 |
#include <iostream>
using namespace std;
int main() {
int nowmoney = 100, x, year = 0;
cin >> x;
while (x < nowmoney) {
nowmoney = nowmoney * 1.01;
year++;
}
cout << year << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
unsigned long long int nowmoney = 100, x;
int year = 0;
cin >> x;
while (x > nowmoney) {
nowmoney = nowmoney * 1.01;
year++;
}
cout << year << endl;
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 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], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 53 |
import math
X=int(input())
count=0
# count=float(count)
atcor=100
atcor=int(atcor)
while True:
if atcor>X:
print(count)
break
else:
p=atcor/100
atcor=atcor+p
atcor=math.floor(atcor)
count+=1
| import math
X=int(input())
count=0
# count=float(count)
atcor=100
atcor=int(atcor)
while True:
if atcor>=X:
print(count)
break
else:
p=atcor/100
atcor=atcor+p
atcor=math.floor(atcor)
count+=1
| [["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 20]] | 5 | 59 |
x=int(input())
total=100
years=0
while total<x:
total*=1.01
years+=1
print(years) | x=int(input())
total=100
years=0
while total<x:
total*=1.01
years+=1
total=total//1
print(years)
| [["+", 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.chomp.to_i
m = 100
i = 0
loop do
i = i + 1;
m += m / 100
break if m > x
end
puts i
| x = gets.chomp.to_i
m = 100
i = 0
loop do
i = i + 1;
m += m / 100
break if m >= x
end
puts i
| [["-", 196, 737, 8, 736, 0, 751, 15, 738, 17, 47], ["+", 196, 737, 8, 736, 0, 751, 15, 738, 17, 20]] | 4 | 34 |
#include <iostream>
#include <math.h>
using namespace std;
/*
double logn(double base, double antilog) {
return log(antilog) / log((double)base);
}
*/
int main() {
long long st = 100;
int n = 0, cnt = 0;
// double tmp1,tmp2;
cin >> n;
while (1) {
st = st + st / 100;
cnt++;
if (st >= n) {
... | #include <iostream>
#include <math.h>
using namespace std;
/*
double logn(double base, double antilog) {
return log(antilog) / log((double)base);
}
*/
int main() {
long long st = 100;
long long n = 0, cnt = 0;
// double tmp1,tmp2;
cin >> n;
while (1) {
st = st + st / 100;
cnt++;
if (st >= n)... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 75 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
int money = 100;
int year = 0;
while (money <= x - 1) {
money += money / 100;
year++;
}
cout << year << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long x;
cin >> x;
long money = 100;
long year = 0;
while (money <= x - 1) {
money += money / 100;
year++;
}
cout << year << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 54 |
X=int(input())
count=0
i = 100
while X>=i:
i = int(i * (1+0.01))
count = count +1
print(count) | X=int(input())
count=0
i = 100
while X>i:
i = int(i * (1+0.01))
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 | 40 |
#include <iostream>
using namespace std;
int main() {
double x, d = 100;
long long y = 0;
cin >> x;
while (d < x) {
d = d * 1.01;
y++;
}
cout << y << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
long long x, d = 100, y = 0;
cin >> x;
while (d < x) {
d = d * 1.01;
y++;
}
cout << y << endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21]] | 1 | 55 |
#include <iomanip>
#include <iostream>
#include <math.h>
#include <string>
#define M_PI 3.14159265358979323846
#include <vector>
using namespace std;
int main() {
unsigned long long int x;
cin >> x;
unsigned long long int a = 100;
int t = 0;
while (a < x) {
a += 0.1 * a;
t++;
}
cout << t;
}
| #include <iomanip>
#include <iostream>
#include <math.h>
#include <string>
#define M_PI 3.14159265358979323846
#include <vector>
using namespace std;
int main() {
unsigned long long int x;
cin >> x;
unsigned long long int a = 100;
int t = 0;
while (a < x) {
a += 0.01 * a;
t++;
}
cout << t;
}
| [["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13]] | 1 | 67 |
X=int(input())
year = 0
deposit = 100
while deposit < x :
deposit = deposit*101//100
year += 1
print(year)
| X=int(input())
year = 0
deposit = 100
while deposit < X :
deposit = deposit*101//100
year += 1
print(year)
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 0, 22]] | 5 | 33 |
<?php
fscanf(STDIN, "%d", $x);
$money = 100;
$year = 0;
while($money < $x){
$money = $money * 1.01;
$year++;
}
echo $year;
?> | <?php
fscanf(STDIN, "%d", $x);
$money = 100;
$year = 0;
while($money < $x){
$money = floor($money * 1.01);
$year++;
};
echo $year;
?> | [["+", 8, 9, 0, 1, 0, 11, 12, 613, 63, 141], ["+", 0, 1, 0, 11, 12, 613, 3, 3, 0, 24], ["+", 0, 1, 0, 11, 12, 613, 3, 3, 0, 25], ["+", 36, 36, 36, 36, 0, 493, 0, 260, 0, 35]] | 6 | 50 |
x = int(input())
year = 0
money = 100
while(True):
money *= 1.01
money = money // 1
year += 1
if(money > x):
break
print(str(year))
| x = int(input())
year = 0
money = 100
while(True):
money *= 1.01
money = money // 1
year += 1
if(money >= x):
break
print(str(year))
| [["-", 8, 196, 0, 57, 15, 23, 0, 666, 667, 47], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 20]] | 5 | 45 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int64_t X, m;
m = 100;
cin >> X;
int y = 0;
for (int i = 0; i < X; ++i) {
++y;
m *= 1.01;
if (m > X)
break;
}
cout << y << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t X, m;
m = 100;
cin >> X;
int y = 0;
for (int i = 0; i < X; ++i) {
++y;
m *= 1.01;
if (m >= X)
break;
}
cout << y << endl;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 67 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define REP(i, a, n, op) for (int i = a; i < (int)(n); op##op##i)
#define cout(val) cout << val << endl
using namespace std;
int main() {
long long int x, p = 100;
int count = 0;
cin >> x;
while (x >= p) {
p *= 1.01;
count++... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define REP(i, a, n, op) for (int i = a; i < (int)(n); op##op##i)
#define cout(val) cout << val << endl
using namespace std;
int main() {
long long int x, p = 100;
int count = 0;
cin >> x;
while (x > p) {
p *= 1.01;
count++;... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 76 |
X = int(input())
year = 0
deposit = 100
if deposit < X:
deposit = deposit*101//100
year += 1
print(year) | X = int(input())
year = 0
deposit = 100
while deposit < X:
deposit = deposit*101//100
year += 1
print(year) | [["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 36, 36, 0, 656, 0, 52, 0, 89]] | 5 | 33 |
# -*- coding: <encoding name> -*-
x = int(input())
deposit = 100
year = 0
while deposit < x:
year += 1
deposit += deposit * 0.01
print(year) | # -*- coding: <encoding name> -*-
x = int(input())
deposit = 100
year = 0
while deposit < x:
year += 1
deposit = deposit * 101 // 100
print(year) | [["-", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["-", 8, 196, 0, 1, 0, 677, 12, 657, 12, 531], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 32 |
#include <bits/stdc++.h>
using namespace std;
int main() {
double x;
cin >> x;
int cnt = 0;
double sum = 100;
while (sum < x) {
sum = sum + sum * 0.01;
cnt++;
}
cout << cnt << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
double x;
cin >> x;
double cnt = 0;
int64_t sum = 100;
while (sum < x) {
sum = sum + sum * 0.01;
cnt++;
}
cout << cnt << endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 57 |
#include <iostream>
using namespace std;
int main() {
long long x;
long long m = 100.0;
int y = 0;
cin >> x;
while (m < x) {
// m = m * 1.01;
m += m / 100;
}
cout << y << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
long long x;
long long m = 100.0;
long long y = 0;
cin >> x;
while (m < x) {
// m = m * 1.01;
m += m / 100;
y++;
}
cout << y << endl;
return 0;
} | [["-", 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, 1, 0, 35], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 29]] | 1 | 55 |
x = int(input())
c = 100
r = 0
while c <= x:
c = int(c*1.01)
r += 1
print(r) | x = int(input())
c = 100
r = 0
while c < x:
c = c + int(c*0.01)
r += 1
print(r) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18], ["+", 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]] | 5 | 34 |
X = int(input())
year = 0
money = 100
while money > X:
year += 1
money = int(money*1.01)
print(int(year)) | X = int(input())
year = 0
money = 100
while money < X:
year += 1
money = int(money*1.01)
print(int(year)) | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18]] | 5 | 37 |
#include <bits/stdc++.h>
#include <math.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
int x;
cin >> x;
int p = 100;
int step = 0;
while (p < x) {
p += p / 100;
step++;
}
cout << step << endl;
} | #include <bits/stdc++.h>
#include <math.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
long long x;
cin >> x;
long long p = 100;
int step = 0;
while (p < x) {
p += p / 100;
step++;
}
cout << step << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 62 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll i, x, cnt;
cin >> x;
i = 100;
cnt = 0;
while (i <= x) {
i += i / 100;
cnt++;
}
cout << cnt << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll i, x, cnt;
cin >> x;
i = 100;
cnt = 0;
while (i < x) {
i += i / 100;
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 | 63 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.