結果
問題 |
No.3177 output only nand problem
|
ユーザー |
![]() |
提出日時 | 2025-06-13 21:31:09 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 420 bytes |
コンパイル時間 | 741 ms |
コンパイル使用メモリ | 25,520 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-13 21:31:11 |
合計ジャッジ時間 | 872 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include <stdio.h> int NAND(int A,int B ){ if(A==B&&A==1){ return 0; }else{ return 1; } } int main() { for(int i=0;i<2;i++){ for(int j=0;j<2;j++){ for(int k=0;k<2;k++){ if( (NAND ( NAND(i,j),k) )!= (NAND ( i,NAND(j,k) ) ) ){ printf("%d %d %d\n",i,j,k); return 0; } } } } }