problem_id stringlengths 6 6 | language stringclasses 2
values | original_status stringclasses 3
values | original_src stringlengths 19 243k | changed_src stringlengths 19 243k | change stringclasses 3
values | i1 int64 0 8.44k | i2 int64 0 8.44k | j1 int64 0 8.44k | j2 int64 0 8.44k | error stringclasses 270
values | stderr stringlengths 0 226k |
|---|---|---|---|---|---|---|---|---|---|---|---|
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
#define console
using namespace std;
#ifndef console
ifstream fin("data.in");
ofstream fout("data.out");
#else
#define fin cin
#define fout cout
#endif
#define usain_bolt() \
(ios_base::sync_with_stdio(false), fin.tie(NULL), fout.tie(N... | #include <bits/stdc++.h>
#define console
using namespace std;
#ifndef console
ifstream fin("data.in");
ofstream fout("data.out");
#else
#define fin cin
#define fout cout
#endif
#define usain_bolt() \
(ios_base::sync_with_stdio(false), fin.tie(NULL), fout.tie(N... | replace | 17 | 18 | 17 | 18 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, sum = 100, i = 0;
cin >> X;
while (sum < X) {
sum += sum / 100;
i++;
}
cout << i;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long X, sum = 100, i = 0;
cin >> X;
while (sum < X) {
sum += sum / 100;
i++;
}
cout << i;
}
| replace | 4 | 5 | 4 | 5 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int main() {
int X, num = 100, cou = 0;
cin >> X;
while (true) {
num += num * 0.01;
cou++;
if (num >= X)
break;
}
cout << cou << endl;
} | #include <iostream>
using namespace std;
int main() {
unsigned long int X, num = 100;
int cou = 0;
cin >> X;
while (true) {
num += num * 0.01;
cou++;
if (num >= X)
break;
}
cout << cou << endl;
} | replace | 3 | 4 | 3 | 5 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, count = 0;
cin >> x;
long long a = 100;
while (a < x) {
a += (1 / 100) * a;
count++;
}
cout << count << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, count = 0;
cin >> x;
long long a = 100;
while (a < x) {
a += a / 100;
count++;
}
cout << count << endl;
return 0;
} | replace | 8 | 9 | 8 | 9 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
int a = 100, x;
int year = 0;
cin >> x;
while (a < x) {
a = a * 1.01;
year = year + 1;
}
cout << year << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, x;
a = 100;
int year = 0;
cin >> x;
while (a < x) {
a = a * 1.01;
year = year + 1;
}
cout << year << endl;
}
| replace | 4 | 5 | 4 | 6 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <algorithm>
#include <bitset>
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iso646.h>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
#ifndef M_PI
#define M_PI 3.14159265... | #include <algorithm>
#include <bitset>
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iso646.h>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
#ifndef M_PI
#define M_PI 3.14159265... | replace | 40 | 41 | 40 | 41 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
cin >> X;
int year = 0;
long long s = 100;
while (s < X) {
s = s * 101 / 100;
year++;
}
cout << year << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
cin >> X;
int year = 0;
long long s = 100;
while (s < X) {
s = s + s / 100;
year++;
}
cout << year << endl;
}
| replace | 11 | 12 | 11 | 12 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <iostream>
int main() {
int64_t x;
std::cin >> x;
int count = 0, money = 100;
while (money < x) {
money *= 1.01;
count++;
}
std::cout << count << std::endl;
} | #include <iostream>
int main() {
int64_t x;
std::cin >> x;
int64_t count = 0, money = 100;
while (money < x) {
money *= 1.01;
count++;
}
std::cout << count << std::endl;
} | replace | 6 | 7 | 6 | 7 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, a = 100, b = 0;
cin >> x;
while (a < x) {
b++;
a += a / 100;
}
cout << b << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long x, a = 100, b = 0;
cin >> x;
while (a < x) {
b++;
a += a / 100;
}
cout << b << endl;
}
| replace | 4 | 5 | 4 | 5 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, price = 100, count = 0;
cin >> x;
while (price < x) {
price *= 1.01;
count += 1;
}
cout << count << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t x, price = 100, count = 0;
cin >> x;
while (price < x) {
price *= 1.01;
count += 1;
}
cout << count << endl;
}
| replace | 4 | 5 | 4 | 5 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
typedef pair<int, int> P;
const int INF = 1001001001;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int x, i = 0, a = 100;
cin >> x;
while (1) {
i... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
typedef pair<int, int> P;
const int INF = 1001001001;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll x, i = 0, a = 100;
cin >> x;
while (1) {
i+... | replace | 14 | 15 | 14 | 15 | TLE | |
p02694 | C++ | Time Limit Exceeded | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#include <cmath>
#include <cstring>
#include <iostream>
#include <set>
#include <string>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define FIXED_FLOAT(x) std::fixed << std::setprecision(7) << (x)
#define MAX 100
#define fast ... | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#include <cmath>
#include <cstring>
#include <iostream>
#include <set>
#include <string>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define FIXED_FLOAT(x) std::fixed << std::setprecision(7) << (x)
#define MAX 100
#define fast ... | replace | 27 | 28 | 27 | 28 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
unsigned long long num, solve;
while (cin >> num) {
int count = 0;
solve = 100;
while (num != solve) {
int percentage = solve / 100;
solve += percentage;
count++;
}
cout << count << endl;
break;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
unsigned long long num, solve;
while (cin >> num) {
int count = 0;
solve = 100;
while (num > solve) {
solve = solve + (solve / 100);
count++;
}
cout << count << endl;
break;
}
} | replace | 7 | 10 | 7 | 9 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
cin >> X;
long long money = 100;
for (int i = 1;; i++) {
money *= 101;
money /= 100;
if (money >= X) {
cout << i << endl;
break;
}
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
cin >> X;
long long money = 100;
for (int i = 1;; i++) {
money += money / 100;
if (money >= X) {
cout << i << endl;
break;
}
}
} | replace | 9 | 11 | 9 | 10 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
unsigned long long int x, count = 0;
cin >> x;
unsigned long long int n = 100;
while (n < x) {
n = n * 101 / 100;
count++;
}
cout << count << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
unsigned long long int x, count = 0;
cin >> x;
unsigned long long int n = 100;
while (n < x) {
n = n + n / 100;
count++;
}
cout << count << endl;
} | replace | 7 | 8 | 7 | 8 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long m = 100;
long long ans = 1;
while (1) {
m *= 101;
m /= 100;
if (x <= m)
break;
ans++;
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long m = 100;
long long ans = 0;
long long task = 0;
while (x > m) {
task = m / 100;
m += task;
ans++;
}
cout << ans << endl;
} | replace | 7 | 13 | 7 | 12 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
#define ll long long
using namespace std;
ll n, m, ans;
inline ll read() {
ll s = 0, w = 1;
char ch = getchar();
for (; ch < '0' || ch > '9'; ch = getchar())
w *= ch == '-' ? -1 : 1;
for (; ch >= '0' && ch <= '9'; ch = getchar())
s = s * 10 + ch - '0';
return s * w;
}
inlin... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
ll n, m, ans;
inline ll read() {
ll s = 0, w = 1;
char ch = getchar();
for (; ch < '0' || ch > '9'; ch = getchar())
w *= ch == '-' ? -1 : 1;
for (; ch >= '0' && ch <= '9'; ch = getchar())
s = s * 10 + ch - '0';
return s * w;
}
inlin... | replace | 17 | 20 | 17 | 19 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define Sort(Array) sort(Array.begin(), Ar... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define Sort(Array) sort(Array.begin(), Ar... | replace | 55 | 56 | 55 | 56 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <iostream>
#include <set>
#include <string>
using namespace std;
int main() {
long long X;
int a = 100;
cin >> X;
int cnt = 0;
while (a < X) {
a += a / 100;
cnt++;
}
cout << cnt;
return 0;
}
| #include <iostream>
#include <set>
#include <string>
using namespace std;
int main() {
long long X;
long long a = 100;
cin >> X;
int cnt = 0;
while (a < X) {
a += a / 100;
cnt++;
}
cout << cnt;
return 0;
}
| replace | 6 | 7 | 6 | 7 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int x, yokin, i;
cin >> x;
yokin = 100;
for (i = 0; yokin < x; i++) {
yokin = yokin * 1.01;
}
cout << i << "\n";
return 0;
} | #include <iostream>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
long x, yokin;
int i;
cin >> x;
yokin = 100;
for (i = 0; yokin < x; i++) {
yokin = yokin * 1.01;
}
cout << i << "\n";
return 0;
} | replace | 6 | 7 | 6 | 8 | TLE | |
p02694 | C++ | Time Limit Exceeded | // codeforces
//
#include "bits/stdc++.h"
using namespace std;
#define pb push_back
#define F first
#define S second
// #define inf 1e9+7
#define int64 long long
#define VI vector<int>
#define all(v) v.begin(), v.end()
#define inpv(v) \
for (auto &x : v) ... | // codeforces
//
#include "bits/stdc++.h"
using namespace std;
#define pb push_back
#define F first
#define S second
// #define inf 1e9+7
#define int64 long long
#define VI vector<int>
#define all(v) v.begin(), v.end()
#define inpv(v) \
for (auto &x : v) ... | replace | 27 | 28 | 27 | 28 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int main() {
long long int x;
cin >> x;
int c = 0;
int a = 100;
while (1) {
c++;
a = a + a / 100;
if (a >= x)
break;
}
cout << c << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
long long int x;
cin >> x;
int c = 0;
long long int a = 100;
while (1) {
c++;
a = a + a / 100;
if (a >= x)
break;
}
cout << c << endl;
return 0;
}
| replace | 6 | 7 | 6 | 7 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int X;
int money = 100;
int main() {
cin >> X;
int cnt = 0;
while (X > money) {
money = money * 1.01;
cnt++;
}
cout << cnt;
} | #include <iostream>
using namespace std;
long long X;
long long money = 100;
int main() {
cin >> X;
int cnt = 0;
while (X > money) {
money = money * 1.01;
cnt++;
}
cout << cnt;
} | replace | 3 | 5 | 3 | 5 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <algorithm>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <typ... | #include <algorithm>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <typ... | replace | 97 | 98 | 97 | 98 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int year = 0;
ll money = 100;
ll X;
cin >> X;
while (money < X) {
money = (101 * money) / 100;
year++;
}
cout << year << endl;
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int year = 0;
ll money = 100;
ll X;
cin >> X;
while (money < X) {
money = money + money / 100;
year++;
}
cout << year << endl;
}
| replace | 10 | 11 | 10 | 11 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
using lint = long long int;
#define FOR(i, begin, end) \
for (int i = (begin), i##_end_ = (end); i < i##_end_; i++)
#define IFOR(i, begin, end) \
for (int i = (end)-1,... | #include <bits/stdc++.h>
using namespace std;
using lint = long long int;
#define FOR(i, begin, end) \
for (int i = (begin), i##_end_ = (end); i < i##_end_; i++)
#define IFOR(i, begin, end) \
for (int i = (end)-1,... | replace | 21 | 22 | 21 | 22 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
using pint = pair<int, int>;
using pll = pair<ll, ll>;
struct fast_ios {
fast_ios() {
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed << setprecision(20);
};
} fast_ios_;
#define ALL(x) (x).begin(), (x).end()
#define FOR(i, b... | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
using pint = pair<int, int>;
using pll = pair<ll, ll>;
struct fast_ios {
fast_ios() {
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed << setprecision(20);
};
} fast_ios_;
#define ALL(x) (x).begin(), (x).end()
#define FOR(i, b... | replace | 127 | 128 | 127 | 128 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll x;
cin >> x;
ll ans = 0;
ll yokin = 100;
for (ll i = 1;; i++) {
yokin = yokin * 101 / 100;
if (yokin >= x) {
ans = i;
break;
}
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll x;
cin >> x;
ll ans = 0;
ll yokin = 100;
for (ll i = 1;; i++) {
yokin = yokin * 1.01;
if (yokin >= x) {
ans = i;
break;
}
}
cout << ans << endl;
} | replace | 10 | 11 | 10 | 11 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
int num = 100;
int X;
int year = 0;
cin >> X;
while (num < X) {
num = num * 1.01;
year++;
}
cout << year << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long num = 100;
long X;
int year = 0;
cin >> X;
while (num < X) {
num = num * 1.01;
year++;
}
cout << year << endl;
}
| replace | 4 | 6 | 4 | 6 | TLE | |
p02694 | C++ | Time Limit Exceeded | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
int main() {
long long x = 0;
cin >> x;
int count = 0;
int num = 100;
while (num < x) {
num += num / 100;
count++;
}
cout << count << endl;
}
| #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
int main() {
long long x = 0;
cin >> x;
int count = 0;
long long num = 100;
while (num < x) {
num += num / 100;
count++;
}
cout << count << endl;
}
| replace | 8 | 9 | 8 | 9 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
int X;
int a = 0;
int b = 100;
cin >> X;
while (true) {
b *= 1.01;
a++;
if (b >= X) {
break;
}
}
cout << a << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
long long a = 0;
long long b = 100;
cin >> X;
while (true) {
b *= 1.01;
a++;
if (b >= X) {
break;
}
}
cout << a << endl;
}
| replace | 4 | 7 | 4 | 7 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert> // assert
#include <cmath> // abs など
#include <functional> // greater など
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric> // accumulate, gcd など
#include <queue>
#include <set>
#include <stdexcept>
#include <string... | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert> // assert
#include <cmath> // abs など
#include <functional> // greater など
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric> // accumulate, gcd など
#include <queue>
#include <set>
#include <stdexcept>
#include <string... | replace | 64 | 65 | 64 | 65 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i, sta, end) for (ll i = sta; i < end; i++)
#define all(x) x.begin(), x.end()
#define MOD 1000000007
#define vvl vector<vector<ll>>
#define vl vector<ll>
#define acc_io \
cin.... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i, sta, end) for (ll i = sta; i < end; i++)
#define all(x) x.begin(), x.end()
#define MOD 1000000007
#define vvl vector<vector<ll>>
#define vl vector<ll>
#define acc_io \
cin.... | replace | 22 | 24 | 22 | 24 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
#define ll long long
#define PI 3.14159265358979323846
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
/// https://ideone.com/Fd5s8n
ll x;
cin >> x;
int a[4000];
a[0] = 100;
for (int i = 1; i <= 4000; i++) {
a[i] = a[i - 1] + a[i - ... | #include <bits/stdc++.h>
#define ll long long
#define PI 3.14159265358979323846
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
/// https://ideone.com/Fd5s8n
ll x;
cin >> x;
ll a[4000];
a[0] = 100;
for (int i = 1; i <= 4000; i++) {
a[i] = a[i - 1] + a[i - 1... | replace | 12 | 13 | 12 | 13 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
int64_t kane = 100;
int64_t x;
cin >> x;
int year = 0;
while (kane < x) {
year++;
kane *= 1.01;
kane = (int)kane;
}
cout << year << endl;
}
| #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
int64_t kane = 100;
int64_t x;
cin >> x;
int year = 0;
while (kane < x) {
year++;
kane += kane / 100;
}
cout << year << endl;
}
| replace | 11 | 13 | 11 | 12 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, M, Y;
cin >> X;
M = 100;
Y = 0;
while (M < X) {
M *= 1.01;
Y++;
}
cout << Y << endl;
// ここにプログラムを追記
// (ここで"試合結果の表"の2次元配列を宣言)
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t X, M, Y;
cin >> X;
M = 100;
Y = 0;
while (M < X) {
M *= 1.01;
Y++;
}
cout << Y << endl;
// ここにプログラムを追記
// (ここで"試合結果の表"の2次元配列を宣言)
}
| replace | 4 | 5 | 4 | 5 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
int main() {
int64_t x;
cin >> x;
int64_t t = 100;
int ans = 0;
while (t < x) {
t = (t * 101) / 100;
ans++;
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
int main() {
int64_t x;
cin >> x;
int64_t t = 100;
int ans = 0;
while (t < x) {
t = t + t / 100;
ans++;
}
cout << ans << endl;
} | replace | 10 | 11 | 10 | 11 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int x;
int n = 100;
cin >> x;
int i = 0;
while (true) {
if (n >= x) {
cout << i;
return 0;
}
n *= 1.01;
i++;
}
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
long long x;
long long n = 100;
cin >> x;
int i = 0;
while (true) {
if (n >= x) {
cout << i;
return 0;
}
n *= 1.01;
i++;
}
} | replace | 4 | 6 | 4 | 6 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int main() {
long long x;
cin >> x;
long long money = 100;
int i;
for (i = 0; money < x; i++) {
money = money * 101 / 100;
}
cout << i << endl;
} | #include <iostream>
using namespace std;
int main() {
long long x;
cin >> x;
long long money = 100;
int i;
for (i = 0; money < x; i++) {
money = money + money / 100;
}
cout << i << endl;
} | replace | 8 | 9 | 8 | 9 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int n, ans, now;
int main() {
cin >> n;
now = 100;
while (now < n) {
now += now * 0.01;
ans++;
}
cout << ans << "\n";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
long long n, ans, now;
int main() {
cin >> n;
now = 100;
while (now < n) {
now += now * 0.01;
ans++;
}
cout << ans << "\n";
return 0;
} | replace | 3 | 4 | 3 | 4 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
#define rep(i, n) for (long long i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
long long gcd(long long a, long long b) {
if (b == 0)
return a;
else
return gcd(b, a % b);
}
int main() {
ll a = 100, x, n = 2;
cin >> x;
while (true) {
a = a * 101 / 100;
... | #include <bits/stdc++.h>
#define rep(i, n) for (long long i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
long long gcd(long long a, long long b) {
if (b == 0)
return a;
else
return gcd(b, a % b);
}
int main() {
ll a = 100, x, n = 2;
cin >> x;
while (true) {
a += a / 100;
if ... | replace | 16 | 17 | 16 | 17 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int main() {
unsigned long x;
cin >> x;
unsigned long sum = 100;
unsigned long i = 0;
while (true) {
sum += int(sum * 0.01);
i++;
if (sum >= x) {
cout << i << endl;
break;
}
}
} | #include <iostream>
using namespace std;
int main() {
unsigned long x;
cin >> x;
unsigned long sum = 100;
unsigned long i = 0;
while (true) {
sum += long(sum * 0.01);
i++;
if (sum >= x) {
cout << i << endl;
break;
}
}
} | replace | 11 | 12 | 11 | 12 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int main() {
int x, d = 100, 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 x, d = 100, y = 0;
cin >> x;
while (d < x) {
d = d * 1.01;
y++;
}
cout << y << endl;
return 0;
}
| replace | 5 | 6 | 5 | 6 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
#define puts(i) cout << i << endl
#define INF INT_MAX;
#define INFL LLONG_MAX;
typedef long long ll;
using namespace std;
int main() {
ll x;
cin >> x;
int money = 100;
int ans... | #include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
#define puts(i) cout << i << endl
#define INF INT_MAX;
#define INFL LLONG_MAX;
typedef long long ll;
using namespace std;
int main() {
ll x;
cin >> x;
ll money = 100;
ll ans =... | replace | 14 | 16 | 14 | 16 | TLE | |
p02694 | C++ | Time Limit Exceeded | #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;
}
| replace | 3 | 4 | 3 | 4 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
long x;
cin >> x;
int sum = 100;
for (int i = 1; i < 1000000000; i++) {
sum *= 1.01;
if (sum >= x) {
cout << i << endl;
break;
}
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long x;
cin >> x;
long sum = 100;
for (int i = 1;; i++) {
sum *= 1.01;
if (sum >= x) {
cout << i << endl;
break;
}
}
}
| replace | 6 | 8 | 6 | 8 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
#define repr(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
#define mod 1000000007
ll gcd(ll x, ll y) { return y ? gcd(y, x % y) : x; }
ll lcm(ll x, ll y) { return x / gcd(x, y) * y; }
int main() {
ll x;
cin >>... | #include <bits/stdc++.h>
using namespace std;
#define repr(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
#define mod 1000000007
ll gcd(ll x, ll y) { return y ? gcd(y, x % y) : x; }
ll lcm(ll x, ll y) { return x / gcd(x, y) * y; }
int main() {
ll x;
cin >>... | replace | 16 | 17 | 16 | 17 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
#define rep(i, N) for (int i = 0; i < (N); i++)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1e12;
const int inf = 1e9;
const int mod = 1e9 + 7;
typedef long long ll;
typedef pair<ll, int> P;
typedef set<int> S;
i... | #include <bits/stdc++.h>
#define rep(i, N) for (int i = 0; i < (N); i++)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1e12;
const int inf = 1e9;
const int mod = 1e9 + 7;
typedef long long ll;
typedef pair<ll, int> P;
typedef set<int> S;
i... | replace | 19 | 21 | 19 | 21 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
int money = 100;
int ans = 0;
while (money < x) {
money *= 1.01;
ans++;
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
long long money = 100;
int ans = 0;
while (money < x) {
money *= 1.01;
ans++;
}
cout << ans << endl;
} | replace | 7 | 8 | 7 | 8 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, y = 0, n = 100;
cin >> a;
while (n < a) {
n *= 1.01;
y++;
}
cout << y << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, y = 0, n = 100;
cin >> a;
while (n < a) {
n *= 1.01;
y++;
}
cout << y << endl;
} | replace | 4 | 5 | 4 | 5 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int main() {
long long int x, tmp = 100, cnt = 0;
cin >> x;
while (tmp < x) {
tmp = tmp * 101 / 100;
cnt++;
if (tmp >= x)
break;
}
cout << cnt << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
long long int x, tmp = 100, cnt = 0;
cin >> x;
while (tmp < x) {
tmp = tmp * 1.01;
cnt++;
if (tmp >= x)
break;
}
cout << cnt << endl;
return 0;
} | replace | 7 | 8 | 7 | 8 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
#ifdef NON_SUBMIT
#define TEST(n) (n)
#define tout cerr
#else
#define TEST(n) ((void)0)
#define tout cin
#endif
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
TEST(freopen("input.txt", "r", stdin));
TEST(freopen("output.txt", "w", stdo... | #include <bits/stdc++.h>
#ifdef NON_SUBMIT
#define TEST(n) (n)
#define tout cerr
#else
#define TEST(n) ((void)0)
#define tout cin
#endif
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
TEST(freopen("input.txt", "r", stdin));
TEST(freopen("output.txt", "w", stdo... | replace | 19 | 20 | 19 | 21 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <algorithm>
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int a, x = 100;
int count = 0;
cin >> a;
while (x < a) {
x *= 1.01;
count++;
}
cout << count << endl;
return 0;
}
| #include <algorithm>
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int main() {
long long a;
long long x = 100;
int count = 0;
cin >> a;
while (x < a) {
x *= 1.01;
count++;
}
cout << count << endl;
return 0;
}
| replace | 9 | 10 | 9 | 11 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t X;
cin >> X;
int64_t A = 100;
int ans = 0;
while (true) {
A = (A * 101) / 100;
ans++;
if (A >= X) {
break;
}
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t X;
cin >> X;
int64_t A = 100;
int ans = 0;
while (true) {
A += A / 100;
ans++;
if (A >= X) {
break;
}
}
cout << ans << endl;
}
| replace | 10 | 11 | 10 | 11 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define M 1000000007
// #define M 998244353
const int inf = 4e18;
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int x;
cin >> x;
int c = 100, o = 0;
while (c < x) {
c = (101 * c) / 100;
o++;
}... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define M 1000000007
// #define M 998244353
const int inf = 4e18;
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int x;
cin >> x;
int c = 100, o = 0;
while (c < x) {
c = ((double)101 / 100) * c;
... | replace | 14 | 15 | 14 | 15 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, c = 0, val = 100;
cin >> x;
while (x > val) {
val += val / 100;
c++;
}
cout << c;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, c = 0, val = 100;
cin >> x;
while (x > val) {
val += val / 100;
c++;
}
cout << c;
return 0;
}
| replace | 3 | 4 | 3 | 4 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
#define repr(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) for (int i = 0; i < n; i++)
#define reprrev(i, a, b) for (int i = b - 1; i >= a; i--) // [a, b)
#define reprev(i, n) reprrev(i, 0, n)
#define _GLIBCXX_DEBUG
using ll = long long;
using ull = unsigned long long;
template <class... | #include <bits/stdc++.h>
#define repr(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) for (int i = 0; i < n; i++)
#define reprrev(i, a, b) for (int i = b - 1; i >= a; i--) // [a, b)
#define reprev(i, n) reprrev(i, 0, n)
#define _GLIBCXX_DEBUG
using ll = long long;
using ull = unsigned long long;
template <class... | replace | 65 | 66 | 65 | 67 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
// #ifndef ONLINE_JUDGE
// freopen("input.txt","r",stdin);
// freopen("output1.txt","w",stdout);
// #endif
long long int x;
cin >> x;
long long int ans = 100;
long long int count = 0;
while (ans != x) {
ans += (ans / 100);
count++;... | #include <bits/stdc++.h>
using namespace std;
int main() {
// #ifndef ONLINE_JUDGE
// freopen("input.txt","r",stdin);
// freopen("output1.txt","w",stdout);
// #endif
long long int x;
cin >> x;
long long int ans = 100;
long long int count = 0;
while (ans < x) {
ans += (ans / 100);
count++;
... | replace | 13 | 14 | 13 | 14 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int main() {
long long a;
cin >> a;
long long p = 100;
int c = 0;
while (p != a) {
p = p + int(p / 100);
c += 1;
}
cout << c;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
long long a;
cin >> a;
long long p = 100;
int c = 0;
while (p < a) {
p = p + p / 100;
c += 1;
}
cout << c;
return 0;
}
| replace | 9 | 11 | 9 | 11 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <algorithm>
#include <iostream>
#include <math.h>
#include <set>
#include <string>
using namespace std;
int main() {
int X;
int M = 100;
cin >> X;
for (int year = 1; M <= X; year++) {
M *= 1.01;
// cout << year << " " << M << " " << X << endl;
if (M >= X) {
cout << year << endl;
... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <set>
#include <string>
using namespace std;
int main() {
long X;
long M = 100;
cin >> X;
for (int year = 1; M <= X; year++) {
M *= 1.01;
// cout << year << " " << M << " " << X << endl;
if (M >= X) {
cout << year << endl;
... | replace | 9 | 11 | 9 | 11 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
int n = 100, x, m = 0;
cin >> x;
while (n < x) {
n += n / 100;
m++;
}
cout << m;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n = 100, x, m = 0;
cin >> x;
while (n < x) {
n += n / 100;
m++;
}
cout << m;
return 0;
} | replace | 4 | 5 | 4 | 5 | TLE | |
p02694 | C++ | Time Limit Exceeded | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
int main() {
int a = 100, x, cnt = 0;
cin >> x;
while (a < x) {
a += a * 0.01;
cnt++;
}
cout << cnt;
}
| #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
int main() {
int64_t a = 100, x, cnt = 0;
cin >> x;
while (a < x) {
a += a * 0.01;
cnt++;
}
cout << cnt;
}
| replace | 4 | 5 | 4 | 5 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
long long n, m;
int main() {
int a = 100;
cin >> n;
if (n >= 1335850880) {
a = 1335850880;
int i = 0;
while (a < n) {
a = a + a * 0.01;
i++;
}
cout << i + 1706;
return 0;
}
int i = 0;
while (a < n) {
a = a + a * 0.01;
... | #include <bits/stdc++.h>
using namespace std;
long long n, m;
int main() {
long long a = 100;
cin >> n;
if (n >= 1335850880) {
a = 1335850880;
int i = 0;
while (a < n) {
a = a + a * 0.01;
i++;
}
cout << i + 1706;
return 0;
}
int i = 0;
while (a < n) {
a = a + a * 0.... | replace | 6 | 7 | 6 | 7 | TLE | |
p02694 | C++ | Time Limit Exceeded | #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;
} | replace | 4 | 5 | 4 | 6 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main(void) {
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;
} | replace | 7 | 9 | 7 | 9 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, now = 100, ans = 0;
cin >> x;
while (now < x) {
now += now / 100;
ans++;
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, now = 100, ans = 0;
cin >> x;
while (now < x) {
now += now / 100;
ans++;
}
cout << ans << endl;
}
| replace | 4 | 5 | 4 | 5 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int main() {
unsigned long long x;
cin >> x;
unsigned long long c = 100;
int i = 0;
while (1) {
i++;
c *= 0.01;
if (c >= x) {
cout << i << endl;
return 0;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
unsigned long long x;
cin >> x;
unsigned long long c = 100;
int i = 0;
while (1) {
i++;
c *= 1.01;
if (c >= x) {
cout << i << endl;
return 0;
}
}
return 0;
}
| replace | 9 | 10 | 9 | 10 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int main() {
int x, yokin = 100, cnt = 0;
cin >> x;
while (x > yokin) {
cnt++;
yokin = (double)yokin * 1.01;
}
cout << cnt;
return 0;
} | #include <iostream>
using namespace std;
int main() {
long x, yokin = 100, cnt = 0;
cin >> x;
while (x > yokin) {
cnt++;
yokin = (double)yokin * 1.01;
}
cout << cnt;
return 0;
}
| replace | 4 | 5 | 4 | 5 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <iostream>
using namespace std;
int main(void) {
long x;
int a = 100, cnt = 0;
cin >> x;
while (1) {
if (a >= x)
break;
a = a + (a * 0.01);
cnt++;
}
cout << cnt << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
long x, a = 100;
int cnt = 0;
cin >> x;
while (1) {
if (a >= x)
break;
a = a + (a * 0.01);
cnt++;
}
cout << cnt << endl;
return 0;
} | replace | 4 | 6 | 4 | 6 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <algorithm>
#include <ciso646>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;
// 解説ac
int main() {
ll ... | #include <algorithm>
#include <ciso646>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;
// 解説ac
int main() {
ll ... | replace | 20 | 22 | 20 | 22 | TLE | |
p02694 | C++ | Time Limit Exceeded | // #pragma GCC target("avx2")
#pragma GCC optimize("O3", "unroll-loops")
// #include <bits/extc++.h>
// using namespace __gnu_pbds;
#include <bits/stdc++.h>
using namespace std;
// #define int long long
#define double long double
// template <typename T>
// using pbds_set = tree<T, null_type, less<T>, rb_tree_tag,
/... | // #pragma GCC target("avx2")
#pragma GCC optimize("O3", "unroll-loops")
// #include <bits/extc++.h>
// using namespace __gnu_pbds;
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
// template <typename T>
// using pbds_set = tree<T, null_type, less<T>, rb_tree_tag,
// t... | replace | 9 | 10 | 9 | 10 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n;
cin >> n;
int count = 0;
long long int sum = 100;
while (sum < n) {
sum *= sum * 0.01;
count++;
}
cout << count << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long int n;
cin >> n;
int count = 0;
long long int sum = 100;
while (sum < n) {
sum += sum / 100;
count++;
}
cout << count << endl;
}
| replace | 8 | 9 | 8 | 9 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, N, temp = 100;
cin >> X;
for (N = 0; temp < X; N++) {
temp += temp * 0.01;
}
cout << N << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int X, N, temp = 100;
cin >> X;
for (N = 0; temp < X; N++) {
temp += temp * 0.01;
}
cout << N << endl;
}
| replace | 4 | 5 | 4 | 5 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
ll X, yen;
cin >> X;
ll year = 0;
yen = 100;
while (yen < X) {
yen = ll(101 * yen)... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
ll X, yen;
cin >> X;
ll year = 0;
yen = 100;
while (yen / X < 1) {
yen += yen / 10... | replace | 15 | 18 | 15 | 17 | TLE | |
p02694 | C++ | Time Limit Exceeded | #if __has_include("D:/dhiraj/Programming/debug.h")
#include "D:/dhiraj/Programming/debug.h"
#else
#include <bits/stdc++.h>
using namespace std;
#define d(...) 11
#endif
// Loops --------------------------------------------------------------------
#define loop(i, s, e) for (ll i = (s); i < (e); i++)
#define rloop(i, s... | #if __has_include("D:/dhiraj/Programming/debug.h")
#include "D:/dhiraj/Programming/debug.h"
#else
#include <bits/stdc++.h>
using namespace std;
#define d(...) 11
#endif
// Loops --------------------------------------------------------------------
#define loop(i, s, e) for (ll i = (s); i < (e); i++)
#define rloop(i, s... | replace | 62 | 64 | 62 | 64 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define RREP(i, s, n) for (int i = s; i < (n); i++)
#define ALL(a) a.begin(), a.end()
#define RALL(a) a.rbegin(), a.rend()
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class ... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define RREP(i, s, n) for (int i = s; i < (n); i++)
#define ALL(a) a.begin(), a.end()
#define RALL(a) a.rbegin(), a.rend()
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class ... | replace | 37 | 38 | 37 | 38 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
cin >> X;
unsigned long long now = 100, ctr = 0;
while (now < X) {
now = now * 101 / 100;
ctr++;
}
cout << ctr << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
cin >> X;
unsigned long long now = 100, ctr = 0;
while (now < X) {
now += now / 100;
ctr++;
}
cout << ctr << endl;
return 0;
}
| replace | 9 | 10 | 9 | 10 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, year = 0;
int money = 100;
cin >> X;
for (int i = 0; money < X; i++) {
money += money / 100;
year++;
}
cout << year << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int year = 0;
long long money = 100;
long long X;
cin >> X;
for (int i = 0; money < X; i++) {
money += money / 100;
year++;
}
cout << year << endl;
}
| replace | 4 | 7 | 4 | 7 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
cin >> X;
int money = 100;
int year = 0;
while (money < X) {
money = money + (money / 100);
year++;
}
cout << year << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
cin >> X;
long long money = 100;
long long year = 0;
while (money < X) {
money = money + (money / 100);
year++;
}
cout << year << endl;
return 0;
}
| replace | 7 | 9 | 7 | 9 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
cin >> X;
int Y = 100;
int cou = 0;
while (Y < X) {
Y += Y / 100;
cou++;
}
cout << cou << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long X;
cin >> X;
long long Y = 100;
int cou = 0;
while (Y < X) {
Y += Y / 100;
cou++;
}
cout << cou << endl;
} | replace | 6 | 7 | 6 | 7 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main() {
int i = 0;
int X;
int N = 100;
cin >> X;
while (N < X) {
N = N * 1.01;
i++;
}
cout << i << endl;
}
| #include <bits/stdc++.h>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main() {
long long i = 0;
long long X;
long long N = 100;
cin >> X;
while (N < X) {
N = N * 1.01;
i++;
}
cout << i << endl;
}
| replace | 8 | 11 | 8 | 11 | TLE | |
p02694 | C++ | Time Limit Exceeded | /*Priyansh Agarwal*/
#include <algorithm>
#include <bits/stdc++.h>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
#define fastio() \
ios_base::sync_wi... | /*Priyansh Agarwal*/
#include <algorithm>
#include <bits/stdc++.h>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
#define fastio() \
ios_base::sync_wi... | replace | 96 | 98 | 96 | 97 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
ll x;
cin >> x;
int cnt = 0;
int amt = 100;
while (1) {
amt = amt + amt / 100;
cnt++;
if (amt >= x)
break;
}
cout << cnt << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
ll x;
cin >> x;
int cnt = 0;
ll amt = 100;
while (1) {
amt = amt + amt / 100;
cnt++;
if (amt >= x)
break;
}
cout << cnt << endl;
}
| replace | 9 | 10 | 9 | 10 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
long long c = 100;
long long x;
cin >> x;
long long count = 0;
for (long long i = 0; i < 1000000000000000000; i++) {
count++;
c /= c / 100;
if (c >= x)
break;
}
cout << count << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long c = 100;
long long x;
cin >> x;
long long count = 0;
for (long long i = 0; i < 1000000000000000000; i++) {
count++;
c += c / 100;
if (c >= x)
break;
}
cout << count << endl;
}
| replace | 12 | 13 | 12 | 13 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
#include <vector>3
using namespace std;
void init() {
cin.tie(0);
cin.sync_with_stdio(0);
}
int main() {
init();
unsigned long long k, a = 100, b = 0;
cin >> k;
while (true) {
a = a * .01 + a;
b++;
if (a == k) {
break;
}
}
cout << b;
}
| #include <bits/stdc++.h>
#include <vector>3
using namespace std;
void init() {
cin.tie(0);
cin.sync_with_stdio(0);
}
int main() {
init();
unsigned long long k, a = 100, b = 0;
cin >> k;
while (a < k) {
a = a * .01 + a;
b++;
if (a == k) {
break;
}
}
cout << b;
}
| replace | 12 | 13 | 12 | 13 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
auto y = 100LL;
auto year = 0;
while (y < x) {
y = (y * 101) / 100;
++year;
}
cout << year << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long x;
cin >> x;
auto y = 100LL;
auto year = 0;
while (y < x) {
y += (y / 100);
++year;
}
cout << year << endl;
return 0;
}
| replace | 10 | 11 | 10 | 11 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define IOS ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define IOS ... | replace | 39 | 40 | 39 | 40 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
long long k;
cin >> k;
int ans = 0;
int d = 100;
while (d < k) {
d = floor(1.01 * d);
ans++;
}
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long k;
cin >> k;
int ans = 0;
long long d = 100.0;
while (d < k) {
d = floor(1.01 * d);
ans++;
}
cout << ans << endl;
return 0;
} | replace | 7 | 8 | 7 | 8 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define MOD_NUMBER 1000000007
template <class T> void vector_print(vector<T> vec) {
for (unsigned int i = 0; i < vec.size(); i++) {
cout << vec.at(i);
if (i < vec.size() - 1) {
cout << " ";
} else if (i == vec.size() - 1) {
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define MOD_NUMBER 1000000007
template <class T> void vector_print(vector<T> vec) {
for (unsigned int i = 0; i < vec.size(); i++) {
cout << vec.at(i);
if (i < vec.size() - 1) {
cout << " ";
} else if (i == vec.size() - 1) {
... | replace | 23 | 24 | 23 | 24 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;... | replace | 32 | 33 | 32 | 33 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
long long X, A = 100;
int Y = 0;
cin >> X;
while (A < X) {
A = A * 101 / 100;
Y++;
}
cout << Y << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
long long X, A = 100;
int Y = 0;
cin >> X;
while (A < X) {
A = A + A / 100;
Y++;
}
cout << Y << endl;
} | replace | 9 | 10 | 9 | 10 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
#define ALL(a) (a).begin(), (a).end()
int main() {
ll x;
cin >> x;
ll start = 100;
for (ll i = 1;; i++) {
start *= 101;
start /= 100;
if (start >= x) {
cout << i << endl;
re... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
#define ALL(a) (a).begin(), (a).end()
int main() {
ll x;
cin >> x;
ll start = 100;
for (ll i = 1;; i++) {
start = start + start / 100;
if (start >= x) {
cout << i << endl;
retur... | replace | 11 | 13 | 11 | 12 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, yokin = 100, year = 0;
cin >> x;
while (x > yokin) {
yokin = yokin * 1.01;
year++;
}
cout << year << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, yokin = 100, year = 0;
cin >> x;
while (x > yokin) {
yokin = yokin * 1.01;
year++;
}
cout << year << endl;
}
| replace | 5 | 6 | 5 | 6 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <iostream>
#include <math.h>
#include <string.h>
using namespace std;
int main() {
int tc, i, j;
;
long long n;
cin >> n;
long long ans = 0;
int awal = 100, bunga = 0;
while (awal < n) {
awal = awal * 1.01;
ans++;
}
cout << ans << "\n";
return 0;
} | #include <iostream>
#include <math.h>
#include <string.h>
using namespace std;
int main() {
int tc, i, j;
;
long long n;
cin >> n;
long long ans = 0;
long long awal = 100;
while (awal < n) {
awal = awal * 1.01;
ans++;
}
cout << ans << "\n";
return 0;
} | replace | 14 | 15 | 14 | 15 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
#include <math.h>
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
long long X;
cin >> X;
int my = 100;
int ans = 0;
while (my < X) {
my += my / 100;
ans++;
}
cout << ans << endl;
} | #include <bits/stdc++.h>
#include <math.h>
#define _GLIBCXX_DEBUG
using namespace std;
int main() {
long long X;
cin >> X;
long long my = 100;
int ans = 0;
while (my < X) {
my += my / 100;
ans++;
}
cout << ans << endl;
} | replace | 8 | 9 | 8 | 9 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
#define MOD 1000000007
#define mp make_pair
#define ll long long
#define pb push_back
#define faster \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
#define MOD 1000000007
#define mp make_pair
#define ll long long
#define pb push_back
#define faster \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | replace | 16 | 17 | 16 | 17 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <algorithm>
#include <climits>
#include <cmath>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
#define FAST_IO \
ios_base::sync_with_stdio(false), cin.... | #include <algorithm>
#include <climits>
#include <cmath>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
#define FAST_IO \
ios_base::sync_with_stdio(false), cin.... | replace | 14 | 15 | 14 | 15 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define MOD 1000000007
#define PI 3.1415
int main() {
ll x;
cin >> x;
ll v = 100;
ll co = 0;
while (x > v) {
v *= 101;
v /= 100;
co++;
}
cout << co << endl;
}
| #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define MOD 1000000007
#define PI 3.1415
int main() {
ll x;
cin >> x;
ll v = 100;
ll co = 0;
while (x > v) {
v = v + (v / 100);
co++;
}
cout << co << endl;
}
| replace | 14 | 16 | 14 | 15 | TLE | |
p02694 | C++ | Time Limit Exceeded | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int bal = 100, val, count = 0;
cin >> val;
while (bal < val) {
bal += int(bal * 0.01);
count++;
}
cout << count;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int bal = 100, val, count = 0;
cin >> val;
while (bal < val) {
bal += (long long int)(bal * 0.01);
count++;
}
cout << count;
return 0;
} | replace | 7 | 8 | 7 | 8 | TLE | |
p02694 | C++ | Time Limit Exceeded | #pragma GCC optimize(2)
#include <bits/stdc++.h>
using namespace std;
int main() {
int ans = 0;
int a = 100;
long long X;
cin >> X;
while (X > a) {
a += a / 100;
a /= 1;
ans++;
}
cout << ans << endl;
return 0;
}
| #pragma GCC optimize(2)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long ans = 0;
long long a = 100;
long long X;
cin >> X;
while (X > a) {
a += a / 100;
a /= 1;
ans++;
}
cout << ans << endl;
return 0;
}
| replace | 5 | 7 | 5 | 7 | TLE |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.