Skip to content

Commit 8c3515c

Browse files
authored
Create Problem B.cpp
1 parent 0013f3d commit 8c3515c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Google-CodeJam/Problem B.cpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//Problem Link: https://codingcompetitions.withgoogle.com/codejam/round/0000000000051705/00000000000881da
2+
#include <iostream>
3+
using namespace std;
4+
int main()
5+
{
6+
int t,n;
7+
cin >> t;
8+
for(int ii = 0; ii < t; ii++){
9+
cout << "Case #" << 1+ii << ": ";
10+
string s;
11+
cin >> n;
12+
cin >> s;
13+
for(char c: s) {
14+
char p = 'S';
15+
if (c == p)
16+
p = 'E';
17+
cout << p;
18+
}
19+
cout << endl;
20+
}
21+
22+
}

0 commit comments

Comments
 (0)