#include #include #include #define abs(ca) ((ca)>0?(ca):-(ca)) int porovnej(const int *a,const int *b) { if (*a==*b) {return (*(a+1)-*(b+1));} else{ return (*a-*b);} } int main() { double tezx=0,tezy=0,pom,pom2,EPS=0.00001; long int n,pole[20002][2],i,j; scanf("%d",&n); while (n!=0){ tezx=tezy=0; for(i=0;iEPS){goto ne;}; if (abs(pom2-tezy)>EPS){goto ne;}; i++;j--; } printf("V.I.P. should stay at (%.1f,%.1f).\n",tezx,tezy); goto k; ne: printf("This is a dangerous situation!\n"); k: scanf("%d",&n); } return 0; }