結果
問題 |
No.3177 output only nand problem
|
ユーザー |
|
提出日時 | 2025-06-13 21:22:17 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 384 bytes |
コンパイル時間 | 584 ms |
コンパイル使用メモリ | 73,584 KB |
実行使用メモリ | 7,840 KB |
最終ジャッジ日時 | 2025-06-13 21:22:18 |
合計ジャッジ時間 | 891 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
#include<iostream> #include<vector> #include<algorithm> using namespace std; using ll = long long; int main(void){ for(int a=0; a<=1; a++){ for(int b=0; b<=1; b++){ for(int c=0; c<=1; c++){ int ab=!(a&b); int bc=!(b&c); if(!(ab&c)!=!(a&bc)){ cout << a << ' ' << b << ' ' << c << endl; return 0; } } } } return 0; }