Русский
Открыть в Telegram

ВеткаСообщение #33881

7 сообщений · –
  1. S
    2 #include <algorithm> #include <iostream> #include <vector> #include <string> #include <random> #define ll long long #define ld long double using namespace std; void solve(){ string s, ans = "", res = ""; getline(cin, s); int mx = 0; for (char c:s){ if (c == ' '){ if (res.find('2') res.find('5') res.find('6') || res.find('8')){ mx = max(mx, (int)res.size()); ans += res; } if (ans.back() != ' ') ans += ' '; res = ""; } else res += c; } cout << ans << ' ' << mx; } int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int t = 1; // cin >> t; while(t --) solve(); return 0; }

Открытая публичная лента из поискового индекса ChatCrawler — «Google по публичному Telegram»; обновляется по мере обхода площадки. Время — UTC.

Только публичный контент, официальный API Telegram. О проекте · Вопросы · Границы индекса · Убрать страницу из выдачи · Каталог · Поиск · Как мы считаем