Archived
1
0
Fork 0
This commit is contained in:
nihonium 2022-02-21 17:21:43 +03:00
parent e51ace3271
commit d6189d57bc
2 changed files with 34 additions and 0 deletions

16
data/bit_1.c Normal file
View file

@ -0,0 +1,16 @@
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
char x = 0;
if (argc)
x = strtoq(argv[1], NULL, 16);
if (x & 1)
printf("ma\n");
else
printf("fe\n");
return 0;
}

18
data/bit_2.c Normal file
View file

@ -0,0 +1,18 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
char s[3] = "";
int x;
strcpy(s, getenv("CODE"));
x = strtoq(s, NULL, 16);
x = x >> 2;
if (x & 1)
printf("ha\n");
else
printf("nh\n");
return 0;
}