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 <stdio.h>

int main(){
    long int money = 100000;
    int n;
    scanf( "%d",&n );
    for( int i = 0;i < n;i++ ){
        money = ( float )money * 1.05;
        if( money % 1000 != 0 ) money += 1000-( money%1000 );
    }
    printf( "%d",money );
    return 0;
}

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

int main()
{
	int n;
	while (cin >> n)
	{
		while (n--)
		{
			money *= 1.05;
		}
		if (money % 10000 != 0)
		{
			money -= (money % 10000);
			money += 10000;
		}
		cout << money << endl;
	}

	return 0;
}

C++: /*
AizuOnline A0007
Debt Hell
*/
#include <stdio.h>
#include <float.h>
#include <math.h>

main()
{

  int i,weeks;
  float debt;

  debt = 100000.0;

  scanf("%ld",&weeks);
  
  for(i=0;i<weeks;i++)
    {       debt *=1.05;
            debt = 1000.0 * ceil(debt/1000.0);
    }

  printf("%ld\n",(long int)debt);

return(0);
}

C++: #include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
	int n;
	cin >> n;
	double d = 100000;
	while (n--)
	{
		d += 5. / 100 * d;
		d = ceil(d / 1000) * 1000;
	}
	cout << fixed << setprecision(0) << d << endl;
	return 0;
}

C++: #include <iostream>

using namespace std;

int main(){
  int i;
  int money = 100000;

  cin >> i;

  int cutoff = 1000;

  double dif;
  for(; i > 0; i--){
    money += money*0.05;
    dif = ((int)money/cutoff)*cutoff;
    if(money - dif > 0){
      money = dif + cutoff;
    }
  }

  cout << money << endl;
}

C++: #include <iostream>

using namespace std;

int main(int argc, char const* argv[])
{
	int n;

	cin >> n;

	int money = 100000;
	for( int i = 0;i < n;i++ ){
		money *= 1.05;
		int hoge = 1000 - money % 1000;
		money += ( hoge != 1000 ) ? hoge : 0;
	}
	cout << money << endl;
	return 0;
}

C++: #include<stdio.h>

int main(void){
	int QBs;
	int i,n;
	
	QBs = 100000;
	
	scanf("%d", &n);
	
	for(i = 0; i < n; i++){
		QBs = QBs *1.05;
		if(QBs % 1000 != 0){
			QBs = QBs - QBs%1000;
			QBs = QBs + 1000;
		}
	}
	printf("%d\n",QBs);
	return 0;
}

C++: #include<stdio.h>
#include<string.h>
int main(void) {
	int  a=100000,c;
	double b = 100000;
	scanf("%d", &c);
	for (int i = 0; i < c; i++)
	{
		b*= 1.05;
		a = b;
		if (a % 1000 != 0)
		{
			b = (b - (a % 1000)) + 1000;
		}
		a = b;
		printf("%d\n", a);
	}
	printf("%d\n",a);
	return 0;
}

C++: #include<iostream>

double Kiriage(double a)
{
	a *= 10;

	int aI = a;

	if(a>aI)
	{
		aI += 1;
	}
	return 1.0*aI/10;
}

int main()
{
	double debt =10;//ここ変更OK 最初の借入額

	int n;

	std::cin >> n;

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

		debt = Kiriage(debt);
	}

	std::cout << debt*10000 << '\n';

}

C++: // clang-format off
#include <bits/stdc++.h>
#define int long long
#define main signed main()
// #define main int main()
#define loop(i, a, n) for (int i = (a); i < (n); i++)
#define rep(i, n) loop(i, 0, n)
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define prec(n) fixed << setprecision(n)
#define stlice(from, to) substr(from, (to) - (from) + 1)
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
using namespace std;
using pii = pair<int, int>;
using vi = vector<int>;
using vd = vector<double>;
using vc = vector<char>;
using vb = vector<bool>;
using vs = vector<string>;
using vpii = vector<pii>;
using vvi = vector<vi>;
using vvb = vector<vb>;
using vvpii = vector<vpii>;
template<typename A> using fn = function<A>;
constexpr int INF = sizeof(int) == sizeof(long long) ? 1000000000000000000LL : 1000000000;
constexpr int MOD = 1000000007;
constexpr double PI = acos(-1);
template<typename A, typename B> bool cmin(A &a, const B &b) { return a > b ? (a = b, true) : false; }
template<typename A, typename B> bool cmax(A &a, const B &b) { return a < b ? (a = b, true) : false; }
constexpr bool odd(const int &n) { return n & 1; }
constexpr bool even(const int &n) { return !odd(n); }
template<typename V> constexpr typename V::value_type sum(const V &v) { return accumulate(all(v), 0); }
void solve();
main { solve(); return 0; }
// clang-format on

void solve() {
  int n;
  cin >> n;
  int x = 100000;
  rep(i, n) {
    x = (x * 105 / 100 + 5000) / 10000 * 10000;
  }
  cout << x << endl;
}

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

int main(){
	double n,i,tmp;
	double ans=100000;
	cin>>n;
	while(n--){
		ans *= 1.05;
		ans = ceil(ans/1000)*1000;

	}
	cout<<ans<<endl;
	return 0;
}

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

C++: #include <iostream>
#include <stdio.h>
int main(){

	int n,i,kane=100000,a,b;

	std::cin>>n;

	for(i=0;i<n;i++){
		kane=kane*1.05;
		if(kane%1000!=0){
			a=kane%1000;
			b=1000-a;
			kane=kane+b;
			}
		}
	
	std::cout<<kane;

		return 0;
		}

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

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

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

using namespace std;

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

    cin >> n;
    for (int i = 0; i < n; i++) {
        money += money * 0.05;
        if (money % 1000) {
            money += 1000;
            money -= money % 1000;
        }
    }
    cout << money << 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;

        return 0;
}

C++: #include <iostream>
#include <string>
#include <cstdlib>
#include <cctype>
#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 (std::isdigit(static_cast<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 = ceil(balance / 1000) * 1000;
    }

    return static_cast<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(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=double(ans);
    }
    ans*=1000;
    ans=int(ans);
    cout << ans << endl;
    return 0;
}

C++: a=100000
gets.to_i.times{a=a*105/100;a=(a/1000+1)*1000 if a%1000!=0;}
puts a

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

int main()
{
	int n;
	double debt = 10;
	double risi = 0.05;

	cin >> n;
	for(int i = 0;i < n;i++)
		debt += debt * risi;
	debt = ceil(debt);
	debt = debt * 10000;
	cout << debt << endl;

	return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int loan;
	int n;
	
	loan = 100000;
	scanf("%d", &n);
	
	while (n){
		loan += (loan * 0.05);
		
		if (loan % 1000){
			loan += 1000;
		}
		
		loan /= 1000;
		loan *= 1000;
		
		n--;
	}
	
	printf("%d\n", loan);
	
	return (0);
}