SP109 EXCHNG - Exchanges
Description
Given n integer registers r $ _{1} $ , r $ _{2} $ , ... , r $ _{n} $ we define a Compare-Exchange Instruction CE(a,b), where a, b are register indices (1
Input Format
The first line of the input contains exactly one positive integer d equal to the number of data sets, 1
Output Format
The output should consist of exactly d lines, one line for each data set. Line i, 1