結果
問題 |
No.3177 output only nand problem
|
ユーザー |
![]() |
提出日時 | 2025-06-18 16:06:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 300 bytes |
コンパイル時間 | 1,604 ms |
コンパイル使用メモリ | 161,236 KB |
実行使用メモリ | 7,840 KB |
最終ジャッジ日時 | 2025-06-18 16:06:42 |
合計ジャッジ時間 | 2,256 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define rep(i, a, b) for (int i = a; i < b; i++) using ll = long long; int main(){ rep(a, 0, 2) rep(b, 0, 2) rep(c, 0, 2) { int x = ~(~(a & b) & c); int y = ~(a & ~(b & c)); if(x != y) { cout << a << " " << b << " " << c << endl; return 0; } } }