init commit

This commit is contained in:
2025-04-13 21:48:15 +03:00
commit 23255e9121
192 changed files with 12200 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#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;
}