/
nixywes
/
study
Обзор
Документация
Войти
/
nixywes
/
study
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
algorithm/KR5/task_2_wb6.cpp
28 строк
450 B
SadCat1233
create repo
27 ноя 2025, 11:28
27 ноя 2025, 11:28
082031e
Код
Авторство
О чём код?
#include <iostream> #include <string> #include <unordered_map> using namespace std; void hashFunc(string s) { unordered_map<char, int> data; for (auto i : s) { if (data.count(i)) { data[i]++; } else { data[i] = 1; } } for (auto& p : data) { cout << p.first << " " << p.second << endl; } } int main() { string s; cin >> s; hashFunc(s); return 0; }