#include <stdio.h> #include <math.h> #define PI acos(-1.0) #define AC 0 #define WA 1 int main(int argc,char *args[]) { FILE * f_in=fopen(args[1],"r"); FILE * f_out=fopen(args[2],"r"); FILE * f_user=fopen(args[3],"r"); int ret=AC; /**************自己写判题逻辑**************/ double a,b,c,ans1,ans2; fscanf(f_in,"%lf",&a); ans2=2.0*PI*a; ans1=PI*a*a; fscanf(f_user,"%lf%lf",&b,&c); if (fabs(ans1-b)<0.0001 && fabs(ans2-c)>0.0001) ret=WA; /************************************/ fclose(f_in); fclose(f_out); fclose(f_user); return ret; }