shipu_a

Div 2 Problem I

Jan 14th, 2013
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #include<cstdio>
  2. #include<cstring>
  3. #include<string>
  4. #include<cmath>
  5. #include<iostream>
  6. #include<cctype>
  7. #include<map>
  8. #include<stack>
  9. #include<cstdlib>
  10. #include <queue>
  11. #include <vector>
  12. #include<algorithm>
  13. #define ll long long
  14. #define sc scanf
  15. #define pf printf
  16. #define Pi 2*acos(0.0)
  17. using namespace std;
  18. int main()
  19. {
  20.     char s[21];
  21.     while(sc("%s",s)==1)
  22.     {
  23.         if(s[0]>='A'&&s[0]<='Z')
  24.         {
  25.             pf("%s\n",strlwr(s));
  26.         }
  27.         else
  28.         pf("%s\n",strupr(s));
  29.     }
  30.     return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment