Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iomanip>
  2. #include <iostream>
  3. #include <cstring>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8.  
  9.     char a[69];
  10.     cin >> a;
  11.     for(int i = 0; i < strlen(a); i+=2)
  12.     {
  13.         for(int j = 0; j < a[i+1]-'0'; j++)
  14.         {
  15.             cout << a[i];
  16.         }
  17.     }
  18.     cout << endl;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement