結果

問題 No.3177 output only nand problem
ユーザー tsunamayo123
提出日時 2025-05-30 19:13:09
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 388 bytes
コンパイル時間 2,613 ms
コンパイル使用メモリ 274,680 KB
実行使用メモリ 7,840 KB
最終ジャッジ日時 2025-06-13 20:50:06
合計ジャッジ時間 2,927 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

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

bool nand(bool l,bool r){
    return !(l&r);
}

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))){
                    cout<<a<<' '<<b<<' '<<c<<endl;
                    return 0;
                }
            }
        }
    }
}
0