lightoj1001【简单题】

题意:

一个人的值不能超过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
",10,n-10);
        else
            printf("%d %d
",n,0);
    }
    return 0;
}
 


原文地址:https://www.cnblogs.com/keyboarder-zsq/p/6216794.html