The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case consists of two lines. The first line of each test case is N and S, where N is ...
Extract the digits of the number Calculate: Sum of digits at even positions Sum of digits at odd positions Positions are counted from right to left, starting at position 1 Finally, print the absolute ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results