結果

問題 No.3177 output only nand problem
ユーザー jiangxinyang
提出日時 2025-06-13 21:46:42
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 554 bytes
コンパイル時間 1,585 ms
コンパイル使用メモリ 193,328 KB
実行使用メモリ 7,840 KB
最終ジャッジ日時 2025-06-13 21:46:44
合計ジャッジ時間 2,090 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod = 1e9 + 7;
const int N = 200005;
const int INF = 0x3f3f3f3f;
int cal(int x, int y) {
    if (x && y) return 0;
    return 1;
}
int main() {
    for (int x = 0; x < 2; x++) {
        for (int y = 0; y < 2; y++) {
            for (int z = 0; z < 2; z++) {
                if (cal(cal(x, y), z) != cal(x, cal(y, z))) {
                    cout << x << " " << y << " " << z << "\n";
                    return 0;
                }
            }
        }
    }
    return 0;
}
0