Tuesday, July 28, 2015

1001 - Opposite Task

#include<iostream>
#include<stdio.h>
using namespace std;
 
int main()
{
    int T,n;
    scanf("%d",&T);
    while(T--)
    {
        scanf("%d",&n);
        if(n>10)
            printf("10 %d\n",n-10);
        else
            printf("0 %d\n",n);
    }
    return 0;
}

No comments:

Post a Comment

Triathlon

Triathlon - CodeChef # include < bits/stdc++.h > using namespace std ; # define fi first # define se second # define mp ...