This repository has been archived on 2026-07-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2025-04-13 21:48:15 +03:00

21 lines
335 B
C
Executable File

#include <stdio.h>
#include <stdint.h>
int
main()
{
uint64_t num;
int free_blocks = 0;
while (scanf("%lx", &num) != EOF) {
for (int i = 0; i < 64; i += 2) {
if (((num >> i) & 0x3) == 0x0) {
free_blocks++;
}
}
}
printf("%d\n", free_blocks);
return 0;
}