USACO: Section 1.2 -- PROB Palindromic Squares

Source Code

Lesson Learned:
1. Pseudocode is really efficient for designing routines. And please stay calm and write down all the details in pseudocode before coding.
2. During design, all the known information should be counted and written down,  or you will lose some important requirement/information. Such as "Use the letters 'A', 'B', and so on to represent the digits 10, 11, and so on. "
3. Coding, testing, debugging time is not significant if your design is well and your pseudocode is detailed enough.
4. Testing is important before submitting the solution.
5. After coding a statement, always give it a second thought/verification and think it from different perspective. This worths the return.

你可能感兴趣的:(USACO)