Created
January 8, 2019 21:05
-
-
Save mehmetaltuner/dde42f992b38e20a8794708c0051108d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main() { | |
int n, w = 0, c = 0; | |
scanf("%d", &n); | |
for(int i=0; i<n/2; i++){ | |
char x; | |
scanf("%c", &x); | |
if(x == 'W') | |
w++; | |
} | |
//cout << w << " " << c << endl; | |
if(w == n/4) | |
cout << 1; | |
else | |
cout << 2; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment