fork(3) download
  1. #include <iostream>
  2. #include <string>
  3. #include <cctype>
  4. #include <cstdlib>
  5.  
  6. using namespace std;
  7.  
  8.  
  9. int main()
  10. {
  11. string tag;
  12. int j=0;
  13.  
  14. while(getline(cin,tag))
  15. {
  16.  
  17. while(tag[j]!='\0')
  18. {
  19.  
  20. if(tag[j]=='<')
  21. {
  22. while(tag[j]!='>')
  23. {
  24. if(tag[j]>='0' && tag[j] <='9')
  25. {
  26. exit(0);
  27.  
  28. }else
  29. {
  30. tag[j]=toupper(tag[j]);
  31. j++;
  32. }
  33. }
  34.  
  35. }
  36. j++;
  37. }
  38.  
  39. j=0;
  40. cout<<tag<<endl;
  41.  
  42.  
  43.  
  44. }
  45.  
  46.  
  47.  
  48. return 0;
  49. }
  50.  
  51.  
  52.  
Success #stdin #stdout 0s 3472KB
stdin
<Tagi>ssasas<Sragi>
stdout
<TAGI>ssasas<SRAGI>