أرسل تقرير مسألة برمجية: طباعة أرقام عدد من اليمين إلى اليسار في أسئلة البرمجة نشر 11 نوفمبر 2023 · تم التعديل في 11 نوفمبر 2023 بواسطة Mustafa Suleiman تعديل عنوان السؤال D. Digits time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Given a number N. Print the digits of that number from right to left separated by space. Input First line contains a number T (1 ≤ T ≤ 10) number of test cases. Next T lines will contain a number N (0 ≤ N ≤ 109) Output For each test case print a single line contains the digits of the number separated by space. Example input Copy 4 121 39 123456 1200 output Copy 1 2 1 9 3 6 5 4 3 2 1 0 0 2 1 1
مسألة برمجية: طباعة أرقام عدد من اليمين إلى اليسار
في أسئلة البرمجة
نشر · تم التعديل في بواسطة Mustafa Suleiman
تعديل عنوان السؤال
D. Digits
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Given a number N. Print the digits of that number from right to left separated by space.
Input
First line contains a number T (1 ≤ T ≤ 10) number of test cases.
Next T lines will contain a number N (0 ≤ N ≤ 109)
Output
For each test case print a single line contains the digits of the number separated by space.
Example
input
Copy
4 121 39 123456 1200
output
Copy
1 2 1 9 3 6 5 4 3 2 1 0 0 2 1