結果

問題 No.3177 output only nand problem
ユーザー ruase_
提出日時 2025-08-14 20:52:29
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 397 bytes
コンパイル時間 909 ms
コンパイル使用メモリ 80,000 KB
実行使用メモリ 7,712 KB
最終ジャッジ日時 2025-08-14 20:52:31
合計ジャッジ時間 1,643 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

# include <iostream>
# include <tuple>
# include <limits>
using namespace std;


bool Nand(const bool& A, const bool& B) {
	return !(A & B);
}

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;
	  			}
	  		}
	  	}
	}
}

0