getting WA in COOK50 SUBGCD problem.please give test cases for wa.

Problem link

MY solution Link
Thanks in advance.

Your modified Accepted Code : http://ideone.com/ZZm7CX

Minor mistake …

1 Like

Thanks. I should have seen my code carefullu :stuck_out_tongue: