#include #include #include int main(void){ int n,i,j; int krok, useku; int out; double rest, new; int ret; char LINE[1000]; fgets(LINE,999,stdin); n=atoi(LINE); for (i=0;i0){ new=new-(sqrt((krok*krok)-(rest*rest))); out++; } rest=new; if (rest>=krok){ ret=floor(rest/krok); rest=(rest-(krok*ret)); out+=ret; } } if ((2*rest)>=krok) out++; printf("Strazny ujde %d ponorku.\n",out); } return 0; }