[解題報告][ZeroJudge][d623] 反方陣 七月 13, 2010 程式碼, ZeroJudge 本文总阅读量次 123456789101112131415/*Problem: d623Language: C++Result: AC (4ms, 744KB) on ZeroJudgeAuthor: m80126colin at 2010-07-13 15:46:05Solutin: Round-off error*/#include <iostream>#include <math.h>#define M 1e-5using namespace std;int main() { for (double a,b,c,d,e;scanf("%lf%lf%lf%lf",&a,&b,&c,&d),fabs(a)>M&&fabs(b)>M&&fabs(c)>M&&fabs(d)>M;(e) ? printf("%.5lf %.5lf\n%.5lf %.5lf\n",d/e,-b/e,-c/e,a/e) : puts("cheat!")) e=a*d-b*c;} Newer [解題報告][ZeroJudge][d625] 踩地雷真好玩 Older 二十字微小說