Go: package main

import (
	"fmt"
	"math"
)

func main() {
	var n int
	hellGate := 100.000

	fmt.Scanf("%d", &n)

	for i := 1; i <= n; i++ {
		hellGate *= 1.05
		hellGate = math.Ceil(hellGate)
	}

	fmt.Println(int(hellGate * 1000))
}

C++: 
/*
 * main.cpp
 *
 *  Created on: 2011/04/08
 *      Author: satoki
 *      4:50 ~ 5:01
 */
#include <iostream>
#include <string.h>
using namespace std;

int iN;

bool input() {
  scanf("%d", &iN);
  return true;
}

int manage() {
  int k = 100;
  int m;
  int i;
  for (i = 0; i < iN; i++) {
    m = k * 5;
    if (m % 100 != 0) m += 100;
    m /= 100;
    k += m;
  }
  return k;
}

int main() {
  input();
  printf("%d000\n", manage());
  return 0;
}

C++: #include <algorithm>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <cctype>
#include <iostream>
#include <set>
#include <string>
#include <queue>
#include <map>
using namespace std;
int size(string x){
	string::size_type size=x.size();
	return size;
}
#define fu(l,k) for(int i=l;i<k;i++)
#define fd(l,k) for(int i=l;i>k;i--)
#define fi first
#define se second
typedef  vector<string> vs;
typedef  vector<int> vi;
double pi(){
	return M_PI;
}
typedef set<int> set_i;
typedef set<string> set_s;
int main(){
	int n;
	double ss=100000;
	cin>>n;
	fu(0,n){
		ss=ss*1.05;
		if((int)ss%1000!=0) ss=(int)(ss/1000)*1000+1000;
	}
	cout<<ss<<endl;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(){
	long double x=100000 , w ;
	int i , n , y ;
	while( cin >> n ){
		for( i=1 ; i<=n ; i++ ){
		x = x * 1.05 ;
		y = x;
		y = y/100 ;
		x =y;
		x = x/10;
		x = ceil( x );
		x = x*1000;
	}
	cout << x << endl;
}
}

C++: #include <iostream>
#include <cmath>
using namespace std;
int main() {
  int debt = 100000, n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    debt *= 1.05;
    debt = (int)ceil(debt/1000.0)*1000;
  }
  cout << debt << endl;
}

C++: #include <iostream>
using namespace std;
 
int main(){
        int week,a,b,ans,aans;
        cin>>week;
        a=100000*0.05;
        b=week+1;
        a*=b;
        ans=100000+a;
        aans=ans/1000;
        aans=ans*1000;
        if(aans!=ans)ans+100;
        cout<<ans<<endl;
}

C++: #include <iostream>
#include<string>
#include<math.h>
#include<stdio.h>
#include <algorithm>
using namespace std;
int main(void){
    // Here your code !

int n;
int m=100000;
cin>>n;
for(;n--;){
if(int(m*1.05)%1000==0) m=int(m*1.05);
else m=int(m*1.05)+(1000-int(m*1.05)%1000); 
}

cout<<m<<endl;
return 0;
}

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

C++: #include <iostream>
#include <cmath>
using namespace std;
int main() {
  float sum;
  int n;
  while (cin >> n) {
    sum = 100000;
    for (int i = 0; i < n; i++) {
      sum *= 1.05;
      sum = ceil(sum / 1000) * 1000;
    }
    cout << sum << endl;
  }
  return 0;
}

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

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

C++: #include <bits/stdc++.h>
using namespace std;

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

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

C++: #include<iostream>
#include<map>
#include<vector>
#include<list>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<numeric>
#include<climits>
#include<ctime>
#include<cstring>
#define REP(i,p,n) for(int i=p;i<(int)(n);i++)
#define rep(i,n) REP(i,0,n)
#define rep_split(tok,a_str,re) for(char *tok = strtok((char *)a_str.c_str(),re); tok != NULL; tok = strtok(NULL,re))
#define all(c) (c).begin(), (c).end()

using namespace std;
template<class T> inline void chmax(T& a, T b) { if(b > a) a = b; }
template<class T> inline void chmin(T& a, T b) { if(b < a) a = b; }

