Base Palindrome
CodeChefOpen on judge ↗
You like palindrome number very much So you decided to solve one problem. You are given three numbers $N$ ,$M$ and $B$ ($N,M$ in base $10$). You want to count sum of digit of all palindrome numbers between $N$ and $M$ (inclusive) In base $B$. ###Input: - First line of input is number of testcases $T$ $(1 \le T \le 10^5)$. - Each testcase contain three number $N,M,B$ $(1\le N \le M \le
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