题意:判断是否是等比数列
分析:高精度 + 条件:a[i] * a[i+2] == a[i+1] * a[i+1]。特殊情况:0 0 0 0 0是Yes的,1 2 0 9 2是No的
代码:
/************************************************* Author :Running_Time* Created Time :2015-9-5 20:06:46* File Name :C.cpp ************************************************/#include #include #include #include #include #include #include #include #include #include #include #include #include