- #include<iostream>
- using namespace std;
- int main(void){
- string s[100];
- s[ 1] = "1"; s[ 2] = "2"; s[ 3] = "3"; s[ 4] = "5"; s[ 5] = "8"; s[ 6] = "13"; s[ 7] = "21"; s[ 8] = "34"; s[ 9] = "55"; s[10] = "89";
- s[11] = "144"; s[12] = "233"; s[13] = "377"; s[14] = "610"; s[15] = "987"; s[16] = "1597"; s[17] = "2584"; s[18] = "4181"; s[19] = "6765"; s[20] = "10946";
- s[21] = "17711"; s[22] = "28657"; s[23] = "46368"; s[24] = "75025"; s[25] = "121393"; s[26] = "196418"; s[27] = "317811"; s[28] = "514229"; s[29] = "832040"; s[30] = "1346269";
- s[31] = "2178309"; s[32] = "3524578"; s[33] = "5702887"; s[34] = "9227465"; s[35] = "14930352"; s[36] = "24157817"; s[37] = "39088169"; s[38] = "63245986"; s[39] = "102334155"; s[40] = "165580141";
- s[41] = "267914296"; s[42] = "433494437"; s[43] = "701408733"; s[44] = "1134903170"; s[45] = "1836311903"; s[46] = "2971215073"; s[47] = "4807526976"; s[48] = "7778742049"; s[49] = "12586269025"; s[50] = "20365011074";
- s[51] = "32951280099"; s[52] = "53316291173"; s[53] = "86267571272"; s[54] = "139583862445"; s[55] = "225851433717"; s[56] = "365435296162"; s[57] = "591286729879"; s[58] = "956722026041"; s[59] = "1548008755920"; s[60] = "2504730781961";
- s[61] = "4052739537881"; s[62] = "6557470319842"; s[63] = "10610209857723"; s[64] = "17167680177565"; s[65] = "27777890035288"; s[66] = "44945570212853"; s[67] = "72723460248141"; s[68] = "117669030460994"; s[69] = "190392490709135"; s[70] = "308061521170129";
- s[71] = "498454011879264"; s[72] = "806515533049393"; s[73] = "1304969544928657"; s[74] = "2111485077978050"; s[75] = "3416454622906707"; s[76] = "5527939700884757"; s[77] = "8944394323791464"; s[78] = "14472334024676221"; s[79] = "23416728348467685"; s[80] = "37889062373143906";
- s[81] = "61305790721611591"; s[82] = "99194853094755497"; s[83] = "160500643816367088"; s[84] = "259695496911122585"; s[85] = "420196140727489673"; s[86] = "679891637638612258"; s[87] = "1100087778366101931"; s[88] = "1779979416004714189"; s[89] = "2880067194370816120"; s[90] = "4660046610375530309";
- s[91] = "7540113804746346429"; s[92] = "12200160415121876738"; s[93] = "19740274219868223167"; s[94] = "31940434634990099905"; s[95] = "51680708854858323072"; s[96] = "83621143489848422977"; s[97] = "135301852344706746049"; s[98] = "218922995834555169026"; s[99] = "354224848179261915075";
- int a = 0;
-
- while (cin >> a){
- cout << s[a] << endl;
- }
- //system("pause");
- return 0;
- }
複製代碼 |