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 <cstdlib>
#include <cmath>
using namespace std;
typedef long long ll;

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

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 <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;
	int ss=100000;
	cin>>n;
	fu(0,n){
		ss=ss*1.05;
		if(ss%1000!=0) ss=ss/1000*1000+1000;
	}
	cout<<ss<<endl;
}

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

C++: #include <iostream>

using namespace std;


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

	cin >> n;

	while(n > 0){
		debt *= 1.05;
		debt += (debt % 1000) ? 1000 - (debt % 1000) : 0;
		n--;
	}

	cout << debt << endl;

	return 0;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(void){
   int a,ans;
   float b = 100000.0f;
   std::cin >> a;
   for(int i = 0; i < a; i++){
       b *= 1.05f;
       b /= 1000;
       double c = ceil(b);
       b = c * 1000;
       std::cout << b << std::endl;
   }
    
}

C++: a=1e5;main(N){scanf("%d",&N);while(N--)a*=1.05,a+=(a%1000)?1e3-a%1000:0;a=!printf("%d\n",a);}

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

int main()
{
	double debt = 100000.0;
	int N;

	cin >> N;

	for (; N > 0; N--){
		debt *= 1.05;

		debt /= 1000;
		debt = ceill(debt);
		debt *= 1000;
	}

	cout << debt ;

	return 0;
}

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

#include <math.h>

int main(){

	int n=0;
	double syakkin = 100000.0;

	cin >> n;


	for (int i = 0; i < n; i++){
		syakkin = syakkin * 1.05;
		if (long(syakkin) % 1000 != 0){
			syakkin = syakkin - double(long(syakkin) % 1000) + 1000.0;
		}
		//cout << syakkin << endl;
	}
	
	cout << syakkin << endl;

	return 0;
}

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

C++: #include<stdio.h>
#include<stdlib.h>
#include<math.h>

int main(){

	int a = 100000;
	int b = 0;
	float c = 0.05;
	int n = 0;

	scanf("%d",&n);

	if (n > 100)
	{
		n = 100;
	}

	b = a * c;

	for (int i = 0; i < n; i++)
	{
		a += b;
	}

	a = int(a / 1000) * 1000;

	printf("%d\n",a);

	return 0;
}

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

int main(){
	int shakkinn=100000;
	int n;
	int i;

	scanf("%d", &n);

	for (i = 0; i < n; i++) {
		shakkinn *= 1.05;
		while (shakkinn % 1000 != 0) {
			shakkinn++;

	}
}
	printf("%d", shakkinn);
	return 0;
}

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

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;
	double money = 100000;

	cin >> N;
	rep(i,N) {
		money = money * 1.05;
		money = ceil(money/1000) * 1000;
	}
	cout << money << endl;
	
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<(n); i++)
#define REP2(i,x,n) for(int i=x; i<(n); i++) 
#define ALL(n) begin(n),end(n)
struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star;
int main()
{
    int M{ 100000 };
    int N;
    cin >> N;
    REP( i, N )
    {
        M = (int)( M * 1.05 + 999 ) / 1000 * 1000;
    }
    cout << M << endl;
    return 0;
}

C++: #include <cstdio>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <string.h>

using namespace std;

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

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

int main(){
  int n;
  scanf("%d",&n);
  
  double a=100;
  for(int i=0; i<n; i++){
    a*=1.05;
    a = ceil(a);
  }

  printf("%d",(int)a*1000);
}

C++: 
#include <iostream>
#include <string>
#include <map>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <math.h>
#include <iomanip>
using namespace std;
int main(){
  int n,res;
  double m=100000;
  cin>>n;
  if(!n){cout<<m<<endl;return 0;}
  for(;n;n--)
    m*=1.05;
  cout<<m<<endl;
  m/=10000;
  m+=1;
  res=(int)m*10000;
  cout<<res<<endl;
  return 0;
}

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

int main(){
  int n;
  int debt = 100000;
  
  std::cin >> n;
  for(int i=0; i<n; i++){
    debt = round((double)debt * 1.05);
    int under = debt % 1000;
    if(under==0)
    else{
      debt = debt - under + 1000;
    }
  }
  std::cout << debt << std::endl;
  
  return 0;
}

C++: #include<iostream>
#include<math.h>
#include<stdio.h>
#include<windows.h>
using namespace std;
int main() {
    int n;
    double dbt;
    dbt = 100000;
    cin >> n;
    for (; n > 0; n--) {
        dbt = dbt * 1.05;
        dbt = dbt / 1000;
        dbt = ceil(dbt);
        dbt = dbt * 1000;
    }
    cout << dbt << endl;
    return 0;
}

C++: #include <iostream>

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

	const int first = 100000;
	int interest = first * 0.05;
	int loan;

	for (int i = 0; i < nWeeksLater; i++)
		loan = first + interest * nWeeksLater;

	int a = loan / 1000;
	loan = loan % 1000 >= 500 ? (a + 1) * 1000 : a * 1000;

	std::cout << loan << std::endl;
}

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

		d /= 1000;
		d *= 1000;
	}
	cout<<d<<endl;
	
	return 0;
}

C++: #include<iostream>
#include<math.h>
using namespace std;
int main() {
    int n;
    double dbt;
    dbt = 100000;
    cin >> n;
    for (; n >= 0; n--) {
        dbt = dbt * 1.05;
        dbt = dbt / 1000;
        dbt = ceil(dbt);
        dbt = dbt * 1000;
    }
    cout << dbt;
    return 0;
}