Saturday, June 6, 2015

LightOJ - 1001 - Opposite Task

  1. /****************#####    بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيم  #####*******************
  2. __________________________________________________________________________
  3. ######################  Ya-Seen Arafat(ACWizard) #########################
  4. ######################        UAP-CSE-33B        #########################
  5. *************************************************************************/
  6. #include <bits/stdc++.h>
  7. #define sc(n) scanf("%d", &n)
  8. #define S 100003
  9. using namespace std;
  10. typedef long long LL;
  11. int main(){
  12.     int t, a, b, n;
  13.     sc(t);
  14.     while(t--){
  15.         sc(n);
  16.         if(<= 10)= 0, b = n;
  17.         else a = 10, b = n-a;
  18.         printf("%d %d\n", a, b);
  19.     }
  20.     return 0;
  21. }

No comments:

Post a Comment