English
Open in Telegram

ThreadMessage #33881

7 messages · –
  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; }
CC++ vs PythonC++ vs Python@cpp_vs_python · group · Tech
114members39 409messages in the index
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count