https://ideone.com/HdFs7X4 here is my code
it gives a WA, although i tested the code in many cases and it gives a correct answer, so what is the corner case i didn't think of?
thanks, ans here is the problem http://www.spoj.com/problems/CRAN043
Suggested Topics
Topic | Category | Replies | Views | Activity |
---|---|---|---|---|
SPTTRN1 - Straight Line Spiral Pattern (Act 1) | C and C++ | 0 | 34 | 26d |