#include <string>
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int cases;
cin >> cases;
string a, b;
getline(cin, a);
for (int cas = 1; cas <= cases; cas++) {
getline(cin, a);
getline(cin, b);
if (a == b) {
cout << "Case " << cas << ": Yes" << endl;
} else {
a.erase(std::remove(a.begin(), a.end(), ' '), a.end());
b.erase(std::remove(b.begin(), b.end(), ' '), b.end());
if (a == b)
cout << "Case " << cas << ": Output Format Error" << endl;
else
cout << "Case " << cas << ": Wrong Answer" << endl;
}
}
return 0;
}
Thursday, April 23, 2015
UVa 11734 - Big Number of Teams will Solve This
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment