diff options
author | Nguyễn Gia Phong <vn.mcsinyx@gmail.com> | 2020-01-14 18:29:11 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <vn.mcsinyx@gmail.com> | 2020-01-14 18:29:11 +0700 |
commit | a3dd2581ed4847670f81157091016c14ca18803d (patch) | |
tree | 3362ab15de119f1e75799f58715b7683e6bfd6ca /usth/MATH2.3/4/k-map.c | |
parent | 65b8ebda4c47fa27ac28899fb2b29097f445b6df (diff) | |
download | cp-a3dd2581ed4847670f81157091016c14ca18803d.tar.gz |
[usth/MATH2.3] Mathemate Discretely
Diffstat (limited to 'usth/MATH2.3/4/k-map.c')
-rw-r--r-- | usth/MATH2.3/4/k-map.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/usth/MATH2.3/4/k-map.c b/usth/MATH2.3/4/k-map.c new file mode 100644 index 0000000..ef19b80 --- /dev/null +++ b/usth/MATH2.3/4/k-map.c @@ -0,0 +1,16 @@ +#include <stdio.h> + +int main() +{ + int x, y, z, f[8]; + + for (int i = 0; i < 8; ++i) { + scanf("%d %d %d", &x, &y, &z); + scanf("%d", f + x + (y << 1) + (z << 2)); + } + + printf("\t00\t01\t10\t11\n0\t%d\t%d\t%d\t%d\n0\t%d\t%d\t%d\t%d\n", + f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7]); + + return 0; +} |