paradox64ce

TheWireUs-Day4

Sep 20th, 2020
784
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <bits/stdc++.h>
  2. #define ll long long
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     string s;
  8.     cin >> s;
  9.     for (ll i = 0; i < s.length() - 1; i++)
  10.     {
  11.         cout << s[i] << (ll)(s[i + 1] - s[i]);
  12.     }
  13.     cout << s[s.length() - 1] << "\n";
  14.  
  15.     return 0;
  16. }
RAW Paste Data