Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///Trello, Principiante, Ayuda para un olvidadizo
- #include <iostream> /// AlenAntonelli
- #include <vector>
- using namespace std;
- int main ()
- {
- long aux=0, cc=0;
- string v;
- vector <int> c;
- cin >> v;
- for (long i=0; i<v.size(); i++)
- {
- if (v[i]=='*')
- {
- cc++;
- if (cc!=1)
- c.push_back(aux);
- aux=0;
- }
- else
- aux++;
- }
- for (int i=0; i<4; i++)
- cout << c[i] <<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment