/***************************************
*                                      *
*             婎慴悢偺愝掕             *
*                                      *
*                                      *
***************************************/

// 旐曐尟幰娭學

// 奜榞旐曐尟幰悢乮擭搙枛乯
extern double Sotowaku[MAX_SHUBETU][SAISHUNENDO - SOTOWAKU_SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];

// 僷乕僩揔梡奼戝娭學
extern double Part_Taishou[MAX_SHUBETU][3][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2][2];
extern double Part_Noufu[MAX_SHUBETU][3][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2][2];
extern double Part_Fuka[MAX_SHUBETU][3][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2][2];
extern double Part_Menjo[MAX_SHUBETU][3][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2][MAX_MENJO][2];

// 乮僆僾僔儑儞嘨梡乯奜榞旐曐尟幰悢乮擭搙枛乯
extern double Sotowaku_Jurai[MAX_SHUBETU][SAISHUNENDO - SOTOWAKU_SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];

// 僷乕僩揔梡奼戝娭學
extern double Part_Taishou_Jurai[MAX_SHUBETU][3][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2][2];
extern double Part_Noufu2[MAX_SHUBETU][3][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2][2];
extern double Part_Fuka2[MAX_SHUBETU][3][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2][2];
extern double Part_Menjo2[MAX_SHUBETU][3][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2][MAX_MENJO][2];

// 擺晅忬嫷暿旐曐尟幰悢乮曐尟椏擺晅忬嫷悇寁梡乯乮擭搙枛抣乯
extern double Hiho_Kei[MAX_SHUBETU][SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2];
extern double Hiho_Noufu[MAX_SHUBETU][SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2];
extern double Hiho_Menjo[MAX_SHUBETU][SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2][MENJO_JOKYO];
extern double Fuka_Hiho[MAX_SHUBETU][SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2];

// 擺晅忬嫷暿旐曐尟幰悢乮曐尟椏擺晅忬嫷悇寁梡乯乮擭搙巒抣乯
extern double Hiho_Kei_P[MAX_SHUBETU][SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2];
extern double Hiho_Noufu_P[MAX_SHUBETU][SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2];
extern double Hiho_Menjo_P[MAX_SHUBETU][SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2][MENJO_JOKYO];
extern double Fuka_Hiho_P[MAX_SHUBETU][SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2];

// 擺晅忬嫷暿旐曐尟幰悢乮曐尟椏擺晅忬嫷悇寁梡乯乮擭搙娫抣乯
extern double Hiho_Kei_Nendokan[MAX_SHUBETU][SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2];
extern double Hiho_Noufu_Nendokan[MAX_SHUBETU][SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2];
extern double Hiho_Menjo_Nendokan[MAX_SHUBETU][SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2][MENJO_JOKYO];
extern double Fuka_Hiho_Nendokan[MAX_SHUBETU][SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 2];

// 旐曐尟幰丒懸婜幰乮媼晅旓悇寁梡乯
extern struct hihokensha
{
	double ninzu;
	double kikan;
	double noufu;
	double menjo[MAX_MENJO][KOKKO_HIKIAGE];
	double gakusei;
	double wakamono;
	double fuka;
}
Hihokensha[MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1][MAX_HIHO_KIKAN + 1] ,
Hihokensha_Y[MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1][MAX_HIHO_KIKAN + 1] ,
Hihokensha2[MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1][MAX_HIHO_KIKAN + 1] ,
Hihokensha_Shibou[MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1][MAX_HIHO_KIKAN + 1] , 
Hihokensha_Shibou_Y[MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1][MAX_HIHO_KIKAN + 1] ,
Hihokensha_Shibou2[MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1][MAX_HIHO_KIKAN + 1] ,
Hihokensha_Zero ,
Taikisha[MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1][MAX_HIHO_KIKAN + 1] ,
Taikisha_Y[MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1][MAX_HIHO_KIKAN + 1] ,
Taikisha2[MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1][MAX_HIHO_KIKAN + 1] ,
Taikisha_Shibou[MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1][MAX_HIHO_KIKAN + 1] ,   
Taikisha_Shibou_Y[MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1][MAX_HIHO_KIKAN + 1] ,
Taikisha_Shibou2[MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1][MAX_HIHO_KIKAN + 1] ,
Taikisha_Zero;

