Solution technique of USTC Intra contest problem

Problem D: ANGEL NUMBER Angel number 421 (please don’t think it’s angel’s favorite number: D) Is actually a sequence of numbers 4,2,1 which can be found following certain rules. The rules are given below Rules Step 1 Select any whole number. Step 2 If it is an even number, divide by 2; if it is odd number multiply by 3 […]

Continue Reading

Programming Problem: Interchange

Dear ACM Solvers Today I am giving a simple and interesting Number theory Problem for you though I am not sure whether it should be treated as Number theory or ad-hoc type problem. You know better 🙂 Assume a 2 digit number xy=75. If the position of digit have been interchanged it goes to yx=57. Now the difference between the […]

Continue Reading

ACM Contest Tips

How do I become good at these contests? A few things help: Have a favourite programming language that you know very well. C++ and Java are both used at the practice sessions. Be familiar with commonly used algorithms and data structures (these are typically covered in second- and third-year courses). Enjoy programming. If you’re doing this for fun, it’ll motivate […]

Continue Reading