Given an amount of money (in the form of Arabic number), please change it to the form of Chinese number. For example, if the input value is 5203, then you have to change it to “伍仟貳佰零參”.
給定一個金額(以阿拉伯數字的形式),請將其更改為中文數字。例如,如果輸入值為5203,則必須將其更改為“伍仟貳佰零參”。
The input consists of a number of test cases. The first line of the input file contains an integer indicating the number of test cases to follow. Each test case is an integer that indicates an amount of money (in the form of Arabic number). We assume the value of each test case is less than or equal to 500000000.
輸入包含許多測試案例。輸入文件的第一行包含一個整數,表示接著的測試案例數量。每個測試案例都是一個整數,表示金額(以阿拉伯數字的形式)。我們假設每個測試案例的值小於或等於500000000。
The output contains one line for each test case. Each line contains a string, which is the number in the form of Chinese number.
每個測試案例輸出一行。每行包含一個字串,即為中文數字形式的數字。
2 5028 309027
伍仟零貳拾捌 參拾萬玖仟零貳拾柒
編號 | 身分 | 題目 | 主題 | 人氣 | 發表日期 |
沒有發現任何「解題報告」 |