02. From Left to The Right Data Types and Variables - More Exercise
Здравейте банда ! Може ли да ми помогнете да открия грешката си - съдията ми дава 25/100, а честно казано не виждам къде греша ?
2.From Left to The Right
You will receive number which represent how many lines we will get as an input. On the next N lines, you will receive a string with 2 numbers separated by single space. You need to compare them. If the left number is greater than the right number, you need to print the sum of all digits in the left number, otherwise print the sum of all digits in the right number.
Examples
Input |
Output |
2 1000 2000 2000 1000 |
2 2 |
4 123456 2147483647 5000000 -500000 97766554 97766554 9999999999 8888888888 |
46 5 49 90 |