|
|
вернуться в форумCan't I use string Послано hz2zhh 12 ноя 2010 13:54 I WA at #4 but I don't know why I have test many tests in the other topic and my program can give a right answer so who can help me Re: Try this tests... Try this tests: 1999999 ans:2000002 90999 ans:91019 19992 ans:20002 0 ans:0 221121 ans:221122 Little hint: Start comapring digits from middle.If right>left then increment middle digits by one using % operator.If digits have become zero carry on increment for next right and corrosponding left.For all other cond left=right AC__0.078-1774 КБ |
|
|