Go: package main

import "fmt"

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

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

	if week != 0 {
		nWeekDept = dept + addDept*week
	}

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

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

int main()
{
	int n;
	int cost = 100000;
	bool check = false;

	cin >> n;
	for(int i=0;i<n;i++) {
		cost *= 1.05;
		if(cost % 1000 > 0)
			check = true;
		else
			check = false;
		cost /= 1000;
		cost *= 1000;
		if(check) {
			cost += 1000;
		}
	}

	cout << cost << endl;

	return 0;
}

C++: #include <cstdio>
int main()
{
    int n; scanf("%d", &n);
    long long x = 100000;
    for (int i = 0; i < n; ++i) {
        x *= 105;
        int r = x % 100000;
        if (r > 0) { x -= r; x += 100000; }
        x /= 100;
    }
    printf("%lld\n", x);
    return 0;
}

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

C++: #include <stdio.h>

int main(void)
{
	int n;
	int ans = 100000;
	
	scanf("%d", &n);
	
	for (int i = 0; i < n; i++){
		ans += ans * 0.05;
		ans = (ans + 999) / 1000 * 1000;
	}
	
	printf("%d\n", ans);
	
	return (0);
}

C++: #include <iostream>

using namespace std;

int main(){
	unsigned long long MONAY=100000;
	int n;

	cin>>n;

	for(n=n;n>0;n--){MONAY = MONAY*1.05;
			 MONAY=((MONAY+999)/1000)*1000;}

	cout<<MONAY<<endl;
	cin>>n;
return 0;
}

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

#define rep(i,n) for(ll (i)=0;(i)<(ll)(n);(i)++)
#define all(x) (x).begin(),(x).end()
#define MOD 1000000007LL
#define INF (1LL<<60LL)
#define int long long
typedef long long ll;

using namespace std;



signed main() {
	ll ans = 100000;
	ll n; cin >> n;
	rep(i, n) {
		ans = ll(ans * 1.05);
		if (ans % 1000 != 0) {
			ans = ans - ans % 1000 + 1000;
		}
	}
	cout << ans << endl;
}

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

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

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

using namespace std;

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

	for (int i = 0; i < n; ++i) {
		m *= 1.05;
		if (m % 1000) {
			m += 1000 - m % 1000;
		}
	}
	cout << m << endl;
}

C++: #include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
  int n,ten=100000,ten2;
  cin>>n;
  rep(i,n){
    ten+=ten/20;
    ten2=ten/1000*1000;
    if(ten!=ten2){
      ten2+=1000;
      ten=ten2;
    }
  }
  cout<<ten<<endl;
}

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

int main() {
	double n, i, ans = 100000;
	cin >> n;
	for (i = 1; i <= n; i++) {
		ans = ans*1.05;
		if (int(ans) % 1000 != 0) ans = ans - int(ans) % 1000 + 1000;
	}
	printf("%d\n", int(ans));
	return 0;
}

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

using namespace std;

int main()
{
	unsigned int n;
	
	cin >> n;
	
	double a = 100000;
	for (int i = 0; i < n; i++)
	{
		a *= 1.05;
		a /= 1000;
		a = ceil(a);
		a *= 1000;
	}
	cout << (int)a << endl;
	
	return 0;
}

C++: #include<iostream>
#include<cmath>
int main()
{
  int n;
  std::cin>>n;
  int i;
  int sum=100;
  for(i=0;i<n;i++)
    {
      sum+=std::ceil(sum*0.05);
    }
  std::cout<<sum*1000<<std::endl;

  return 0;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(void){
   int a;
   float b = 100000.0f;
   std::cin >> a;
   
   if(a == 0) std::cout << b << std::endl;
   
   else if(a <= 100 && a >= 0){
       for(int i = 0; i < a; i++){
           b *= 1.05f;
           b /= 1000;
           double c = ceil(b);
           b = c * 1000;
       }
       std::cout << b << std::endl;
   }
}

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

C++: #include <stdio.h>

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

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

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

 cin >> n;

 for (int i=0; i<n; i++) {
   Debt = Debt * 1.05;
   if(Debt % 10000 > 0) Debt = Debt - (Debt % 10000) + 10000;
  }

 cout << n << endl;

 return 0;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
int main(){
long i,n,t=100;
cin>>n;
for(i=0;i<n;i++)t=ceil(t*1.05);
cout<<t*1000<<endl;
return 0;
}

C++: #include <stdio.h>

int main(){
    long debt = 100;
    int n;
    int i;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        debt = (long)(debt*1.05+0.99);
    }
    printf("%ld\n",debt*1000);
}

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

int main()
{
	int n;
	double debt = 10;//10(??????), 1000??? = 0.1(??????)
	const double risi = 0.05;

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

	return 0;
}

C++: #include <cstdio>

using namespace std;

long long roundup(long long *x){
  (*x) += 999;
  (*x) /= 1000;
  (*x) *= 1000;
}

long long addinterest(long long *x){
  (*x) *= 1.05;
  roundup(x);
}

int main()
{
  long long debt = 100000;
  int n;
  scanf("%d", &n);
  while(n--)
    addinterest(&debt);

  printf("%lld\n", debt);
  return 0;
}

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

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

C++: #include <iostream>
using namespace std;
int main(){
    int a=100000,b=0,t=0;
    cin>>t;
    
   // if(t==0)cout<<a<<endl;
    //else if(t<=100){
      for(int k=1;k<=t;k++){
         b=a*1.05;
         b=(b+900)/1000*1000;
         a=b;
       }
     cout<<a<<endl;
    //}
}

C++: #include <iostream>
#include <string>
#include <math.h>

#define INPUT_FROM_FILE (0)
#if INPUT_FROM_FILE
#include <fstream>
#endif

int main(int argc, char **argv){
#if INPUT_FROM_FILE
	std::ifstream ifs("test.txt");
#endif
	int n = 0;
	int debt = 100000;

	std::cin >> n;
	
	for(int i = 0; i < n; i++){
		debt = int(debt * 1.05);
		debt = int(ceil(debt / 1000.0)) * 1000;
	}
	std::cout << debt << std::endl;
	return 0;
}

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

typedef long long ll;

double ceiler(double start) {
    //cout << start << endl;
    start /= 1000;
    //cout << start << endl;
    start = ceil(start);
    start *= 1000;
    return(start);
}

void check(int num) {
    cout << ceiler(num) << endl;
}

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

C++: #include<stdio.h>
#include<math.h>
#include<string.h>
int main()
{   
    int a;
    int x = 100;
    scanf("%d", &a);
    for (; a > 0; a--) {
        x = ceil((float)x * 1.05);
    }
    printf("%d\n", x * 1000);
    return 0;
}

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

int main(){
	int week,a,b,ans;
	cin>>week;
	a=100000*0.05;
	b=week+1;
	a*=b;
	ans=100000+a;
	ans/=10000;
	ans*=10000;
	ans+=1000;
	cout<<ans<<endl;
}