/***************************************
*                                      *
*            惂搙撪梕偺愝掕            *
*                                      *
*                                      *
***************************************/

#include <iostream>
#include "snaps.h"
#include "seid.h"
#include "cntl.h"

void seid( )
{
	// 曄悢愰尵
	int seinendo;
	int seibetu;
	
	// 扨壙偺愝掕
	
	// 婎慴擭嬥扨壙
	// 杮棃妟
	Full_Pension_Honrai_Shonendo[0] = 780900.;
	Full_Pension_Honrai_Shonendo[1] = 780900.;
	Full_Pension_Honrai_Shonendo[2] = 780900.;
	Full_Pension_Honrai_Shonendo[3] = 780900.;
	Full_Pension_Honrai_Shonendo[4] = 780900.;
	Full_Pension_Honrai_Shonendo[5] = 780900.;
	// 暔壙僗儔僀僪摿椺妟
	Full_Pension_Tokurei_Shonendo[0] = 804200.;
	Full_Pension_Tokurei_Shonendo[1] = 804200.;
	Full_Pension_Tokurei_Shonendo[2] = 804200.;
	Full_Pension_Tokurei_Shonendo[3] = 804200.;
	Full_Pension_Tokurei_Shonendo[4] = 804200.;
	Full_Pension_Tokurei_Shonendo[5] = 804200.;
	
	// 僆僾僔儑儞嘨梡偺婎慴擭嬥枮妟
	if( Option3 == 1 )
	{
		Full_Pension_Honrai_Shonendo[1] = 780900. * 41. / 40.;
		Full_Pension_Honrai_Shonendo[2] = 780900. * 42. / 40.;
		Full_Pension_Honrai_Shonendo[3] = 780900. * 43. / 40.;
		Full_Pension_Honrai_Shonendo[4] = 780900. * 44. / 40.;
		Full_Pension_Honrai_Shonendo[5] = 780900. * 45. / 40.;
		Full_Pension_Tokurei_Shonendo[1] = 804200. * 41. / 40.;
		Full_Pension_Tokurei_Shonendo[2] = 804200. * 42. / 40.;
		Full_Pension_Tokurei_Shonendo[3] = 804200. * 43. / 40.;
		Full_Pension_Tokurei_Shonendo[4] = 804200. * 44. / 40.;
		Full_Pension_Tokurei_Shonendo[5] = 804200. * 45. / 40.;
	}
	
	// 晅壛擭嬥
	Full_Pension_Fuka = 2400.;
	
	// 壛媼扨壙乮戞侾丒俀巕乯
	// 杮棃悈弨
	Kakyu_Tanka_12shi_Honrai_Shonendo = 224700.;
	// 暔壙僗儔僀僪摿椺妟
	Kakyu_Tanka_12shi_Tokurei_Shonendo = 231400.;
	
	// 壛媼扨壙乮戞俁巕埲崀乯
	// 杮棃悈弨
	Kakyu_Tanka_3shiiko_Honrai_Shonendo = 74900.;
	// 暔壙僗儔僀僪摿椺妟乮暯惉侾侾擭悈弨乯
	Kakyu_Tanka_3shiiko_Tokurei_Shonendo = 77100.;
	
	// 巰朣堦帪嬥扨壙 
	// 擺晅婜娫  俁乣侾俆擭
	Tanka_Shibou_Shonendo[0]  = 120000.;
	// 擺晅婜娫侾俆乣俀侽擭
	Tanka_Shibou_Shonendo[1]  = 145000.;
	// 擺晅婜娫俀侽乣俀俆擭
	Tanka_Shibou_Shonendo[2]  = 170000.;
	// 擺晅婜娫俀俆乣俁侽擭
	Tanka_Shibou_Shonendo[3]  = 220000.;
	// 擺晅婜娫俁侽乣俁俆擭
	Tanka_Shibou_Shonendo[4]  = 270000.;
	// 擺晅婜娫俁俆乣    擭
	Tanka_Shibou_Shonendo[5]  = 320000.;
	
	// 晅壛擭嬥傪擺傔偰偄偨応崌
	Tanka_Shibou_Fuka = 8500.;
	
	// 抜奒柶彍妱崌
	Hokenryou_Wariai[0] = 0.;
	Hokenryou_Wariai[1] = 0.;
	Hokenryou_Wariai[2] = 0.25;
	Hokenryou_Wariai[3] = 0.5;
	Hokenryou_Wariai[4] = 0.75;
	
	// 忈奞摍媺攞棪
	Shogai_Bairitu[0] = 0.;
	Shogai_Bairitu[1] = 1.25;
	Shogai_Bairitu[2] = 1.00;
	
	// 壛擖壜擻擭悢
	for( seinendo = 0 ; seinendo <= 16 ; seinendo++ )
	{
		Kanou_Nensu[seinendo] = 24 + seinendo;
	}
	for( seinendo = 17 ; seinendo <= 41 ; seinendo++ )
	{
		Kanou_Nensu[seinendo] = 40;
	}
	if( Option3 == 1 )
	{
		for( seinendo = 33 ; seinendo <= 41 ; seinendo++ )
		{
			Kanou_Nensu[seinendo] = 24 + ( seinendo + 1) / 2;
		}
	}
	
	// 孞忋偘尭妟丒孞壓偘憹妟棪
	for( seinendo = SHONENDO + 1 - 70 ; seinendo <= SAISHUNENDO - MIN_ROREI_JUKYU ; seinendo++ )
	{
		for( seibetu = 0 ; seibetu <= 1 ; seibetu++ )
		{
			if( seinendo < HenkouSeinendo )
			{
				Kyufu_ritu[60 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 0.58;
				Kyufu_ritu[61 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 0.65;
				Kyufu_ritu[62 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 0.72;
				Kyufu_ritu[63 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 0.80;
				Kyufu_ritu[64 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 0.89;
				Kyufu_ritu[65 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 1.00;
				Kyufu_ritu[66 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 1.12;
				Kyufu_ritu[67 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 1.26;
				Kyufu_ritu[68 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 1.43;
				Kyufu_ritu[69 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 1.64;
				Kyufu_ritu[70 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 1.88;
			}
			else
			{
				Kyufu_ritu[60 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 0.7173;
				Kyufu_ritu[61 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 0.7773;
				Kyufu_ritu[62 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 0.8373;
				Kyufu_ritu[63 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 0.8973;
				Kyufu_ritu[64 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 0.9573;
				Kyufu_ritu[65 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 1.0000;
				Kyufu_ritu[66 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 1.1082;
				Kyufu_ritu[67 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 1.1922;
				Kyufu_ritu[68 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 1.2762;
				Kyufu_ritu[69 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 1.3602;
				Kyufu_ritu[70 - MIN_ROREI_JUKYU][seinendo - ( SHONENDO + 1 - 70 )][seibetu] = 1.4200;
			}
		}
	}
}	
