Hi All can anyone tell me why this two solution gives me WA on UVA **this is problem : https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3977** **first solution : http://ideone.com/WVbSQO** **second solution : http://ideone.com/Kb3TmW** thanks all