TOPIC

wrong answer 50%

魂・・ asked 6 months ago

include include

void main() { int X,Z,n,i,c; i=1; scanf ("%d",&X); scanf ("%d",&Z); while (Z<X) { scanf ("%d",&Z); } c=X; if (X>0) { while (c<Z) { X++; c=c+X; i++; } printf ("%d\n",i); }

}

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.