Go: package main

import "fmt"

var (
	dept    int = 100000
	addDept int = dept / 100 * 5
)

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

	nWeekDept := dept + addDept*week

	if nWeekDept/addDept%2 != 0 {
		nWeekDept += addDept
	}
	fmt.Print(nWeekDept)
}

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

C++: //↓template↓

#include "bits/stdc++.h"
using namespace std;
#define Would
#define you
#define all(n)  n.begin(),n.end()
const long long INF = 1e18;
const long long MOD = 1e9 + 7;
const double pi = acos(-1);
const int SIZE = 1 << 17;
int dx[] = { 1,0,-1,0 }, dy[] = { 0,1,0,-1 }, alp[30];
long long fac[200005], finv[200005], inv[200005];
vector<long long>dij;
struct edge { long long to, cost; };
vector<vector<edge> >G;

long long mod_pow(long long a, long long b) {
	long long res = 1, mul = a;
	for (int i = 0; i < 31; ++i) {
		if (b >> i & 1) {
			res *= mul;
			res %= MOD;
		}
		mul = (mul * mul) % MOD;
	}

	return res;
}

void addedge(int from, int to, int cost) {
	G[from].push_back({ to,cost });
	G[to].push_back({ from,cost });
}

//↑template↑


int main() {
	int n, ans = 100000;
	cin >> n;
	while (--n) { ans = (ans*ans / 20 + 999) / 1000 * 1000; }
	cout << ans << endl;
}

C++: #include <iostream>

using namespace std;

int main(){

	int n;
	cin >> n;
	int debt = 100000;
	for(int i = 0; i < n; i++){
		debt += debt/20;
		int lower = debt % 1000;
		debt -= lower;
		if(lower != 0)
			debt += 1000;
	}
	cout << debt << endl;
	return 0;
}

C++: #include<iostream>

using namespace std;

int main()
{
  int n;
  cin >> n;

  int debt = 100;
  
  for ( int i = 0; i < n; i++ )
    {
      debt *= 1050;
      
      if ( debt % 1000 != 0 )
        debt = debt / 1000 + 1;
      else
        debt /= 1000;
    }
  cout << debt * 1000 << endl;
  
  return 0;
}

C++: #include<cstdio>
using namespace std;
int main(void)
{
	int n,risi,gou,i,x;
	scanf("%d",&n);
	x=100000;
	for(i=0;i<n;i++){
		x=x*1.05;
		if(x%1000!=0){
			x=x+1000-(x%1000);
		}
	}
	printf("%d\n",x);
	return 0;
}

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

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

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

C++: #include <iostream>
#include <cmath>
#include <cstdio>
#define DEFAULT 100000
using namespace std;

int main(void) {
    double tax = 0.05 * DEFAULT;
    double start = DEFAULT;
    int num;
    cin >> num;
    for(int r = 0; r <= num; r++) {
        start += tax;
    }
    
    //cout << start << endl;
    start /= 1000;
    //cout << start << endl;
    start = ceil(start);
    start *= 1000;
    
    cout << (int)start << endl;
    
    return(0);
}

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

C++: #include <math.h>
#include <iostream>
#include <ios>
#include <iomanip>
#include <algorithm>
#include <functional>
#include <string>

#define YES "YES"
#define NO "NO"
#define space ' '

using namespace std;

void func();

int main(void)
{
	
	func();

	return 0;
}


void func()
{
	int n, debt;

	debt = 100000;

	cin >> n;
	while (n-- > 0)
	{
		debt = debt + debt*0.05;
		if (debt % 1000 > 0)
			debt += 1000 - debt % 1000;

		cout << debt << endl;
	}
}

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

using namespace std;

int n;
long debt = 100000;

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