題意:輸入T組數據,每組數據一個數,將這個數字分解成兩個數字之和,要求這兩個數字範圍爲[0,10]。
#include <bits/stdc++.h>
using namespace std;
int main(void)
{
int T;
scanf("%d", &T);
while (T--)
{
int n;
scanf("%d", &n);
if (n>10)
printf("%d %d\n", 10, n-10);
else
printf("%d %d\n", 0, n);
}
return 0;
}