#P16322. 【MX-J29-T1】数字划分
【MX-J29-T1】数字划分
Problem Description
Given a number with length , you need to output how looks if you insert a comma every digits when grouping from the lowest digit to the highest digit.
Input Format
This problem has multiple test cases. The first line contains two positive integers , representing the Subtask ID and the number of testdata groups. In particular, in the samples .
For each testdata group:
- Input one line with three positive integers .
Output Format
For each testdata group:
- Output one line containing a string representing your answer.
0 2
13 1145141919810 3
10 1114561523 4
1,145,141,919,810
11,1456,1523
Hint
Sample Explanation
For the first group of data, simulating as required gives the split number string 1,145,141,919,810.
For the second group of data, simulating as required gives the split number string 11,1456,1523.
Constraints
For all data, it is guaranteed that:
- ;
- ;
- ;
- .
This problem uses bundled tests, and each subtask has the following special properties:
::cute-table{tuack} | Subtask | | Special Property | Score | |:-:|:-:|:-:|:-:| | | | None | | | | | | | | | ^ | None | |
Translated by ChatGPT 5