// 庴媼尃幰乮榁楊婎慴擭嬥乯
extern struct rorei
{
	double ninzu;
	double noufu;
	double menjo[MAX_MENJO][KOKKO_HIKIAGE];
	double rofuku_shitasasae;
	double fuka;
}
Rorei_Nendomatu[MAX_ROREI_JUKYU - MIN_ROREI_JUKYU + 1][KURI_AGE_SAGE_SHIKYU_KUBUN] ,
Rorei_Ichibu_Nendomatu[MAX_ROREI_JUKYU - MIN_ROREI_JUKYU + 1][KURI_AGE_SAGE_SHIKYU_KUBUN] ,
Rorei_Shinki[KURI_AGE_SAGE_SHIKYU_KUBUN] ,
Rorei_Shinki2[KURI_AGE_SAGE_SHIKYU_KUBUN] ,
Rorei_Shikyu[MAX_ROREI_JUKYU - MIN_ROREI_JUKYU + 1][KURI_AGE_SAGE_SHIKYU_KUBUN] ,
Rorei[MAX_SHUBETU + 3][SAISHUNENDO - SHONENDO + 1][MAX_ROREI_JUKYU - NENREI_SUM + 1][KURI_AGE_SAGE_SHIKYU_KUBUN + 1] ,
Shikyuritu_Rorei[SAISHUNENDO - SHONENDO + 1][MAX_ROREI_JUKYU - MIN_ROREI_JUKYU + 1] ,
Kakudai_Ichibu[SAISHUNENDO - MIN_ROREI_JUKYU - ( SHONENDO - MAX_ROREI_JUKYU ) + 1][KURI_AGE_SAGE_SHIKYU_KUBUN];

// 庴媼尃幰乮媽朄榁楊丄捠榁乯
extern struct rorei_kyu
{
	double ninzu;
	double noufu;
	double menjo;
	double kasa_noufu;
	double kasa_menjo;
	double rofuku_shitasasae;
	double fuka;
}
// 媽朄榁楊
Rorei_Kyu_Nendomatu[MAX_ROREI_JUKYU - MIN_ROREI_JUKYU + 1][KURI_AGE_SAGE_SHIKYU_KUBUN] ,
Rorei_Kyu_Shikyu[MAX_ROREI_JUKYU - MIN_ROREI_JUKYU + 1][KURI_AGE_SAGE_SHIKYU_KUBUN] ,
Rorei_Kyu[MAX_SHUBETU + 3][SAISHUNENDO - SHONENDO + 1][MAX_ROREI_JUKYU - NENREI_SUM + 1][KURI_AGE_SAGE_SHIKYU_KUBUN + 1] ,
Shikyuritu_Rorei_Kyu[SAISHUNENDO - SHONENDO + 1][MAX_ROREI_JUKYU - MIN_ROREI_JUKYU + 1] ,

// 媽朄捠榁
Turo_Kyu_Nendomatu[MAX_ROREI_JUKYU - MIN_ROREI_JUKYU + 1][KURI_AGE_SAGE_SHIKYU_KUBUN] ,
Turo_Kyu_Shikyu[MAX_ROREI_JUKYU - MIN_ROREI_JUKYU + 1][KURI_AGE_SAGE_SHIKYU_KUBUN] ,
Turo_Kyu[MAX_SHUBETU + 3][SAISHUNENDO - SHONENDO + 1][MAX_ROREI_JUKYU - NENREI_SUM + 1][KURI_AGE_SAGE_SHIKYU_KUBUN + 1] ,
Shikyuritu_Turo_Kyu[SAISHUNENDO - SHONENDO + 1][MAX_ROREI_JUKYU - MIN_ROREI_JUKYU + 1];

// 庴媼幰乮俆擭擭嬥乯
extern struct gonen
{
	double ninzu;
	double noufu;
}
Gonen_Nendomatu[MAX_ROREI_JUKYU - MIN_ROREI_JUKYU + 1][KURI_AGE_SAGE_SHIKYU_KUBUN] ,
Gonen_Shikyu[MAX_ROREI_JUKYU - MIN_ROREI_JUKYU + 1][KURI_AGE_SAGE_SHIKYU_KUBUN] ,
Gonen[MAX_SHUBETU + 3][SAISHUNENDO - SHONENDO + 1][MAX_ROREI_JUKYU - NENREI_SUM + 1][KURI_AGE_SAGE_SHIKYU_KUBUN + 1];

// 庴媼幰乮怴媽忈奞擭嬥乯
extern struct shogai
{
	double ninzu;
	double kihon;
	double kakyu;
	double menjo_kihon;
	double menjo_kakyu;
}
// 堦斒忈奞婎慴擭嬥
Shogai_Ippan_Nendomatu[MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1][SHOGAI_TOKYU] ,
Shogai_Ippan_Shinki[MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1][SHOGAI_TOKYU] ,
Shogai_Ippan_Shikyu[MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1][SHOGAI_TOKYU] ,
Shogai_Ippan[MAX_SHUBETU + 3][SAISHUNENDO - SHONENDO + 1][MAX_SHOGAI_JUKYU - NENREI_SUM + 1] ,

