_takumi

what1

Feb 26th, 2021
612
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6.     string s1, ans;
  7.     cin >> s1;
  8.     for (int i = 2; i < s1.size(); i += 3) {
  9.         char ch;
  10.         int n = stoi(s1.substr(i - 2, 2));
  11.         ch = n;
  12.         ans += ch;
  13.     }
  14.     cout << ans;
  15.     return 0;
  16. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×