Go: package main

import (
	"fmt"
	"math"
)

const (
	INTEREST float64 = 0.05
	DEBT     int     = 100000
)

func main() {
	var x int
	interestDebt := DEBT
	fmt.Scanf("%d", &x)
	for i := 0; i < x; i++ {
		interestCalc := MakeCalcInterest(float64(interestDebt)) + int(interestDebt)
		interestDebt = RoundUp(float64(interestCalc))
	}
	fmt.Printf("%d\n", interestDebt)
}

func MakeCalcInterest(x float64) int {
	return int((x * INTEREST))
}

func RoundUp(x float64) int {
	return int(math.Ceil(x*0.001) * 1000)
}

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

using namespace std;

int main () {
	long debt=100000;
	int n;
	cin >> n;
	for (; n > 0; --n) {
		debt *= 1.05;
		long a = (debt % 1000 == 0) ? 0 : 1;
		debt = (long)(debt / 1000 + a) * 1000;
	}

	cout << debt << endl;

	return 0;
}

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

int main(void){
    int n;
    std::cin>>n;
    std::cout<<round(10*pow(1.05,n)+1000)<<std::endl;
    return 0;
}

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

void debtAfterWeeks(int &debt, int interest, int &n){
	float fdebt,quotient;
	if(n==0){
		return;
	}else{
		fdebt=static_cast<float>(debt)*(1.0+static_cast<float>(interest)/100.0);
		debt=static_cast<int>(ceil(fdebt));
		quotient = debt % 1000;
		if(quotient != 0){
			debt = debt + 1000.0 - quotient;
		}
		--n;
		debtAfterWeeks(debt, 5, n);
	}
}

int main(){
	int n;
	int debt=100000;
	cin>>n;
	debtAfterWeeks(debt, 5, n);
	cout<<debt<<endl;
	return 0;
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main(){
  int n;
  int ans=100000;
  cin>>n;
  for(int i=0;i<n;i++){
    ans=ans+ans/100*5;
   /*   ans+=900;
   ans=(int)ans/1000;
   ans=ans*1000;*/
    if(ans%1000!=0)ans+=1000-ans%1000;
  }
  printf("%d\n",ans);
  //cout<<(int)ans<<endl;
}

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

int main(){
	long long int n,i,out;
	long double price = 100000;
	cin >> n;
	for(i=0;i<n;i++){
		price += price * 0.05;
	}
	price = ceil(price/10000);
	out = (int)price*10000;
	cout << out;
	return 0;
}

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

#define REP(i, s, n) for (int i = s; i < n; ++i)
#define rep(i, n) REP(i, 0, n)
#define SORT(c) sort((c).begin(), (c).end())
#define IINF INT_MAX
#define LLINF LLONG_MAX
#define DEBUG false

int main()
{
    int n;
    cin>>n;
    long long int ans=100000;
    rep(i,n){
        ans+=ans*5/100;
        int temp=ans%1000;
        if(temp!=0){
            ans+=1000;
            ans-=temp;
        }
    }
    cout<<ans<<endl;
}

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

C++: #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cctype>
#include <cstring>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <list>
#include <stack>
#include <queue>
#include <algorithm>
#include <complex>
#include <iterator>
using namespace std;

typedef pair<int, int> pii;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;

#define all(c) (c).begin(), (c).end()
#define rall(c) (c).rbegin(), (c).rend()
#define tr(c, i) for(auto i = (c).begin(); i != (c).end(); i++)
#define rtr(c, i) for(auto i = (c).rbegin(); i != (c).rend(); i++)
#define repfn(i, a, cont, next) \
  for(auto i = (a); [=](){return(cont);}(); i = [=](){return(next);}())
#define repby(i, a, b, step) repfn(i, a, i < b, i + step)
#define repab(i, a, b) repby(i, (a), (b), 1)
#define rep(i, n) repab(i, 0, (n))
#define pb push_back
#define sz(c) int((c).size())

int rndup1000(int x) {
  int mod = x % 1000;
  if (mod)
    return x - mod + 1000;
  else
    return x;
}

int main(int argc, char **argv)
{
  int n;
  int debt = 100000;
  cin >> n;
  while (n--) {
    debt = rndup1000((debt/100)*105);
  }
  cout << debt << endl;
  return 0;
}

C++: #include <iostream>

/* 切り上げ */
void round_up(int *num, const int round_num)
{
    int fraction;  // 端数
    int tmp;
    
    tmp = *num;
    fraction = tmp % round_num;
    
    tmp /= round_num;
    if (fraction != 0){
        tmp++;
    }
    *num = tmp * round_num;
}

/* 借金額 */
int debt(const int amount, const int weeks)
{
    int ret;
    int round_num = 1000;  // 切り上げる基準の数
    
    ret = amount;
    for (int i = 0; i < weeks; i++){
        ret *= 1.05;  // 利子計算
        round_up(&ret, round_num);
    }
    
    return ret;
}

int main()
{
    int n;
    
    std::cin >> n;
    
    std::cout << debt(100000, n) << std::endl;
    
    return 0;
}

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

int main(){
  int i,j,k;
  int v[1000][3];
  int N;
  int temp;

  cin>>N;
  for(i=0;i<N;i++)
    for(j=0;j<3;j++)
      cin>>v[i][j];

  for(i=0;i<N;i++)
    for(j=0;j<2;j++)
      for(k=0;k<2;k++)
	if(v[i][k] > v[i][k+1]){
	  temp = v[i][k];
	  v[i][k] = v[i][k+1];
	  v[i][k+1] = temp;
	}

  for(i=0;i<N;i++)
    if(pow(v[i][0],2) + pow(v[i][1],2) == pow(v[i][2],2))
      cout<<"YES"<<endl;
    else
      cout<<"NO"<<endl;

  return 0;

}

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

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

	cout << a << endl;

	return 0;
}

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 % 1000 != 0) {
      debt += (1000 - (debt % 1000));
    }
  }

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

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 << endl;;
}

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

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

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

C++: #include <iostream>
#include <string>
 
using namespace std;
 
int main(){
while(1){
string moji;
string mojihi;
string mojimi;
cin >> moji;
int l;
l=moji.size();
if(moji=="-") {
break;
}
int a,i;
cin >>a;
for(i=0; i<a; i++){
int b;
cin >>b;
mojihi = moji.substr(0,b);
mojimi = moji.substr(b,l-b);
moji= mojimi+mojihi;
}
cout<<moji<<endl;
}
    return 0;
}

C++: #include <cstdio>

int main(int argc, char const *argv[]){
//	freopen("in.txt", "r", stdin);

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

	return 0;
}

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

int main()
{
	int debt = 100000;
	int n;
	cin >> n;

	for(int i=0; i<n; ++i)
	{
		int x = debt * 1.05 + 999;
		debt = x - x%1000;
	}

	cout << debt << '\n';
}

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

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

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