diff --git a/16xxx/16787.cpp b/16xxx/16787.cpp new file mode 100644 index 00000000..40cf967c --- /dev/null +++ b/16xxx/16787.cpp @@ -0,0 +1,24 @@ +#include +#include +using namespace std; + +void solve(void) { + int n; cin >> n; + string s; cin >> s; + + int ans = 0; + for (int i=1; i