結果
問題 |
No.3177 output only nand problem
|
ユーザー |
![]() |
提出日時 | 2025-06-13 23:43:36 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 0 ms / 2,000 ms |
コード長 | 448 bytes |
コンパイル時間 | 505 ms |
コンパイル使用メモリ | 39,664 KB |
実行使用メモリ | 7,840 KB |
最終ジャッジ日時 | 2025-06-13 23:43:37 |
合計ジャッジ時間 | 1,001 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
/* -*- coding: utf-8 -*- * * 3177.cc: No.3177 output only nand problem - yukicoder */ #include<cstdio> #include<algorithm> 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; }