Go: package main

import "fmt"

var (
	dept    int = 100000
	addDept int = dept / 100 * 5
)

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

	if week != 0 {
		nWeekDept = dept + addDept*week
	}

	if nWeekDept/addDept%2 != 0 {
		nWeekDept += addDept
	}
	fmt.Println(nWeekDept)
}

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

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
#define FOR(i,x,n) for(int i=x; i<(n); i++)
#define ALL(n) begin(n),end(n)
#define MOD (1000000007)
#define INF (1e9)
#define INFL (1e18)

typedef long long ll;
typedef unsigned int ui;
typedef unsigned long long ull;
template<class T>using arr=vector<vector<T>>;
template<class T>void pr(T x){cout << x << endl;}
template<class T>void prvec(vector<T>& a){rep(i, a.size()-1){cout << a[i] << " ";} cout << a[a.size()-1] << endl;}
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; }

int main()
{
    int n;
    cin >> n;
    ll m = 100000;
    rep(i, n){
        m *= 1.05;
        if(m%1000 > 0){
            m /= 1000;
            m *= 1000;
            m += 1000;
        }
    }
    pr(m);
    return 0;}

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

int n;
double rent = 100000;

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

C++: #include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main(){

    int n;
    int debt = 100000;
    while(cin >> n){
        for(int i=0;i<n;i++){
            debt += debt * 0.05;
            if(debt%1000 != 0){
                debt = debt - debt%1000 + 1000;
            }
        }
        cout << debt << endl;
    }
    return 0;
}

C++: #include<iostream>
#include<iomanip>
#include<cmath>
#include<string>
#include<vector>
#include<list>
#include<algorithm>
#include<map>
#include<set>
#include<queue>
#include<stack>
using namespace std;
typedef long long ll;
#define fi first
#define se second
#define mp make_pair
#define rep(i, n) for(int i=0;i<n;++i)
#define rrep(i, n) for(int i=n;i>=0;--i)
const int inf=1e9+7;
const ll mod=1e9+7;
const ll big=1e18;
const double PI=2*asin(1);

int main() {
  int N;
  cin>>N;
  ll ans = 100000;
  for(int i=0;i<N;++i){
    ans = ans*105/100;
    if(ans%1000>0){
      ans -= ans%1000;
      ans += 1000;
    }
  }
  cout<<ans<<endl;
}

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

int age(int t) {
	return ceil((double) t / 10000) * 10000;
}

int main() {
	int n;
	std::cin >> n;

	int loan = 100000;
	int aaa;
	for (int i = 0; i < n; i++)
		aaa = age(loan + loan * 0.05 * n);

	std::cout << aaa << std::endl;
}

C++: #include <iostream>

int main() {
  int week;
  std::cin >> week;

  int debt = 100000;

  for(int cnt = 0; cnt < week; ++cnt) {
    debt *= 1.05;
  }

  if(debt % 10000 != 0) {
    debt += (10000 - (debt % 10000));
  }

  std::cout << debt << std::endl;
}

C++: #include <map>
#include <string>
#include <iostream>
#include<vector>
#include <set>
#include<math.h>
#include<algorithm>

using namespace std;

int main()
{
	int n, amount=100;
	cin >> n;
	
	for (int i=0; i<n; i++)
	{
		amount += amount * 0.05 + 0.999;
	}
	
	cout << amount*100 << endl;
}

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

int main() {
    int n;
    cin >> n;
    int A=pow(10,5);
    for (int i=0; i<n; i++) {
        A*=(1.05);
        A=(A+999)/1000*1000;
    }
    printf("%d\n",A);
    return 0;
}

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

int main(void){
	int n;
	int debt = 100;
	cin >> n;
	for(int i=0;i<n;i++){
		debt = ceil(debt*1.05);
	}
	cout << debt*1000 << 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 /=10000;
    debt +=0.5;

    cout << int (debt) * 10000 << endl; 

    return 0;
}

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

