結果
| 問題 |
No.3177 output only nand problem
|
| コンテスト | |
| ユーザー |
MM
|
| 提出日時 | 2025-06-13 23:08:09 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 293 bytes |
| コンパイル時間 | 1,641 ms |
| コンパイル使用メモリ | 193,592 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-06-13 23:08:12 |
| 合計ジャッジ時間 | 2,166 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int nand(int x, int y){
return 1 ^ (x & y);
}
int main(){
for(int i = 0; i < 7; i++){
int a = i / 4, b = (i % 4) / 2, c = i & 1;
if(nand(nand(a,b),c) != nand(a,nand(b,c))){
cout << a << " " << b << " " << c << endl;
return 0;
}
}
}
MM