Submission #12650100


Source Code Expand

Copy
#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#define all(x) (x).begin(),(x).end()
//#pragma GCC optimize ("-O3")
using namespace std; void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); _main(); }
typedef long long ll; const int inf = INT_MAX / 2; const ll infl = 1LL << 60;
template<class T>bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; }
//---------------------------------------------------------------------------------------------------
/*---------------------------------------------------------------------------------------------------
            ∧_∧
      ∧_∧  (´<_` )  Welcome to My Coding Space!
     ( ´_ゝ`) /  ⌒i     @hamayanhamayan0
    /   \     | |
    /   / ̄ ̄ ̄ ̄/  |
  __(__ニつ/     _/ .| .|____
     \/____/ (u ⊃
---------------------------------------------------------------------------------------------------*/














ll X;
//---------------------------------------------------------------------------------------------------
void _main() {
	cin >> X;

	ll x = 100;
	int ans = 0;
	while (x < X) {
		x = x + x / 100;
		ans++;
	}
	cout << ans << endl;
}





Submission Info

Submission Time
Task B - 1%
User hamayanhamayan
Language C++ (GCC 9.2.1)
Score 200
Code Size 1534 Byte
Status AC
Exec Time 6 ms
Memory 3624 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 17
Set Name Test Cases
Sample 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt
All 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt, 10-random-01.txt, 10-random-02.txt, 10-random-03.txt, 10-random-04.txt, 10-random-05.txt, 20-less-01.txt, 20-less-02.txt, 20-less-03.txt, 21-equal-01.txt, 21-equal-02.txt, 21-equal-03.txt, 22-greater-01.txt, 22-greater-02.txt, 22-greater-03.txt
Case Name Status Exec Time Memory
00-sample-01.txt AC 6 ms 3564 KB
00-sample-02.txt AC 2 ms 3504 KB
00-sample-03.txt AC 2 ms 3568 KB
10-random-01.txt AC 2 ms 3440 KB
10-random-02.txt AC 2 ms 3568 KB
10-random-03.txt AC 2 ms 3568 KB
10-random-04.txt AC 2 ms 3544 KB
10-random-05.txt AC 2 ms 3576 KB
20-less-01.txt AC 2 ms 3488 KB
20-less-02.txt AC 2 ms 3504 KB
20-less-03.txt AC 2 ms 3504 KB
21-equal-01.txt AC 2 ms 3576 KB
21-equal-02.txt AC 3 ms 3624 KB
21-equal-03.txt AC 2 ms 3572 KB
22-greater-01.txt AC 2 ms 3504 KB
22-greater-02.txt AC 2 ms 3508 KB
22-greater-03.txt AC 2 ms 3500 KB