/* -*- coding: utf-8 -*- * * 3177.cc: No.3177 output only nand problem - yukicoder */ #include #include using namespace std; inline int nand(int x, int y) { return (x & y) ^ 1; } /* main */ int main() { for (int a = 0; a <= 1; a++) for (int b = 0; b <= 1; b++) for (int c = 0; c <= 1; c++) if (nand(nand(a, b), c) != nand(a, nand(b, c))) { printf("%d %d %d\n", a, b, c); return 0; } return 0; }