結果

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    auto N = [&](int a,int b) -> int {
        if(a&b) return 0;
        else return 1;
    };

    for(int i=0; i<2; i++) for(int k=0; k<2; k++) for(int l=0; l<2; l++){
        if(N(i,N(k,l)) != N(N(i,k),l)){cout << i << " " << k << " " << l << endl; return 0;}
    }
}
0