Go: package main

import "fmt"

func roundUp1000(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 = roundUp1000(dept)
	}

	fmt.Println(int(dept))
}

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

using namespace std;

int roundUp(int x, int index);

int main(void)
{
    int i;
    int n;
    double intrst;
    int debt;
    
    cin >> n;
    
    debt = 100000;
    intrst = 0.05;
    for (i = 0; i < n; i++) {
        debt *= 1.0 + intrst;
        debt = roundUp(debt, 4);
    }
    
    cout << debt << endl;
    
    return 0;
}

int roundUp(int x, int index)
{
    int exp10;
    
    exp10 = pow(10, index - 1);
    x += exp10 - 1;
    x /= exp10;
    x *= exp10;
    
    return x;
}

C++: #include <bits/stdc++.h>
using namespace std;
long money = 100000;
void up() {
    int judge = money % 1000;
    cout << judge << endl;
    if(judge) {
        money -= judge; money += 1000;
    }
}

int main(void) {
    int n; cin >> n;
    for(int r = 0; r < n; r++) {
        money *= 1.05; up();
    }
    cout << money << endl;
    return(0);
}

C++: #include<iostream>
#include<stdio.h>
#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;
        cout << i+1 << ":::" << ans << "->";
        ans=(int)(ans+0.999);
        cout << ans << "->";
        ans=(double)ans;
        cout << ans << endl;
    }
    ans*=1000;
    printf("%d\n",(int)ans);
    return 0;
}

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

C++: #include <iostream>

using namespace std;

int main(int argc, char *argv[]) {
  int n;
  double debt = 100000;
  
  cin >> n;
  for (int i = 0; i < n; i++) {
    debt *= 1.05;
    debt = (int)(debt / 1000 + 0.9) * 1000;
  }
  cout << debt << endl;
  return 0;
}

C++: #include<stdio.h>

main(void){
    int money = 100000, num;
    
    scanf("%d", &num);
    
    for( ; num >= 0; num--){
        money += money * 0.05;
    }
    
    printf("%d\n", (money/10000)*10000);

    return 0;
}

C++: #include <iostream>
#include <string>
#include <cstdlib>
#include <ctype.h>
#include <math.h>

static bool input(int& n)
{
    if (0x00 == &n) {
        std::cerr << "n is null" << std::endl;
        return false;
    }

    std::string tmp("");
    char c = 0;

    std::cin >> c;
    if (isdigit((int)c)) {
        tmp = c;
    	n = std::atoi(tmp.c_str());
    }

    return true;
}

static int calcBalanceOfDebt(int n)
{
    double balance = 100000;

    for (int i = 1; i <= n; i++) {
        balance *= 1.05;
        balance /= 1000;
        balance = (int)ceil(balance);
	balance *= 1000;
    }

    return (int)balance;
}

int main()
{
    int num = 0;

    input(num);
    std::cout << calcBalanceOfDebt(num) << std::endl;

    return 0;
}

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

int main(){
	int n;
	int a = 100000;

	cin >> n;
	for (int i = 0; i < n; i++){
		a *= 1.05;
		if (a % 1000 != 0){
			a = (a / 1000 + 1) * 1000;
		}
	}
	cout << a << endl;
}

C++: #include <cstdio>

int Solve(int n){
	int c = 100000;
	int self;
	for(int i = 0;i < n;i++){
		c *= 1.05;
		self = c % 1000;
		if(self > 0){
			c -= self;
			c += 1000;
		}
	}
	return c;
}

int main(){
	int n;
	while(scanf("%d",&n) != EOF){
		printf("%d\n",Solve(n));
	}
	return 0;
}

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

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

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

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

int main()
{
	int n;
	int money=100;

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

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


using namespace std;


int main(){
	int n;
	int ans = 100000;

	while(cin >> n){
		for(int i=0;i<n;i++){
			ans = ans * 1.05;
			if(ans % 1000 > 0){
				ans = ((ans / 1000) + 1) * 1000;
			}
		}
		printf("%d\n",ans);

		ans = 100000;
	}

	return 0;
}

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

int main()
{
	int n;
	long long int v = 100000;

	cin >> n;
	for (int i = 0; i < n; i++) {
		v += v / 20;
		if (v % 1000) {
			v -= v % 1000;
			v += 1000;
		}
	}
	cout << v << endl;
}

C++: #include <iostream>

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, debt *= 1000;
		cout << debt << endl;
	}

	return 0;
}

C++: #include <iostream>

using namespace std;

int main(){
  int i;
  double money = 100000;
  cin >> i;
  for(; i > 0; i--){
    money += money*0.05;
  }

  cout << money << endl;

  if(money - (int)money%10000 > 0){
    money = ((int)money/10000)*10000 + 10000.0;
  }
  cout << money << endl;
}

C++: #include <iostream>

using namespace std;

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

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

int main(){

  int n, a;
  int money = 100000;

  cin >> n;
  for(;0<n;n--){
    money = (float)money * (float)1.05;
    a = money / 1000;
    if(money-a*1000 != 0)
      money = (a+1)*1000;
  }
    cout << money << endl;

  return 0;
}

C++: #include<iostream>
int main(){int w,m=100000;for(std::cin>>w;w--;m=(m+999)/1000*1000)m+=m*5/100;std::cout<<m<<'\n';}

C++: #include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n; cin >> n;
  int num = 100000;
  for ( int i = 0; i < n; i++ ) {
    int result = (int)(num*1.05) % 1000;
    if ( result == 0 ) num *= 1.05;
    else num = num * 1.05 + 1000 - result;
  }
  cout << num << 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;
	printf("%d\n",n);
	i=n%10000;
	printf("%d\n",i);
	if(i!=0){
	    n=n+i;
	}
	printf("%d\n",n);
	return 0;
}

C++: #include <iostream>

using namespace std;

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

C++: #include<iostream>
#include<cstring> 
using namespace std;
int main()
{
    int n,s=100000;
    cin>>n;
    n++;
    while(n--)
    {
    	s+=5000;
	}
	cout<<s<<endl;
}

C++: #include<iostream>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
#include<vector>
#include<cmath>
#include<cstring>
#include<cstdio>
#define loop(i,a,b) for(int i=a;i<b;i++) 
#define rep(i,a) loop(i,0,a)
#define rp(a) while(a--)
#define pb push_back
#define mp make_pair
#define all(in) in.begin(),in.end()
const double PI=acos(-1);
const double EPS=1e-10;
using namespace std;
typedef long long ll;
typedef vector<int> vi;
bool h[1000010]={false};
int main(){
	int n;
	cin>>n;
	int out=100000;
	rep(i,n){
		out*=1.05;
		if(out%1000)out=out-out%1000+1000;
	}
	cout<<out<<endl;
}

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

int main(void)
{
	int base = 100000;
	
	int n;
	std::cin >> n;
	
	for (int i = 0; i < n; i++) {
		base = 1.05 * base;
    if (base % 1000 != 0) {
      base = (base / 1000) * 1000 + 1000;
    }
    else {
      base = (base / 1000) * 1000;
    }
	}
  
  std::cout << base << std::endl;
}