- /****************##### بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيم #####*******************
- __________________________________________________________________________
- ###################### Ya-Seen Arafat(ACWizard) #########################
- ###################### UAP-CSE-33B #########################
- *************************************************************************/
- #include <bits/stdc++.h>
- #define sc(n) scanf("%d", &n)
- #define S 100003
- using namespace std;
- typedef long long LL;
- int main(){
- int t, a, b, n;
- sc(t);
- while(t--){
- sc(n);
- if(n <= 10)a = 0, b = n;
- else a = 10, b = n-a;
- printf("%d %d\n", a, b);
- }
- return 0;
- }
Saturday, June 6, 2015
LightOJ - 1001 - Opposite Task
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment