Go: package main

import "fmt"

var (
	dept    float64 = 100000
	addDept float64 = dept * 0.05
)

func main() {
	var week int
	var nWeekDept float64
	fmt.Scan(&week)

	nWeekDept = dept + (addDept * float64(week))

	if int(nWeekDept)%1000 != 0 {
		nWeekDept += addDept
	}
	fmt.Println(nWeekDept)
}

C++: #include<iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <math.h>
using namespace std;
#include <sstream>
typedef long double ld;
int a;
int main(){
cin>>a;
 double c=100000.0;
for (int i = 0; i < a; ++i) {
	c=c*1.05;
	c=ceil(c*0.001);
	c=c*1000;
}
cout<<c<<endl;
}

C++: #include <bits/stdc++.h>

using namespace std;
using ll = long long;
using pii = pair<int, int>;

int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(10);
  
  int n;
  cin >> n;

  int ans = 100000;
  for (int i = 0; i < n; i++) {
    ans += ans / 20;
    if (ans % 1000) {
      ans = ans / 1000 * 1000;
      ans += 1000;
    }
  }
  cout << ans << endl;

  return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
    int money=1e5;
    int n;
    while(cin>>n)
    {
        for(int x=0;x<n;x++)
        {
            money*=1.05;
            if(money%1000!=0)
                money=(int)(money/1000*1000)+1000;
        }
        cout<<money<<endl;
    }
    return 0;
}

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

int main(){
    int n;
    cin >> n;
    double m = 100; // unit:k

    for(int i = 0; i < n; i++){
        m = ceil(m * 1.05);
    }
    cout << m*1000 << endl;
    return 0;
}

C++: #include<iostream>

int main()
{
	int money = 100000;

	int n;

	std::cin >> n;

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

		if(money%1000 != 0)
		{
			money/=1000;
			++money;
			money*=1000;
		}
	}

	std::cout << money << '\n';
}

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;
        ans=(int)(ans+0.999);
        ans=(double)ans;
    }
    ans*=1000;
    printf("%d\n",(int)ans);
    return 0;
}

C++: #include<bits/stdc++.h>
int main(){int d,k;std::cin>>d;k=ceil(pow(1.05,d)*10)*10000;printf("%d\n",k);}

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

C++: int main(void) {
    int i, n, k;
    scanf("%d",&n);
    i = 100000;
    while (n > 0) {
        i = i * 1.05;
        if(!(i % 1000 == 0))
        {
            k = i % 1000;
            i = i + 1000 - k;
        }
    n--;
    }
    printf("%d\n", i);
    return 0;
}

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