Saleh127

UVA 11734

Jul 28th, 2020
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long int
  4. #define fellow_junior ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
  5. int main()
  6. {
  7. ll t,o;
  8. cin>>t;
  9. getchar();
  10. for(o=1;o<=t;o++)
  11. {
  12. string a,c,d,e;
  13. getline(cin, a);
  14. getline(cin, c);
  15.  
  16. if(a==c)
  17. {
  18. cout<<"Case "<<o<<": "<<"Yes"<<endl;
  19. continue;
  20. }
  21. for(ll i=0; i<a.size(); i++)
  22. {
  23. if(a[i]==' ')
  24. {
  25. continue;
  26. }
  27. else d+=a[i];
  28. }
  29. for(ll i=0; i<c.size(); i++)
  30. {
  31. if(c[i]==' ')
  32. {
  33. continue;
  34. }
  35. else e+=c[i];
  36. }
  37. if(d==e) cout<<"Case "<<o<<": Output Format Error"<<endl;
  38. else cout<<"Case "<<o<<": Wrong Answer"<<endl;
  39. }
  40. return 0;
  41. }
  42.  
Advertisement
Add Comment
Please, Sign In to add comment