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>
using namespace std;

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

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

int main()
{
 int m = 100000;
 int d, w;

 cin >> d;
 w = d/7;

 for(int i=0; i<w; i++){
  m *= 1.05;
  m += 999;
  m /= 1000;
  m *= 1000;
 }

 cout << m << '\n';

 return 0;
}

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

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

int main(){
int n;
scanf("%d",&n);
double base = 100000;
for(int i=0;i<n;i++){
base*=1.05;
}
printf("%d\n",(int)base);
}

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<bits/stdc++.h>
using namespace std;

typedef long long int ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<pair<int, int> > vii;
#define rrep(i, m, n) for(int (i)=(m); (i)<(n);  (i)++)
#define  rep(i, n)    for(int (i)=0; (i)<(n);  (i)++)
#define  rev(i, n)    for(int (i)=(n)-1; (i)>=0; (i)--)
#define vrep(i, c)    for(__typeof((c).begin())i=(c).begin(); i!=(c).end(); i++)
#define  ALL(v)       (v).begin(), (v).end()
#define mp            make_pair
#define pb            push_back
template<class T1, class T2> inline void minup(T1& m, T2 x){ if(m>x) m=static_cast<T2>(x); }
template<class T1, class T2> inline void maxup(T1& m, T2 x){ if(m<x) m=static_cast<T2>(x); }

#define INF 1000000000
#define MOD 1000000009
#define EPS 1E-9

int n;
int res = 100000;

int main()
{
  cin >> n;

  while(n--){
    res *= 1.05;
    if(res % 1000){
      res += 1000;
      res -= res % 1000;
    }
  }

  cout << res << endl;

  return 0;
}

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

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

C++: #include<iostream>
int main(){int w,m=100000;for(std::cin>>w;w--;m=(m+999)/1000*1000)m+=m*5/100;std::cout<<m;}

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

C++: #include <stdio.h>
#include <string.h>

int main()
{
	int n;
	scanf("%d",&n);
	int now = 100000;
	for(int i = 0; i < n; i++)
	{
		now = now * 105 / 100;
		if(now % 1000 != 0)
		{
			now = (now / 1000 + 1) * 1000;
		}
	}
	printf("%d\n",now);
	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <vector>

using namespace std;

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

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

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

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

using namespace std;

int main()
{
	int n, ans;
	double debt = 100000;

	cin >> n;

	for(int i = 0; i < n; i++)
	{
		debt = ceil((debt * 1.05) / 1000) * 1000;
	}

	ans = debt;

	cout << ans << endl;

	return 0;
}

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

using namespace std;

#define rep(i, n) for (int i = 0; i < int(n); ++i)

int main() {
  long long n, m = 100000;
  cin >> n;
  rep (iii, n) {
    m = ceil((double)m * 1.05 / 1000) * 1000;
  }
  cout << m << endl;
  return 0;
}

C++: #include<iostream>

using namespace std;

double money = 100000;

int i;

int main()
{
	cin>>i;
	for(i;i>0;--i)
	{
		money *= 1.05;
		money = (long)(money/100+0.99)*100;
	}
	printf("%.0lf\n",money);
}

C++: using System;

class main
{
    static void Main(String[] args)
    {
        double n = double.Parse(Console.ReadLine());
        double b = 100000;
        for (int i = 0; i < n; i++)
        {
            b = b * 1.05;
            b = (Math.Ceiling(b / 1000))*1000;
        }
        Console.WriteLine(b);
        //Console.ReadKey();
    }
}

C++: #include <iostream>

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>
#include <cmath>

using namespace std;

int main()
{
    int n;
    double debt = 100.0;

    cin >> n;
    
    for (int i = 0; i < n; ++i) {
        debt = ceil(debt * 1.05);
    }
    cout << static_cast<int>(debt * 1000) << endl;

    return 0;
}

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

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

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

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

int main() {
	char str[100];
	cin >> str;
	for(int i=strlen(str)-1;i>=0;i--){
		cout << str[i];
	}
	cout << endl;
	return 0;
}

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

int main(){
	int n;
	cin >> n;
	double ans = 100000;
	for(int i=0; i < n; i++){
		ans *= (1 + 0.05);
	}
	ans = ans / 10000;
	ans = ceil(ans);
	ans = ans * 10000;
	cout << ans << endl;
	return 0;
}

C++: #include<stdio.h>
int main()
{
int n,x;

double r,y;
x=100000;
r=1.05;
scanf("%d",&n);
for(int i=0;i<n;i++){
x=r*x;
if(x%1000>0)x=x+1000-(x%1000);
}
printf("%d\n",x);
return 0;
}

C++: #include <iostream>

using namespace std;

int main(void){
	int n;
	int debt = 100;
	cin >> n;
	for(int i=0;i<n;i++){
		debt = ((debt*1.05)+0.9);
	}
	cout << debt*1000 << endl;
	return 0;
}

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

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

C++: #include<iostream>

int solve( int, int );

int main( void )
{
	int n;

	std::cin >> n;

	std::cout << solve( n, 100000 ) << std::endl;

	return 0;
}

int solve( int n, int debt ){
	int tmp = (int)((( debt * 1.05 ) + 999 ) / 1000 );

	if( n == 1 ){
		return tmp * 1000;
	}

	return solve( n - 1, tmp * 1000 );
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <stdio.h>

using namespace std;

int main()
{
	int m=100000,n;

	cin>>n;
	for(int i=0;i<n;i++){
		m*=1.05;
		if(m%100!=0){
			m/=1000;m++;m*=1000;
		}
	}

	cout<<m<<endl;

	return 0;
}