Skip to content

Instantly share code, notes, and snippets.

@lapla-cogito
Created April 7, 2019 02:12
Show Gist options
  • Save lapla-cogito/1f521039d9a37c6f32b249147ca6c2fa to your computer and use it in GitHub Desktop.
Save lapla-cogito/1f521039d9a37c6f32b249147ca6c2fa to your computer and use it in GitHub Desktop.
#include "bits/stdc++.h"
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 1; i <= n; ++i) {
int m;
cin >> m;
string h;
cin >> h;
cout << "Case #" << i << ":" << " ";
for (int j = 0; j < h.length(); ++j) {
if (h[j] == 'S') { cout << "E"; }
else { cout << "S"; }
}
cout << endl;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment