結果
問題 |
No.3177 output only nand problem
|
ユーザー |
|
提出日時 | 2025-06-15 15:29:12 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 70 ms / 2,000 ms |
コード長 | 800 bytes |
コンパイル時間 | 378 ms |
コンパイル使用メモリ | 82,888 KB |
実行使用メモリ | 68,592 KB |
最終ジャッジ日時 | 2025-06-15 15:29:13 |
合計ジャッジ時間 | 1,057 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
from collections import Counter, deque, defaultdict from heapq import heapify, heappop, heappush, nlargest, nsmallest from bisect import bisect_left, bisect, bisect_right from copy import deepcopy from time import perf_counter import sys from typing import Any, List, Callable def debug(*args, sep=" ", end="\n") -> None: print(*args, sep=sep, end=end, file=sys.stderr) def main(): global inf, MOD input = sys.stdin.read().split() ptr = 0 inf = float("inf") MOD = 998244353 def nand(a, b): return 1 ^ (a & b) for a in range(2): for b in range(2): for c in range(2): if nand(nand(a, b), c) != nand(a, nand(b, c)): print(a, b, c) sys.exit() if __name__ == "__main__": main()