/
Ikocs
/
cpp-tasks
Обзор
Документация
Войти
/
Ikocs
/
cpp-tasks
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
16_countBits/main.cpp
15 строк
298 B
Alexey Elfimov
Init commit
16 сен 2024, 14:45
16 сен 2024, 14:45
08b7ab0
Код
Авторство
О чём код?
#include <iostream> #include <bitset> #include <limits> unsigned int countBits(unsigned long long n){ std::bitset<std::numeric_limits<unsigned long long>::digits> b_set(n); return b_set.count(); } int main() { countBits(156); std::cout << "Hello, World!" << std::endl; return 0; }