Arithmetic Progression Game
CodeChefOpen on judge ↗
Bob is playing a number game today. He is happy if he wins the game. The game begins this way: Bob chooses some random $N$ integers and then checks whether they form an arithmetic progression or not. If those random numbers form a progression then Bob wins. An arithmetic progression is a sequence in each consecutive number has equal difference. For example: 3, 6, 9, 12 is an arithmeti
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start