Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main(){
- int T , n , a = 1;
- string s;
- cin >> T;
- while( T-- ){
- int ans = 0;
- cin >> n >> s;
- for( int i = 0 ; i < n ; i++ ){
- if( s[i] == '#' ) continue;
- ++ans;
- i += 2;
- }
- cout << "Case " << (a++) << ": " << ans << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement