Spiral Chess
CodeChefOpen on judge ↗
The legend says that chess was invented in India; the inventor of the game, Sassi, requested from the Brahman Rai Bhalit a modest payment: 1 grain of wheat for the first square, 2 for the second, 4 for the third, 8 for the fourth, and so on up to the sixty fourth square of the board. The Brahman, being so naive accepted the request and asked his court to make the payment to Sassi. Soon he realized
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