結果
問題 |
No.3177 output only nand problem
|
ユーザー |
|
提出日時 | 2025-06-14 01:27:24 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 563 bytes |
コンパイル時間 | 2,807 ms |
コンパイル使用メモリ | 274,120 KB |
実行使用メモリ | 7,840 KB |
最終ジャッジ日時 | 2025-06-14 01:27:28 |
合計ジャッジ時間 | 3,182 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); auto nand = [&] (bool x, bool y) -> bool { return !(x & y); }; for (bool a = true; ; a = !a) { for (bool b = true; ; b = !b) { for (bool c = true; ; c = !c) { if (nand(nand(a, b), c) != nand(a, nand(b, c))) { cout << a << " " << b << " " << c << "\n"; return 0; } } } } return 0; }