nihonium
/
mipt_clang
Archived
1
0
Fork 0
remotes/private/master
nihonium 2 years ago
parent e51ace3271
commit d6189d57bc

@ -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;
}

@ -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;
}