結果
| 問題 |
No.3177 output only nand problem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-14 17:08:47 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 430 bytes |
| コンパイル時間 | 1,766 ms |
| コンパイル使用メモリ | 193,464 KB |
| 実行使用メモリ | 7,840 KB |
| 最終ジャッジ日時 | 2025-06-14 17:08:50 |
| 合計ジャッジ時間 | 2,134 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
auto nand = [&](int a, int b){
return !(a & b);
};
for(int S = 0; S < 8; S++){
int a = S & 1, b = S >> 1 & 1, c = S >> 2;
if(nand(nand(a, b), c) != nand(a, nand(b, c))){
cout << a << ' ' << b << ' ' << c << endl;
return 0;
}
}
}