Go: package main
import (
	"fmt"
	"os"
	"strconv"
	"bufio"
	"math"
)

var sc = bufio.NewScanner(os.Stdin)

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

func calc(n int) float64{
	tmp := 100000.0
	for i:=0; i<n; i++{
		tmp*=1.05
		// tmp = Ceil(tmp, -4) なぜかうまくいかない
		tmp = Ceil(tmp, -3)
		// fmt.Printf("now tmp: %d\n", int(tmp))
	}
	return tmp
}

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

func next()string{
	sc.Scan()
	return sc.Text()
}

func nextInt()int{
	a, _ := strconv.Atoi(next())
	return a
}

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

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

int main()
{
    int n, d = 100000;
    cin >> n;
    for(; n-- ;)
    {
       if((d + d*5/100)%1000 == 0) d = d + d*5/100;
       else
       {
            d = d + d*5/100 + (1000-(d + d*5/100)%1000);
       }
    }
    cout << d << endl;;
}

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

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

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

C++: #include <iostream>
#include <string>
 
using namespace std;
 
int main(){
while(1){
string moji;
string mojihi;
string mojimi;
cin >> moji;
int l;
l=moji.size();
if(moji=="-") {
break;
}
int a,i;
cin >>a;
for(i=0; i<a; i++){
int b;
cin >>b;
mojihi = moji.substr(0,b);
mojimi = moji.substr(b,l-b);
moji= mojimi+mojihi;
}
cout<<moji<<endl;
}
    return 0;
}

C++: #include <cstdio>

int main(int argc, char const *argv[]){
//	freopen("in.txt", "r", stdin);

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

	return 0;
}

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

int main()
{
	int debt = 100000;
	int n;
	cin >> n;

	for(int i=0; i<n; ++i)
	{
		int x = debt * 1.05 + 999;
		debt = x - x%1000;
	}

	cout << debt << '\n';
}

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

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

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

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

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

C++: #include<iostream>
#include<cmath>
int main(){
	double yami = 100.000;
	int n;
	std::cin >> n;
	for(int i = 0;i < n; ++i){
		yami *= 1.05;
		if(ceil(yami) != floor(yami)){
			yami = ceil(yami);
		}
	}yami *= 1000;
	std::cout << yami << '\n';
	return 0;
}

C++: #include<stdio.h>

int main(){
	double num=100000;
	int i,n,sum=0;
	
	scanf("%d",&n);
	
	for(i=0;i<n;i++){
		num=(double)num*1.05;
	}
	num=(double)num/10000;
	sum=num+0.9;
	sum=sum*10000;
	
	printf("%d\n",sum);
	return 0;
}

C++: /*****include*****/
#include <iostream>
#include <fstream>

/*****デバッグ定義*****/
//#define DEBUG
/*****マクロ定義*****/

/*****名前空間*****/
using namespace std;

/*****グローバル変数置き場*****/

/*****その他関数置き場*****/

/*****main関数*****/
int main(){
	/*****ファイルオープン*****/
#ifdef DEBUG
	ofstream fout("output.txt");
	ifstream fin("input.txt");
	if(!fout || !fin){
		cout << "Can't open the file.\n";
		return;
	}
#endif
	/*****変数置き場*****/
	int year;
	long int money = 100000;
	/*****処理部*****/
	cin >> year;
	for(int i=1;i<=year;i++){
		money += money*0.05;
	}
	if(money % 1000 > 0){
		money /= 10000;
		money++;
		money *= 10000;
	}
	cout << money << endl;
	/*****処理終了後*****/
#ifdef DEBUG
	fout.close();
	fin.close();
#endif
	return 0;
}

C++: #include <cmath>
#include <cstdlib>
#include <cstdio>

#include <iostream>
#include <vector>
#include <algorithm>
#include <utility>

int main() {
  long n;
  long ans;

  std::cin >> n;

  ans = 100000;
  for(int i = 0; i < n; ++i) {
    ans = ans * 105 / 100;
    ans += 999;
    ans /= 1000;
    ans *= 1000;
  }

  std::cout << ans << std::endl;

  return 0;
}

C++: #include <iostream>

int main() {
	int N;
	std::cin >> N;

	double debt = 100000.0;
	for( int i=0; i<N; ++i ) {
		debt *= 1.05;
		debt = ( static_cast<int>( debt ) / 1000
			+ ((static_cast<int>( debt )%1000)>0?1:0)) * 1000;
	}

	std::cout << static_cast<int>( debt ) << std::endl;
}