int main() {
	int N;
	float money = 100000;

	cin >> N;
	rep(i,N) {
		money = (money + money * 0.05);
	}
	float m = money / 10000;
	cout << ceil(m) * 10000 << endl;
	
/*
	string a_str = to_string(money);
	vector<char> strs;

	for (int i = a_str.size()-1; i >= 0; i--) {
		strs.push_back(a_str[i]);
	}
	rep(i,4) {
		strs[i] = '0';
	}

	if (strs[4] > '9') {
		strs[4]	= '0';
		strs[5] = strs[5] + 1;
	}
	else {
		strs[4] = strs[4] + 1;
	}

	vector<char> strs2;
	for (int i = strs.size()-1; i >= 0; i--) {
		cout << strs[i];
	}
	cout << endl;
*/

	return 0;
}

C++: #include <stdio.h>
int main(){
int debt = 100000;
int week;
scanf("%d", &week);
while(week--){
debt *= 1.05;
if(debt % 1000){
debt = (debt / 1000 + 1) * 1000;
}
}
printf("%d\n", debt);
return 0;
}

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

using namespace std;

int calcDebt(int debt){
	double tmp = debt * 1.05;
	int result = (int) ceil(tmp);
	if(result % 1000 == 0){
		return result;
	}else{
		return (result / 1000 + 1) * 1000;
	}
}

int main() {
	int result = 100000;
	int n;
	scanf("%d", &n);
	for(int i=0; i<n; i++){
		result = calcDebt(result);
	}
	printf("%d", result);
	return 0;
}

C++: #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;

int main() {
	int x = 100;
	int n; scanf("%d", &n);
	for(int i = 0; i < n; i++) {
		x = (x*21-1)/20+1;
	}
	printf("%d\n", x*1000);
	return 0;
}

C++: #include<stdio.h>

int main(void){
	int n,i,x=100000,z;
	
	scanf("%d",&n);

	for(i=0;i<n;i++)
	{
		x = x * 1.05;
		
		if(x % 1000 != 0.0)
		{
			z = (x / 1000)+1;
			x = z * 1000;
		}
	}
	printf("%d\n",x);

	return 0;
}

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

int main()
{
    int n=0;
    int o=100000;
    
    cin >> n;
    
    for (int i=1; n != i; i++) {
        o = (o*1.05+999)/1000;
        o *= 1000;
    }
    
    cout << o << endl;
}

C++: #include<cstdio>
#include<cstring>
int main(void){
	int a=100000;
	int n;
	scanf("%d",&n);
	for (int i = 0; i < n; i++){
	a = (((a+19999) / 20000)*1000) + a;
	}
	printf("%d\n", a);
	return 0;
}

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

int main(void){
  int i, k = 100000;

  cin >> i;

  for(int j = 1;j<=i;j++){
    k = k + k * 0.05;
    if(k % 1000 != 0) k += 1000 - (k % 1000);
  }

  cout << k << endl;

  return 0;
}

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

using namespace std;


int main(){
    int week;
    cin >> week;
    double money =100;

    for(int i=0; i<week; i++){
        money=money * 1.05;
        money+=0.999;
        money=int(money);
    }
    printf("%d\n",int(money)*1000);
}

C++: #include <iostream>

using namespace std;

void solve()
{
	int n;
	cin >> n;
	unsigned long long debt = 100000;
	for(int i = 0; i < n; ++i)
	{
		debt *= 1.05;
		int less_than_thousand = debt % 1000;
		if(less_than_thousand > 0)
		{
			debt += 1000 - less_than_thousand;
		}
	}
	cout << debt << endl;
}

int main()
{
	solve();
	return(0);
}

C++: #include<iostream>
#include<iomanip>
#include<algorithm>
#include<cctype>
#include<cmath>
#include<string>
#include<set>
#include<map>
#include<queue>
#include<vector>
using namespace std;

int main() {
	int a=100000,n;
	cin>>n;
	while(n-->0){
		a*=1.05;
		a=(a+999)/1000;
		a*=1000;
	}
	cout<<a<<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 = ceil(debt * 1.05 / 1000) * 1000;
	}
	cout << debt << endl;

	return 0;
}

C++: #include<stdio.h>

int main(void)
{
	int n,x,m=100000;
	scanf("%d",&n);

	for(x=0;x<n;x++)
	{
		m=m+m*0.05;

		if(m%1000!=0)
		{
			m+=1000-(m%1000);
		}
	}
	printf("%d",m);
}