修仙模拟器

//lin dao 
//修仙模拟器 
//(较好)
#include <bits/stdc++.h>
using namespace std;
int main() {
	double n, a, b, c, u, m, ans = 1000, sum = 0;
    cout << "开始修仙!" << endl;
    cout << "你决定修仙多少年:"; cin >> n;
	if (n < 500) {
		for (int i = 1; i <= n; i++) {
			cout << "已修仙" << i << "年" << endl;
		}
		cout << "修仙完毕!继续修仙!" << endl; 
		cout << "请决定你的修仙时间:"; cin >> b;
		for (int j = n; j <= 500; j++) {
			cout << "已修仙" << j << "年" << endl;
		}
		cout << "你遇到了魔物!" << endl;
		cout << "你的战力:"  << ans << endl;
		cout << "魔物1战力:982 " << "魔物2战力:1289 " << "魔物3战力:7188" << endl;
        cout << "你即将挑战魔物!" << endl;
		cout << "请输入数字:"; cin >> a;
		if (a == 1) {
			cout << "挑战成功!" << endl;
			cout << "你的战力:" << ans + 300 << endl;
			cout << "继续修仙!" << endl;
			cout << "请决定你继续修仙时间:"; cin >> n;

			for (int k = 500; k <= 500 + n; k++) {
				cout << "已修仙" << k << "年" << endl;
			} 
			cout << "发现宝物!" << endl;
			cout << "请选择:"  << endl;
			cout << "1.金箍棒 " << "2.六脉神剑" << endl;
			cout << "输入你的选择:"; cin >> c;
			if (c == 1) {
				cout << "你的战力达到:" << ans + 300 + n * 5 + 1000 << endl;
				cout << "继续修仙!" << endl;
				cout << "请决定你这次修仙时间:"; cin >> a;
				for (int w = 500 + n; w <= 8888; w++) {
				    cout << "已修仙" << w << "年" << endl; 
				}
					cout << "你即将度过九雷神劫!" << endl;
					cout << "雷劫通过战力:114514" << endl;
					cout << "你获得了孙悟空的恩赐,可借助战力50000战力!" << endl;
					cout << "开始渡劫......   你可以赌一赌!请输出(渡劫成功就输出1,否则输出2)"; cin >> b; 
					if (ans + 300 + n * 5 + 1000 + a * 0.04 + 50000 > 114514) {
					    cout << "渡劫成功!恭喜成为神圣道仙!" << endl;
					    cout << "继续修仙!" << endl;
				        cout << "请决定修仙时间:"; cin >> b;
						for (int p = 8888; p <= 8888 + b; p++) {
							cout << "已修仙" << p << "年" << endl; 
						} 
						sum = ans + 500 + 114514 + b * 2 + a * 0.8 + 1000;
						cout << "当前战力:" << fixed << setprecision(1) << sum << endl; 
						cout << "发现仙丹!"  << endl;
						cout << "1.雷霆仙丹 " << "2.魔力仙丹 " << "3.战神仙丹" << endl;
						cout << "请输入数字:";cin >> m;
						if (m == 1) {
							cout << "你受到了雷霆的惩罚!战力减掉1000000" << endl;
							cout << "当前战力:" << sum - 1000000 << endl;
							cout << "你将受到最后神灵的考验!" << endl;
							cout << "神灵如下,请选择:" << endl;
							cout << "1.孙悟空  要求:吃下雷霆仙丹并战力达到8000000" << endl;
							cout << "2.哪吒   要求:修仙时间达到30000年" << endl;
							cout << "3.东海龙王   要求:战力大于9999999" << endl;
							cout << "请选择:"; cin >> u; 
							if (u == 3 && sum - 1000000 > 9999999) {
								cout << "恭喜!你通过了东海龙王的考验!成为神圣灵魂王!" << endl;
								cout << "修仙成功!" << endl;
						    } else if (u == 3 && sum - 1000000 <= 9999999) {
						    	cout << "修仙失败!你没有通过东海龙王的考验!你将堕落人间,转世投胎......" << endl; 
							} else if (u == 2 && 8888 + b >= 30000) {
								cout << "恭喜!你通过了哪吒的考验!成为神圣灵魂王!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 2 && 8888 + b < 30000) {
								cout << "修仙失败!你没有通过哪吒的考验!你将堕落人间,转世投胎......" << endl;
							} else if (u == 1 && sum - 1000000 >= 8000000) {
								cout << "恭喜!你通过了孙悟空的考验!成为神圣灵魂王!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 1 && sum - 1000000 < 8000000) {
								cout << "修仙失败!你没有通过孙悟空的考验!你将堕落人间,转世投胎......" << endl;
							}
						} else if (m == 2) {
							cout << "你吃下了魔力仙丹!身体似乎没有什么变化......" << endl;
							cout << "当前战力:" << sum << endl;
							cout << "你将受到最后神灵的考验!" << endl;
							cout << "神灵如下,请选择:" << endl;
							cout << "1.孙悟空  要求:吃下雷霆仙丹并战力达到8000000" << endl;
							cout << "2.哪吒   要求:修仙时间达到30000年" << endl;
							cout << "3.东海龙王   要求:战力大于9999999" << endl;
							cout << "请选择:"; cin >> u; 
							if (u == 3 && sum > 9999999) {
								cout << "恭喜!你通过了东海龙王的考验!成为神圣灵魂王!" << endl;
								cout << "修仙成功!" << endl;
						    } else if (u == 3 && sum <= 9999999) {
						    	cout << "修仙失败!你没有通过东海龙王的考验!你将堕落人间,转世投胎......" << endl; 
							} else if (u == 2 && 8888 + b >= 30000) {
								cout << "恭喜!你通过了哪吒的考验!成为神圣灵魂王!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 2 && 8888 + b < 30000) {
								cout << "修仙失败!你没有通过哪吒的考验!你将堕落人间,转世投胎......" << endl;
							} else if (u == 1 && sum >= 8000000) {
								cout << "恭喜!你通过了孙悟空的考验!成为神圣灵魂王!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 1 && sum < 8000000) {
								cout << "修仙失败!你没有通过孙悟空的考验!你将堕落人间,转世投胎......" << endl;
							}
						} else if (u == 3) {
							cout << "你受到了战神的诅咒!" << endl;
							cout << "修仙失败!你将堕落人间,转世投胎......" << endl; 
						}
				    } else {
					    cout << "渡劫失败!你将堕落人间,转世投胎......" << endl; 
				    } 
				} else if (c == 2) {
					cout << "你的战力加了0.6倍!" << endl;
				cout << "当前战力:" << fixed << setprecision(1) << (ans + 300 + n * 2) * 1.6 << endl;
				cout << "继续修仙!" << endl;
				cout << "请决定你这次修仙时间:"; cin >> a;
				for (int w = 1000; w <= 8888; w++) {
					cout << "已修仙" << w << "年" << endl;
			    }
					cout << "你即将度过九雷神劫!" << endl;
					cout << "雷劫通过战力:114514" << endl;
					cout << "六脉神剑有了自主意识!你获得了他的庇护!   雷劫通过战力:99999" << endl;
					cout << "开始渡劫......   你可以赌一赌!请输出(渡劫成功就输出1,否则输出2)"; cin >> b; 
					if (ans + 480 + 5 * n + a * 0.7 + 8888 > 99999) {
				        cout << "渡劫成功!你成为了醉酒剑仙!" << endl;
				        cout << "继续修仙!" << endl;
				        cout << "请决定修仙时间:"; cin >> b;
						for (int p = 8888; p <= 8888 + b; p++) {
							cout << "已修仙" << p << "年" << endl; 
						} 
						sum = (ans + 114514 + b * 0.6 + a * 0.08) * 1.6;
						cout << "当前战力:" << sum << endl; 
						cout << "发现仙丹!"  << endl;
						cout << "1.雷霆仙丹 " << "2.魔力仙丹 " << "3.战神仙丹" << endl;
						cout << "请输入数字:";cin >> m;
						if (m == 1) {
							cout << "你受到了雷霆的惩罚!战力减掉1000000" << endl;
							cout << "当前战力:" << sum - 1000000 << endl;
							cout << "你将受到最后神灵的考验!" << endl;
							cout << "神灵如下,请选择:" << endl;
							cout << "1.盘古  要求:战力达到7777777" << endl;
							cout << "2.神农氏   要求:修仙时间达到20000年" << endl;
							cout << "3.女娲   要求:吃下魔力仙丹" << endl;
							cout << "请选择:"; cin >> u; 
							if (u == 3) {
								cout << "修仙失败!你没有通过女娲的考验!你将堕落人间,转世投胎......" << endl;
							} else if (u == 2 && 8888 + b >= 20000) {
								cout << "恭喜!你通过了神农氏的考验!成为醉酒神剑天神!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 2 && 8888 + b < 20000) {
								cout << "修仙失败!你没有通过神农氏的考验!你将堕落人间,转世投胎......" << endl;
							} else if (u == 1 && sum - 1000000 >= 7777777) {
								cout << "恭喜!你通过了盘古的考验!成为醉酒神剑天神!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 1 && sum - 1000000 < 7777777) {
								cout << "修仙失败!你没有通过盘古的考验!你将堕落人间,转世投胎......" << endl;
							}
						} else if (m == 2) {
							cout << "你吃下了魔力仙丹!身体似乎没有什么变化......" << endl;
							cout << "当前战力:" << sum << endl;
							cout << "你将受到最后神灵的考验!" << endl;
							cout << "神灵如下,请选择:" << endl;
							cout << "1.盘古  要求:战力达到7777777" << endl;
							cout << "2.神农氏   要求:修仙时间达到20000年" << endl;
							cout << "3.女娲   要求:吃下魔力仙丹" << endl;
							cout << "请选择:"; cin >> u; 
							if (u == 3) {
								cout << "恭喜!你通过了女娲的考验!成为醉酒神剑天神!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 2 && 8888 + b >= 20000) {
								cout << "恭喜!你通过了神农氏的考验!成为醉酒神剑天神!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 2 && 8888 + b < 20000) {
								cout << "修仙失败!你没有通过神农氏的考验!你将堕落人间,转世投胎......" << endl;
							} else if (u == 1 && sum - 1000000 >= 7777777) {
								cout << "恭喜!你通过了盘古的考验!成为醉酒神剑天神!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 1 && sum - 1000000 < 7777777) {
								cout << "修仙失败!你没有通过盘古的考验!你将堕落人间,转世投胎......" << endl;
							}
						} else if (u == 3) {
							cout << "你受到了战神的诅咒!" << endl;
							cout << "修仙失败!你将堕落人间,转世投胎......" << endl; 
						} 
				}
			} else if (c == 2) {
				cout << "你的战力加了0.6倍!" << endl;
				cout << "当前战力:" << fixed << setprecision(1) << (ans + 300 + n * 2) * 1.6 << endl;
				cout << "继续修仙!" << endl;
				cout << "请决定你这次修仙时间:"; cin >> a;
				for (int w = 500 + n; w <= 8888; w++) {
				    cout << "已修仙" << w << "年" << endl; 
				}
					cout << "你即将度过九雷神劫!" << endl;
					cout << "雷劫通过战力:114514" << endl;
					cout << "六脉神剑有了自主意识!你获得了他的庇护!   雷劫通过战力:99999" << endl;
					cout << "开始渡劫......   你可以赌一赌!请输出(渡劫成功就输出1,否则输出2)"; cin >> b; 
					if (ans + 480 + 5 * n + a * 0.8 > 99999) {
				        cout << "渡劫成功!你成为了醉酒剑仙!" << endl;
				        cout << "继续修仙!" << endl;
				        cout << "请决定修仙时间:"; cin >> b;
						for (int p = 8888; p <= 8888 + b; p++) {
							cout << "已修仙" << p << "年" << endl; 
						} 
						sum = (ans + 114514 + b * 0.6 + a * 0.08) * 1.6;
						cout << "当前战力:" << sum << endl; 
						cout << "发现仙丹!"  << endl;
						cout << "1.雷霆仙丹 " << "2.魔力仙丹 " << "3.战神仙丹" << endl;
						cout << "请输入数字:";cin >> m;
						if (m == 1) {
							cout << "你受到了雷霆的惩罚!战力减掉1000000" << endl;
							cout << "当前战力:" << sum - 1000000 << endl;
							cout << "你将受到最后神灵的考验!" << endl;
							cout << "神灵如下,请选择:" << endl;
							cout << "1.盘古  要求:战力达到7777777" << endl;
							cout << "2.神农氏   要求:修仙时间达到20000年" << endl;
							cout << "3.女娲   要求:吃下魔力仙丹" << endl;
							cout << "请选择:"; cin >> u; 
							if (u == 3) {
								cout << "修仙失败!你没有通过女娲的考验!你将堕落人间,转世投胎......" << endl;
							} else if (u == 2 && 8888 + b >= 20000) {
								cout << "恭喜!你通过了神农氏的考验!成为醉酒神剑天神!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 2 && 8888 + b < 20000) {
								cout << "修仙失败!你没有通过神农氏的考验!你将堕落人间,转世投胎......" << endl;
							} else if (u == 1 && sum - 1000000 >= 7777777) {
								cout << "恭喜!你通过了盘古的考验!成为醉酒神剑天神!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 1 && sum - 1000000 < 7777777) {
								cout << "修仙失败!你没有通过盘古的考验!你将堕落人间,转世投胎......" << endl;
							}
						} else if (m == 2) {
							cout << "你吃下了魔力仙丹!身体似乎没有什么变化......" << endl;
							cout << "当前战力:" << sum << endl;
							cout << "你将受到最后神灵的考验!" << endl;
							cout << "神灵如下,请选择:" << endl;
							cout << "1.盘古  要求:战力达到7777777" << endl;
							cout << "2.神农氏   要求:修仙时间达到20000年" << endl;
							cout << "3.女娲   要求:吃下魔力仙丹" << endl;
							cout << "请选择:"; cin >> u; 
							if (u == 3) {
								cout << "恭喜!你通过了女娲的考验!成为醉酒神剑天神!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 2 && 8888 + b >= 20000) {
								cout << "恭喜!你通过了神农氏的考验!成为醉酒神剑天神!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 2 && 8888 + b < 20000) {
								cout << "修仙失败!你没有通过神农氏的考验!你将堕落人间,转世投胎......" << endl;
							} else if (u == 1 && sum - 1000000 >= 7777777) {
								cout << "恭喜!你通过了盘古的考验!成为醉酒神剑天神!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 1 && sum - 1000000 < 7777777) {
								cout << "修仙失败!你没有通过盘古的考验!你将堕落人间,转世投胎......" << endl;
							}
						} else if (u == 3) {
							cout << "你受到了战神的诅咒!" << endl;
							cout << "修仙失败!你将堕落人间,转世投胎......" << endl; 
						} 
					}
			        } else {
				        cout << "渡劫失败!你将堕落人间,转世投胎......" << endl; 
			        }
	    } else {
	    	cout << "修仙失败!你被魔物击败了!" << endl;
	    }
	} else {
		for (int i = 1; i <= 500; i++) {
			cout << "已修仙" << i << "年" << endl;
		}
		cout << "你遇到了魔物!" << endl;
		cout << "你的战力:"  << ans << endl;
		cout << "魔物1战力:982 " << "魔物2战力:1289 " << "魔物3战力:7188" << endl;
		cout << "请输入数字:"; cin >> a;
		if (a == 1) {
			cout << "挑战成功!" << endl;
			cout << "你的战力:" << ans + 300 << endl;
			cout << "继续修仙!" << endl;
			cout << "请决定你继续修仙时间:"; cin >> n;

			for (int k = 500; k <= 500 + n; k++) {
				cout << "已修仙" << k << "年" << endl;
			} 
			cout << "发现宝物!" << endl;
			cout << "请选择:"  << endl;
			cout << "1.金箍棒 " << "2.六脉神剑" << endl;
			cout << "输入你的选择:"; cin >> c;
			if (c == 1) {
				cout << "你的战力达到:" << ans + 300 + n * 5 + 1000 << endl;
				cout << "继续修仙!" << endl;
				cout << "请决定你这次修仙时间:"; cin >> a;
				for (int w = 1000; w <= 8888; w++) {
				    cout << "已修仙" << w << "年" << endl; 
				}
					cout << "你即将度过九雷神劫!" << endl;
					cout << "雷劫通过战力:114514" << endl;
					cout << "你获得了孙悟空的恩赐,可借助战力50000战力!" << endl;
					cout << "开始渡劫......   你可以赌一赌!请输出(渡劫成功就输出1,否则输出2)"; cin >> b; 
					if (ans + 300 + n * 5 + 1000 + a * 0.4 + 50000 > 114514) {
					    cout << "渡劫成功!恭喜成为神圣灵仙!" << endl;
					    cout << "继续修仙!" << endl;
				        cout << "请决定修仙时间:"; cin >> b;
						for (int p = 8888; p <= 8888 + b; p++) {
							cout << "已修仙" << p << "年" << endl; 
						} 
						sum = ans + 500 + 114514 + b * 2 + a * 0.8 + 1000;
						cout << "当前战力:" << fixed << setprecision(1) << sum << endl; 
						cout << "发现仙丹!"  << endl;
						cout << "1.雷霆仙丹 " << "2.魔力仙丹 " << "3.战神仙丹" << endl;
						cout << "请输入数字:";cin >> m;
						if (m == 1) {
							cout << "你受到了雷霆的惩罚!战力减掉1000000" << endl;
							cout << "当前战力:" << sum - 1000000 << endl;
							cout << "你将受到最后神灵的考验!" << endl;
							cout << "神灵如下,请选择:" << endl;
							cout << "1.孙悟空  要求:吃下雷霆仙丹并战力达到8000000" << endl;
							cout << "2.哪吒   要求:修仙时间达到30000年" << endl;
							cout << "3.东海龙王   要求:战力大于9999999" << endl;
							cout << "请选择:"; cin >> u; 
							if (u == 3 && sum - 1000000 > 9999999) {
								cout << "恭喜!你通过了东海龙王的考验!成为神圣灵魂王!" << endl;
								cout << "修仙成功!" << endl;
						    } else if (u == 3 && sum - 1000000 <= 9999999) {
						    	cout << "修仙失败!你没有通过东海龙王的考验!你将堕落人间,转世投胎......" << endl; 
							} else if (u == 2 && 8888 + b >= 30000) {
								cout << "恭喜!你通过了哪吒的考验!成为神圣灵魂王!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 2 && 8888 + b < 30000) {
								cout << "修仙失败!你没有通过哪吒的考验!你将堕落人间,转世投胎......" << endl;
							} else if (u == 1 && sum - 1000000 >= 8000000) {
								cout << "恭喜!你通过了孙悟空的考验!成为神圣灵魂王!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 1 && sum - 1000000 < 8000000) {
								cout << "修仙失败!你没有通过孙悟空的考验!你将堕落人间,转世投胎......" << endl;
							}
						} else if (m == 2) {
							cout << "你吃下了魔力仙丹!身体似乎没有什么变化......" << endl;
							cout << "当前战力:" << sum << endl;
							cout << "你将受到最后神灵的考验!" << endl;
							cout << "神灵如下,请选择:" << endl;
							cout << "1.孙悟空  要求:吃下雷霆仙丹并战力达到8000000" << endl;
							cout << "2.哪吒   要求:修仙时间达到30000年" << endl;
							cout << "3.东海龙王   要求:战力大于9999999" << endl;
							cout << "请选择:"; cin >> u; 
							if (u == 3 && sum > 9999999) {
								cout << "恭喜!你通过了东海龙王的考验!成为神圣灵魂王!" << endl;
								cout << "修仙成功!" << endl;
						    } else if (u == 3 && sum <= 9999999) {
						    	cout << "修仙失败!你没有通过东海龙王的考验!你将堕落人间,转世投胎......" << endl; 
							} else if (u == 2 && 8888 + b >= 30000) {
								cout << "恭喜!你通过了哪吒的考验!成为神圣灵魂王!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 2 && 8888 + b < 30000) {
								cout << "修仙失败!你没有通过哪吒的考验!你将堕落人间,转世投胎......" << endl;
							} else if (u == 1 && sum >= 8000000) {
								cout << "恭喜!你通过了孙悟空的考验!成为神圣灵魂王!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 1 && sum < 8000000) {
								cout << "修仙失败!你没有通过孙悟空的考验!你将堕落人间,转世投胎......" << endl;
							}
						} else if (u == 3) {
							cout << "你受到了战神的诅咒!" << endl;
							cout << "修仙失败!你将堕落人间,转世投胎......" << endl; 
						}
				    } else {
					    cout << "渡劫失败!你将堕落人间,转世投胎......" << endl; 
				    } 
			} else {
				cout << "你的战力加了0.6倍!" << endl;
				cout << "当前战力:" << fixed << setprecision(1) << (ans + 300 + n * 2) * 1.6 << endl;
				cout << "继续修仙!" << endl;
				cout << "请决定你这次修仙时间:"; cin >> a;
				for (int w = 1000; w <= 8888; w++) {
					cout << "已修仙" << w << "年" << endl;
			    }
					cout << "你即将度过九雷神劫!" << endl;
					cout << "雷劫通过战力:114514" << endl;
					cout << "六脉神剑有了自主意识!你获得了他的庇护!   雷劫通过战力:99999" << endl;
					cout << "开始渡劫......   你可以赌一赌!请输出(渡劫成功就输出1,否则输出2)"; cin >> b; 
					if (ans + 480 + 5 * n + a * 0.7 + 8888 > 99999) {
				        cout << "渡劫成功!你成为了醉酒剑仙!" << endl;
				        cout << "继续修仙!" << endl;
				        cout << "请决定修仙时间:"; cin >> b;
						for (int p = 8888; p <= 8888 + b; p++) {
							cout << "已修仙" << p << "年" << endl; 
						} 
						sum = (ans + 114514 + b * 0.6 + a * 0.08) * 1.6;
						cout << "当前战力:" << sum << endl; 
						cout << "发现仙丹!"  << endl;
						cout << "1.雷霆仙丹 " << "2.魔力仙丹 " << "3.战神仙丹" << endl;
						cout << "请输入数字:";cin >> m;
						if (m == 1) {
							cout << "你受到了雷霆的惩罚!战力减掉1000000" << endl;
							cout << "当前战力:" << sum - 1000000 << endl;
							cout << "你将受到最后神灵的考验!" << endl;
							cout << "神灵如下,请选择:" << endl;
							cout << "1.盘古  要求:战力达到7777777" << endl;
							cout << "2.神农氏   要求:修仙时间达到20000年" << endl;
							cout << "3.女娲   要求:吃下魔力仙丹" << endl;
							cout << "请选择:"; cin >> u; 
							if (u == 3) {
								cout << "修仙失败!你没有通过女娲的考验!你将堕落人间,转世投胎......" << endl;
							} else if (u == 2 && 8888 + b >= 20000) {
								cout << "恭喜!你通过了神农氏的考验!成为醉酒神剑天神!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 2 && 8888 + b < 20000) {
								cout << "修仙失败!你没有通过神农氏的考验!你将堕落人间,转世投胎......" << endl;
							} else if (u == 1 && sum - 1000000 >= 7777777) {
								cout << "恭喜!你通过了盘古的考验!成为醉酒神剑天神!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 1 && sum - 1000000 < 7777777) {
								cout << "修仙失败!你没有通过盘古的考验!你将堕落人间,转世投胎......" << endl;
							}
						} else if (m == 2) {
							cout << "你吃下了魔力仙丹!身体似乎没有什么变化......" << endl;
							cout << "当前战力:" << sum << endl;
							cout << "你将受到最后神灵的考验!" << endl;
							cout << "神灵如下,请选择:" << endl;
							cout << "1.盘古  要求:战力达到7777777" << endl;
							cout << "2.神农氏   要求:修仙时间达到20000年" << endl;
							cout << "3.女娲   要求:吃下魔力仙丹" << endl;
							cout << "请选择:"; cin >> u; 
							if (u == 3) {
								cout << "恭喜!你通过了女娲的考验!成为醉酒神剑天神!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 2 && 8888 + b >= 20000) {
								cout << "恭喜!你通过了神农氏的考验!成为醉酒神剑天神!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 2 && 8888 + b < 20000) {
								cout << "修仙失败!你没有通过神农氏的考验!你将堕落人间,转世投胎......" << endl;
							} else if (u == 1 && sum - 1000000 >= 7777777) {
								cout << "恭喜!你通过了盘古的考验!成为醉酒神剑天神!" << endl;
								cout << "修仙成功!" << endl;
							} else if (u == 1 && sum - 1000000 < 7777777) {
								cout << "修仙失败!你没有通过盘古的考验!你将堕落人间,转世投胎......" << endl;
							}
						} else if (u == 3) {
							cout << "你受到了战神的诅咒!" << endl;
							cout << "修仙失败!你将堕落人间,转世投胎......" << endl; 
						} 
			        } else {
				        cout << "渡劫失败!你将堕落人间,转世投胎......" << endl; 
			        }
			    }
	    } else {
	    	cout << "修仙失败!你被魔物击败了!" << endl;
		}
    }
    return 0;
}