Português
Abrir no Telegram

Mensagem#include <iostream>

19 de abril de 2023
.
#include <iostream> #include <set> #include <string> int main() { std::set<std::string> evenLengthSet; std::multiset<std::string> oddLengthSet; std::multiset<std::string> allSet; // Juft uzunlikdagi elementdan iborat to'plamni yaratish std::string evenLengthArray[] = {"one", "two", "three", "four", "five", "six"}; int evenLengthArraySize = sizeof(evenLengthArray) / sizeof(evenLengthArray[0]); // Juft uzunlikdagi elementlarni to'plamga qo'shish for (int i = 0; i < evenLengthArraySize; ++i) { if (evenLengthArray[i].length() % 2 == 0) { evenLengthSet.insert(evenLengthArray[i]); } } // Toq uzunlikdagi elementdan iborat to'plamni yaratish std::string oddLengthArray[] = {"apple", "banana", "orange", "pear", "kiwi"}; int oddLengthArraySize = sizeof(oddLengthArray) / sizeof(oddLengthArray[0]); // Toq uzunlikdagi elementlarni to'plamga qo'shish for (int i = 0; i < oddLengthArraySize; ++i) { if (oddLengthArray[i].length() % 2 != 0) { oddLengthSet.insert(oddLengthArray[i]); } } // Barcha elementlarni bir to'plamga qo'shish allSet.insert(evenLengthSet.begin(), evenLengthSet.end()); allSet.insert(oddLengthSet.begin(), oddLengthSet.end()); // Ikki to'plamdan ham bir xil qiymatli elementlarni o'chirib tashlash for (std::string s : evenLengthSet) { oddLengthSet.erase(s); allSet.erase(s); } // Hosil qilingan to'plamlarni ekranga chiqarish std::cout << "Even Length Set: "; for (std::string s : evenLengthSet) { std::cout << s << " "; } std::cout << std::endl; std::cout << "Odd Length Set: "; for (std::string s : oddLengthSet) { std::cout << s << " "; } std::cout << std::endl; std::cout << "All Set: "; for (std::string s : allSet) { std::cout << s << " "; } std

Por perto no feed

SSTUDENTOliy matematikadan ishlaydiganlar bormi🪐🪐🍃Tashlangchi
esta mensagem
..#include <iostream> using namespace std; int main() { const int width = 10; const int height = 6; for (int row = 1; row <= height / 2; ++row) { for (int col = 1..Dasturlash 2 C C++ Python Informatika Test Kimda boʻlsa lichga 💸

Um feed público aberto do índice de busca ChatCrawler — “o Google do Telegram público”; atualizado à medida que a comunidade é rastreada. Horários em UTC.

Somente conteúdo público, API oficial do Telegram. Sobre · Perguntas frequentes · Limites do índice · Remover uma página · Catálogo · Busca · Como calculamos