AKsya Vishisht Sankhyaah
CodeChefOpen on judge ↗
AK is doing some extensive research on arrays and distinct numbers, and while doing so, he comes up with the following problem: You are given two arrays A and B, of sizes N and M, respectively. For each pair (Ai,Bj) such that 1<=i<=N , 1<=j<=M , Perform the following operations - 1. Extract out all the digits of Ai and Bj 2. You can rearrange these digits in any arbitrary manner to form a number
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