// 俀侽嵨慜忈奞婎慴擭嬥
Shogai_20mae_Nendomatu[MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1][SHOGAI_TOKYU] ,
Shogai_20mae_Shinki[MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1][SHOGAI_TOKYU] ,
Shogai_20mae_Shikyu[MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1][SHOGAI_TOKYU] ,
Shogai_20mae[MAX_SHUBETU + 3][SAISHUNENDO - SHONENDO + 1][MAX_SHOGAI_JUKYU - NENREI_SUM + 1] ,

// 媽朄忈奞擭嬥
Shogai_Kyu_Nendomatu[MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1][SHOGAI_TOKYU] ,
Shogai_Kyu_Shikyu[MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1][SHOGAI_TOKYU] ,
Shogai_Kyu[MAX_SHUBETU + 3][SAISHUNENDO - SHONENDO + 1][MAX_SHOGAI_JUKYU - NENREI_SUM + 1];

// 庴媼幰(堚懓擭嬥)
extern struct izoku
{
	double ninzu;
	double kihon;
	double kakyu;
}
// 堚懓婎慴擭嬥乮嵢乯
Izoku_Tuma_Nendomatu[MAX_IZOKU_TUMA_JUKYU - MIN_IZOKU_TUMA_JUKYU + 1] ,
Izoku_Tuma_Shinki[MAX_IZOKU_TUMA_JUKYU - MIN_IZOKU_TUMA_JUKYU + 1] ,
Izoku_Tuma_Shikyu[MAX_IZOKU_TUMA_JUKYU - MIN_IZOKU_TUMA_JUKYU + 1] ,
Izoku_Tuma[MAX_SHUBETU + 3][SAISHUNENDO - SHONENDO + 1][MAX_IZOKU_TUMA_JUKYU - NENREI_SUM + 1] ,

// 堚懓婎慴擭嬥乮晇乯
Izoku_Otto_Nendomatu[MAX_IZOKU_OTTO_JUKYU - MIN_IZOKU_OTTO_JUKYU + 1] ,
Izoku_Otto_Shinki[MAX_IZOKU_OTTO_JUKYU - MIN_IZOKU_OTTO_JUKYU + 1] ,
Izoku_Otto_Shikyu[MAX_IZOKU_OTTO_JUKYU - MIN_IZOKU_OTTO_JUKYU + 1] ,
Izoku_Otto[MAX_SHUBETU + 3][SAISHUNENDO - SHONENDO + 1][MAX_IZOKU_OTTO_JUKYU - NENREI_SUM + 1] ,

// 堚懓婎慴擭嬥乮巕乯
Izoku_Ko_Nendomatu[MAX_IZOKU_KO_JUKYU - MIN_IZOKU_KO_JUKYU + 1] ,
Izoku_Ko_Shinki[MAX_IZOKU_KO_JUKYU - MIN_IZOKU_KO_JUKYU + 1] ,
Izoku_Ko_Shikyu[MAX_IZOKU_KO_JUKYU - MIN_IZOKU_KO_JUKYU + 1] ,
Izoku_Ko[MAX_SHUBETU + 3][SAISHUNENDO - SHONENDO + 1];

// 庴媼幰乮壡晈擭嬥乯
extern struct kafu
{
	double ninzu;
	double noufu;
	double menjo[MAX_MENJO][KOKKO_HIKIAGE];
}
// 怴朄暘
Kafu_Nendomatu[MAX_KAFU_JUKYU - MIN_KAFU_JUKYU + 1] ,
Kafu_Shinki[MAX_KAFU_JUKYU - MIN_KAFU_JUKYU + 1] ,
Kafu_Shikyu[MAX_KAFU_JUKYU - MIN_KAFU_JUKYU + 1] ,
Kafu[MAX_SHUBETU + 3][SAISHUNENDO - SHONENDO + 1] ,

// 媽朄暘
Kafu_Kyu_Nendomatu[MAX_KAFU_JUKYU - MIN_KAFU_JUKYU + 1] ,
Kafu_Kyu_Shikyu[MAX_KAFU_JUKYU - MIN_KAFU_JUKYU + 1] ,
Kafu_Kyu[MAX_SHUBETU + 3][SAISHUNENDO - SHONENDO + 1];

// 庴媼幰乮巰朣堦帪嬥乯
extern struct ichijikin
{
	double ninzu;
	double kyufu;
	double kyufu_fuka;
}
Ichijikin_Nendomatu[MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1] ,
Ichijikin[MAX_SHUBETU + 3][SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - NENREI_SUM + 1];
