Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. std::string rle(std::string str) {
  5. }
  6.  
  7. //std::string rle(//std::string str) {
  8. }
  9. // ABBBCCXYZDDDDEEEFFFAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBB
  10. // AB3C2XYZD4E3F3A6B28
  11.  
  12. int main() {
  13.   std::string input_string = "AAAABBBCCXYZDDDDEEEFFFAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBB";
  14.   std::cout << "Result: " << rle(input_string) << std::endl;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement