Go: package main

import "fmt"

func roundUp100(dept float64) float64 {
	iDept := int(dept)
	if iDept-(iDept/1000*1000) != 0 {
		iDept = ((iDept / 1000) + 1) * 1000
	}
	return float64(iDept)
}

func main() {
	var week int
	fmt.Scan(&week)

	dept := 100000.0
	for i := 0; i < week; i++ {

		dept *= 1.05
		dept = roundUp100(dept)
	}

	fmt.Println(dept)
}

C++: #include<iostream>
#include<math.h>
using namespace std;

int main(void){
    int i,n;
    double ans;
    cin >> n;
    ans=100.000;
    for(i=0;i<n;i++){
        ans*=1.05;
        ans=int(ans+0.999);
    }
    //ans*=1000;
    ans=int(ans);
    cout << ans << endl;
    return 0;
}

C++: #include <iostream>
#include <cmath>

using namespace std;

int main()
{
    int n;
    double debt = 100000;

    cin >> n;
    
    for (int i = 0; i < n; ++i) {
        debt *= 1.05;
        debt = ceil(debt / 1000) * 1000;
    }
    cout << debt << endl;

    return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
	double a;
	cin>>a;
	int ans=100000;
	for(int b=0;b<a;b++)
	{
		double rev=0;
	   ans=ans*1.05;
	   rev=ans%1000;
	   ans=ans-rev;
	   ans=ans+1000;
		}
		printf("%.15000lf\n",ans);
	}

C++: #include <iostream>
#include <cmath>
using namespace std;

int RoundUp(int Integer, int Power)
{
	int Place = pow(10, Power);
	if(Integer % Place != 0){
		Integer = Place * (Integer / Place + 1);
	}
	return Integer;
}

int main()
{
	int Debt = 100000;
	int n;
	cin >> n;
	for(int i = 0; i < n; i++){
		Debt = RoundUp(1.05 * Debt, 3);//?????¬???????????????????????±????????§??????????????????????????????????????????
	}
	cout << Debt << endl;
	return 0;
}

C++: #include<iostream>
using namespace std;
int main()
{
	int n;
	cin >> n;
	int debt = 100000;
	for (int i = 0; i < n; i++) {
		debt = debt * 1.05;
		if (debt % 1000)
			debt += 1000;
		debt -= debt % 1000;
	}
	cout << debt << endl;

	return 0;
}

C++: #include<iostream>
#include<string>
#include<algorithm>
using namespace std;
main(){
	int a=100000,n;
	cin>>n;
	for(int i=1;i<=n;++i){
		a*=1.05;
	}
	a-=100000;
	if(a%10000>0){
		a=(a/10000+1)*10000;
	}
	a+=100000;
	cout<<a<<endl;
}

C++: #include <iostream>
#include <cmath>

using namespace std;

int main() {
    int n;
    double debt = 100000;

    cin >> n;

    for(int i = 0;i < n;i++){
        debt *= 1.05;
    }

    debt /=10000;
    debt = round(debt);

    cout << debt * 10000 << endl; 

    return 0;
}

C++: #include<iostream>
#include<stdio.h>

int main(){
	int n,i,a=100000,b;
	std::cin>>n;
	for(i=0;n>i;i++){
		a=a*1.05;
		if(a%1000!=0){
		a=a%1000;
		b=1000-a;
			a=a+b;
			}
		}
	std::cout<<a;

	
	
	return 0;
	}

C++: #include<stdio.h>
int main(void)
{
	int n,i,s,z;
	z=100000;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		s=(z*5)/100;
		if(s%1000!=0){
			s=s/1000;
			s++;
			s=s*1000;
		}
		z=z+s;
	//	printf("%d\n",s);
	}
	printf("%d\n",z);
	return 0;
}

C++: #include <iostream>
using namespace std;

int main(){
    int n;
    cin >> n;
    int m = 100000;
    for (int i = 0; i < n; i++){
	m *= 1.05;
	if ((int)m % 1000 != 0)
	    m = m - (int)m % 1000 + 1000;
    }
    cout << m << endl;
}

C++: #include<iostream>
#include<cmath>
using namespace std;

int main(){
	std::ios::sync_with_stdio(false);
    std::cin.tie(0);
	
	int n=0;cin>>n;
	double a=100000;
	for(int i=0;i<n;i++){
		a*=1.05;
	}
	a/=10000;a=ceil(a);a*=10000;
	cout<<a<<endl;
	return 0;
}

C++: #include <iostream>

int main()
{
	int debt = 100000;
	int n;
	std::cin >> n;
	for (int i = 0; i < n; ++i) {
		debt = int((debt * 1.05 + 999) / 1000) * 1000;
	}
	std::cout << debt << std::endl;
	return 0;
}

C++: #include <iostream>

using namespace std;

int debtAfterWeek(int n)
{
	int debt = 100000;
	int last3digits;
	for (int i = 0; i < n; i++)
	{
		debt *= 1.05;
		last3digits = debt % 1000;
		debt -= last3digits;
		if (last3digits != 0)
		{
			debt += 1000;
		}
	}
	return (int)debt;
}

int main()
{
	int n;
	cin >> n;
	cout << debtAfterWeek(n) << endl;
	return 0;
}

C++: p=100000;main(a){for(scanf("%d",&a);a--;p=(p/1000+(p%1000?1:0))*1000)p+=p/20;printf("%d",p);}

C++: #include<iostream>

using namespace std;

double money = 100000;

int i;

int main()
{
	cin>>i;
	for(i;i>0;--i)
	{
		money *= 1.05;
		money = (long)(money/1000+0.9)*1000;
	}
	printf("%.0lf\n",money);
}

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <queue>
#include <string>
using namespace std;

int main() {
    clock_t cTimeStart, cTimeEnd;
    cTimeStart = clock();           // 現在時刻
    long long total=100000;
    int N;
    cin>>N;
    for(int i=0;i<N;++i){
    	total=total*1.05;
    	if(total%1000>0)total=(total/1000+1)*1000;
    }
    cout<<total<<endl;
    cTimeEnd = clock();           // 現在時刻
//    cout<< "処理時間:" <<(cTimeEnd - cTimeStart)/1000 << "[ms]" << endl;

	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;

int main() {
	int n;
	cin >> n;
	long s = 100000;
	for (int i = 0; i<n; i++) {
		s = s * 1.05;
		int s1 = s % 1000;
		if (s1 != 0) {
			s = s - s1 + 1000;
		}
	}
	cout << s << "\n";
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
  int n,i;
  int temp;
  double ans = 100;
  cin >> n;
  for(i = 0;i < n;i++){
    ans *= 1.05;
    temp = (int)ans;
    if((double)temp != ans){
      ans = (double)temp + 1;
    }
  }
  cout << ans << "000" << endl;
  return(0);
}

C++: #include<iostream>

using namedspace std;

int week(int money){
	money = money + money * 0.05;
	money = money + 1000 - ( money % 1000 );
	return money;
}

int main(void){
	int n;
	int money = 100000;
	cin >> n;
	for(int i = 0;i < n;i++){
		money = week(money);
	}

	cout << money << endl;
	
	return 0;
}

C++: #include<stdio.h>
#include<iostream>
using namespace std;
int main(){
  int n=0;
  int m=100000;
  cin>>n;
  for(int i=0;i<n;i++){
	  m=m*1.05;
	  if(m%1000!=0){
		  m=m+999;
		  m=m/1000;
		  m=m*1000;
	  }
  }
  cout<<m<<endl;

  return 0;
}

C++: #include<cstdio>
#include<cmath>
#include<iostream>

using namespace std;

signed main(){
    int n;
    double ret = 100000;
    scanf( "%d", &n );
    while( n > 0 ){
        ret *= 1.05;
        ret = ceil( ret / 1000 ) * 1000;
        n--;
    }
    printf( "%.1f", ret  );
    return 0;    
}

C++: #include <iostream>
using namespace std;
 
int main()
{
    int n,a = 100000;
    cin >> n;
    for(int i=0;i<n;i++)
    {
        a *= 1.05;
        if(a%1000)
        {
           a += 1000-a%1000;
         }
        
    }
    cout << a<< endl;
     return 0;
}

C++: #include <bits/stdc++.h>
#include <vector>
using namespace std;
int n, utang, bunga;
int main(){
	utang = 100000;
	cin >> n;
	for(int i = 1; i <= n; i++){
		bunga = utang * 5 / 100;
		if(bunga % 1000 == 0)
			bunga = bunga/1000 * 1000;
		else
			bunga = bunga/1000 * 1000 + 1000;
		
		utang = utang + bunga;
	}
	cout << utang << "\n";
	return 0;
}

C++: #include <iostream>
#include <cmath>

using namespace std;

static int ROUND = 1000;

int weeks;
int loan = 100000;
int rishi = loan * 0.05;
int temp;

int main(){
  scanf("%d", &weeks);
  while (weeks != 0){
      loan = loan*1.05;
      loan = loan % ROUND != 0 ? (int(loan/ROUND) +1)*ROUND : loan;
      weeks--;
  }
 cout << loan << endl;
 return 0;   
}

C++: #include <iostream>
#include <math.h>
using namespace std;

void test();
int  interest(int debt, float interest_rate, int n);

int main(void)
{
	test();
	return 0;
}


void test()
{
	int debt,n;
	double money;
	float interest_rate;
	debt = 100000;
	interest_rate = 1.05;
	cin >> n;

	debt = interest(debt, interest_rate, n);

	money = (double) debt / 10000;		// 1000?????\???????°???°?????\??????

	money = ceil(money) * 10000;??????????????????// ?°???°?????\?????????????????????????????????

	debt = money;

	cout << debt << endl;
}

int interest(int debt, float interest_rate,int n)??????//?????°??¢??°
{

	if (n == 1)
		return debt * interest_rate;
	else
		return interest(debt, interest_rate, n - 1) * interest_rate;
}