int main()
{
    int n, d = 100000;
    cin >> n;
    for(; n-- ;)
    {
       if((d + d*5/100)%1000 == 0) d = d + d*5/100;
       else
       {
            d = d + d*5/100 + (1000-(d + d*5/100)%1000);
       }
    }
    cout << d;
}

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

// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0007&lang=jp

int main() {
	int n;
	cin >> n;
	int p = 100000;
	int ans = p;
	for (int i = 0; i < n; i++) {
		ans += p * 0.05;
	}
	int trunc = (ans / 10000) * 10000;
	cout << (trunc == ans ? ans : trunc + 10000) << endl;
	return 0;
}

C++: #include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;
typedef long long ll;

ll calcDebt(ll debt)
{
    double buff;
    buff = (double) debt;
    buff = buff * 1.05;
    buff = ceil(buff / 1000) * 1000;
    return (ll) buff;
}

int main()
{
    int n;
    ll debt = 100000;
    cin >> n;
    for(int c = 0; c < n; c++)
        debt = calcDebt(debt);
    cout << debt << endl;
    return EXIT_SUCCESS;
}

C++: #include <iostream> //üoÍ
#include <cmath>

using namespace std;

int main(){
	double money = 100000;
	int n;
	cin >> n;
	for(int i=0;i<n;i++){
		money = ceil((money * 1.05)/1000)*1000;
	}

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

C++: #include"iostream"
using namespace std;


int main(){
	int a=100000;
	int b;
	cin>>b;
	for(int i=0;i<b;i++){
	a+=int(a*0.05);
	if(!(a%1000==0)){
	a/=1000;
	a++;
	a*=1000;
	}
	}
	cout << a<< endl;
	return 0;
}

C++: #include <iostream>

int main(){
        int n;
        std::cin >> n;
        double result=100;
        for(int i=n;i;i--){
                result*=1.05;
                result=(int)(result+0.9);
        }

        result*=1000;
        std::cout << (int)result << std::endl;

        return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	bool bo=false;
	int n,a=100000;
	cin>>n;
	for(int i=0;i<n;i++){
		a*=1.05;
	}
	if(a%10000==0 && a%1000==0 && a%100==0 && a%10==0){
		bo=true;
	}
	a/=10000;
	if(bo==false){
		a=a+1;
	}
	cout<<a*10000<<endl;
	return 0;
}

C++: //01
#include<iostream>

using namespace std;

int main(){
  int d[101]={100000};
  for(int i=1;i<=100;i++){
    d[i]=d[i-1]+d[i-1]/20;
    if(d[i]%1000){
      d[i]=(d[i]/1000+1)*1000;
    }
  }
  for(int n;cin>>n;){
    cout<<d[n]<<endl;
  }
  return 0;
}

C++: /*
 * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0007
 */
#include <iostream>
#include <cmath>

using namespace	std;

#define INITIAL 100000
#define INTEREST 1.05
#define CEILING 1000

int
dow(int a, float r, int w)
{
	if (w == 0)
		return a;
	float c = a / CEILING;
	return dow(ceil(c * r) * CEILING, r, --w);
}

int
main()
{
	int w;
	cin >> w;
	cout << dow(INITIAL, INTEREST, w) << endl;
	return 0;
}

C++: #include <cstdio>
#include <cstring>
#include <algorithm>
#include <string>

using namespace std;

int main()
{
	int debt = 100000;
	int n;
	scanf("%d", &n);
	for (int i = 0; i < n; ++i)
	{
		debt += (int)(debt*0.05);
		if (debt % 1000 != 0)
			debt = debt/1000*1000+1000;
	}
	printf("%d\n", debt);
}

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

int main() {
	int loan = 100000;
	int hoge = loan * 0.05;
	int n;
	std::cin >> n;

	for (int i = 0; i < n; i++)
		loan += hoge;
	
	if (loan % 10000 < 5000)
		loan = loan / 10000 * 1000;
	else
		loan = loan / 10000 * 10000 + 10000;
	
	std::cout << loan << std::endl;
}