SIMPLE EQUATION
CodeChefOpen on judge ↗
Given the values of A,D,N and X. Find the value of the following expression: Since the answer can be very large,output the final answer % 274877906944. Input First line will contain T,the no of test cases. The next T lines will contain the values of A,D,N,X. Note: For this problem submissions are allowed only in C/C++ Output For each test case output the required answer in a single line. Co
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