Advertisement
Eksekk

K01A B

Jun 25th, 2021
758
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. std::string::iterator function(std::string::const_iterator a, std::string::const_iterator b, std::string::iterator wyjscie)
  4. {
  5.     while (a != b)
  6.     {
  7.         char znak = *a;
  8.         while (*a == znak && a != b)
  9.         {
  10.             ++a;
  11.         }
  12.         *wyjscie++ = znak;
  13.     }
  14.     return wyjscie;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement