您的位置:首页 > 其它

lightoj1001【简单题】

2016-10-16 19:40 323 查看
题意:

一个人的值不能超过10;

#include<stdio.h>
#include<queue>
#include<string.h>
#include<iostream>
#include<algorithm>
using namespace std;
typedef long long LL;
const int INF=0x3f3f3f3f;
const LL mod=1e9+7;

int main()
{
int T,cas=1;
int n;
scanf("%d",&T);
while(T--)
{
scanf("%d",&n);
if(n>10)
printf("%d %d\n",10,n-10);
else
printf("%d %d\n",n,0);
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: