Problem | Verdict | Lang | Time | Best | Rank | Submit Time |
---|---|---|---|---|---|---|
| discuss11734 - | Accepted | C++11 | 0.000 | 0.000 | 1185 | 2 mins ago |
#include <bits/stdc++.h>
using namespace std;
string del_space(string s){
string x="";
for(int i=0; s[i]; i++)
if (s[i] != ' ') x += s[i];
return x;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t, cnt=0; cin >> t;
string s; getline(cin, s);
while(t--){
cnt++;
string par, jud;
getline(cin, par);
getline(cin, jud);
if (par==jud) cout<<"Case "<<cnt<<": Yes";
else if (del_space(par)==jud) cout<<"Case "<<cnt<<": Output Format Error";
else cout<<"Case "<<cnt<<": Wrong Answer";
cout<<"\n";
}
}
No comments:
Post a Comment