Number Wars
CodeChefOpen on judge ↗
Enough of racing! Brian wants to challenge Dom in a new game he invented called 'Number Wars'. It is a two player game. In this game the first player writes a number 'n'. In each turn a player has to write a number (strictly less than 100001) which has equal number of distinct factors as 'n'. A number once written cannot be re-written. Brian always starts the game. The player who cannot make a mov
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