Go: package main

import (
	"bufio"
	"os"
	"strconv"
	"math"
	"fmt"
)

var scanner = bufio.NewScanner(os.Stdin)

func nextInt() int {
	scanner.Scan()
	i, e := strconv.Atoi(scanner.Text())
	if e != nil {
		panic(e)
	}
	return i
}

func calc(n int) float64 {
	tmp := 100000.0
	for i := 0; i < n; i++ {
		tmp *= 1.05
		tmp = ceil(tmp, -3)
	}
	return tmp
}

func ceil(f float64, places int) float64 {
	shift := math.Pow(10, float64(places))
	return math.Ceil(f*shift)/shift
}

func main() {
	scanner.Split(bufio.ScanWords)
	n := nextInt()
	ans := calc(n)
	fmt.Println(int(ans))
}

C++: #include<bits/stdc++.h>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<algorithm>
using namespace std;


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

C++: #include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
    int n;
    cin >> n;
    int ret = 100000;
    for (int i = 0; i < n; i++) {
        ret += ret * 0.05;
        if (ret%1000) {
            ret = ret - ret % 1000 + 1000;
        }
    }
    cout<<ret<<endl;
    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define REP(i,N) for(int i = 0; i < (int)N; i++)


int main(){
	int n;
	cin >> n;
	double money = 100000;
	REP(i,n){
		money += money*5/100;
		money = ceil(money/pow(10,3))*pow(10,3);
	}
	cout << money;
	return 0;
}

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

using namespace std;

int main() {

	int N, i, sum=100000;

	cin >> N;

	for (i = 0; i < N; i++) {
		sum *= 1.05;
	}

	sum = ((sum + 5000) / 10000)*10000;

	cout << sum << endl;

	return 0;

}

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

int money(int n){
	int m = 100000;
	for(int i=0; i<n; i++){
		m *= 1.05;
		if(m % 1000 != 0){
			m += 1000 - m%1000;
		}
	}
	return m;
}

int main(){
	int n;
	while(cin >> n){
		cout << money(n) << endl;
	}
}

C++: #include <iostream>

int update_money(int m) {
    int tmp = (int) (((double) m) * 1.05);
    double floating = (((double) tmp) / 1000.0) - (tmp / 1000);
    if (floating > 0) {
        tmp = ((int) (((double) tmp) / 1000) ) * 1000 + 1000;
    } else {
        tmp = ((int) ((double) tmp) / 1000) * 1000;
    }
    return tmp;
}

int main(void) {
    int money = 100000;
    int n;
    std::cin >> n;

    for (int i=0; i<n; i++) {
        money = update_money(money);
    }
    std::cout << money << std::endl;

    return 0;
}

C++: 


#include <algorithm>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>

using namespace std;
int main()
{
	long double a = 100000;
	int s;
	cin >> s;
	for (int i = 0; i < s; i++) {
		a *= 1.05;
	}
	if (a % 1000 == 0) {
		
	}
	else { a = a - (a % 1000); }
	cout << a; return 0;

}

C++: #include<iostream>
#include<stdio.h>
#include<algorithm>
#include<math.h>
#include<string.h>
using namespace std;
int main()
{
	int n,s=100000,a,b;
	cin>>n;
	for(int i=0;i<n;i++)
	{
		s*=1.05;
		if(s%1000>=1)
		{
			a=1000-s%1000;
			s+=a;
		}
	}
	cout<<s<<endl;
	return 0;
}

C++: #include<stdio.h>

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

C++: #include <iostream>

using namespace std;

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

C++: #include <iostream>

using namespace std;

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

	return  0;
}

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


int main()
{
	int debt = 100000;
	int n, i;
	scanf("%d", &n);
	for (i = 0; i < n; i++)
	{
		debt = debt*1.05;
		debt = debt / 1000.0;
		if (debt % 10 >0)debt = debt / 1 + 1;
		debt = debt * 1000;
	}
	printf("%d\n", debt);
	return 0;
}

C++: #include <cstdio>
 
using namespace std;
 
int main() {
 int n = 0;
 double N = 0;
 int M = 100;
 int L = 100;
 scanf("%d", &n);
 for (int i = 0; i < n; i++) {
  N = L;
  N = M;
  N *= 1.05;
  N -= M;
  L += N;
 
  while (N> 1){
    N -= 1;
  }
 
  if (N > 0) {
    L += 1;
   }
}
 
L *= 1000;
printf("%d", L);
 
return 0;
}

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

using namespace std;

int main() {
	int n;
	while (scanf("%d", &n) != EOF) {
		double ans = 10;
		while (n--) {
			ans = ans * 1.05;
		}
		printf ("%d0000\n", (int)(ans+1.0));
	}
	return 0;
}

C++: #include<iostream>

using namespace std;

int main(){
	long n, result = 100000;

	cin >> n;

	for(int i = 0; i < n; i++) {
		result *= 1.05;
		if(result % 1000 != 0) {
			result += 1000;
			result -= result % 1000;
		}
	}

	cout << result << endl;

	return 0;
}

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

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

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

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

  cin >> n;

  for(int i=0; i<n; i++) {
    amount = amount * 1.05;
    if(amount % 1000 != 0) {
      amount = amount + 1000 - amount % 1000;
    }
  }

  cout << amount << "\n";

  return 0;
}

C++: 13530000

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

int main()
{
	double monthlyPayment;
	double balance;
	double interestRate;
	int month = 1;

	cout.setf(ios::fixed);	// These lines force currency format in output to 2 decimal pts
	cout.setf(ios::showpoint);
	cout.precision(2);

	cout << "Enter the current balance of your loan: $";
	cin >> balance;
	cout << "Enter the interest rate (compounded monthly) : ";
	cin >> interestRate;
	cout << "Enter the desired monthly payment : $";
	cin >> monthlyPayment;
	
	while (interestRate >= 1)
	{ 
		interestRate = interestRate / 100; 
	}

	balance = balance * (1 + interestRate / 12) - monthlyPayment;
		
        // this is where the program stops. 

	cout << "After month 1 your balance is $" << balance << endl;

	while (balance > 0)
	{
		balance = balance * (1 + interestRate / 12) - monthlyPayment;
		
		month = month++;

		cout << "After month " << month << ", your balance is : $" << balance << endl;
	}

	cout << "You have paid off the loan at this point. Congratulations!" << endl;


	return 0;

C++: #include <iostream>

using namespace std;

int main(void)
{
    int i;
    int n;
    int debt;
    
    cin >> n;
    
    debt = 100000;
    for (i = 0; i <= n; i++) {
        debt += 5000;
    }
    cout << debt << endl;
    
    return 0;
}