Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <set>#include <map>#include <cctype>#include <vector>#include <cstdio>#include <cstring>#include <iostream>#include <algorithm>using namespace std;char str[1000], res[1000];int main(){cin.getline(str, 1000);int len = strlen(&str[0]);bool flag = false;int cnt;int ttt = 0;for (int i = 0; i < len; i++) {if (flag){if (isalpha(str[i])){res[ttt++] = str[i];cnt++;}else if (str[i] == '@'){if (cnt > 0)res[ttt++] = ' ';cnt = 0;flag = true;}else {