diff --git a/24-Q3/ExclusiveOr.md b/24-Q3/ExclusiveOr.md new file mode 100644 index 0000000..2349a0a --- /dev/null +++ b/24-Q3/ExclusiveOr.md @@ -0,0 +1,33 @@ +# Exclusive OR and OR + +## 真值表 + +| Input A | Input B | Output(A OR B) | +| :-----: | :-----: | :------------: | +| 0 | 0 | 0 | +| 0 | 1 | 1 | +| 1 | 0 | 1 | +| 1 | 1 | **1** | + +| Input A | Input B | Output(A XOR B) | +| :-----: | :-----: | :-------------: | +| 0 | 0 | 0 | +| 0 | 1 | 1 | +| 1 | 0 | 1 | +| 1 | 1 | **0** | + +区别仅在于1or1=1 1xor1=0 + +## 英语含义 + +![1726472839718](image/ExclusiveOr/1726472839718.png)![1726472844473](image/ExclusiveOr/1726472844473.png) + +## 个人理解 + +OR:要么A要么B,两者之间没关系,只要有一个成立,则A OR B成立 + +XOR:要么A要么B,但是两者之间互斥,即要么A成立要么B成立,但是A和B不能同时成立,否则A XOR B不成立 + +--- + +**one or the other but not both** diff --git a/24-Q3/bazel/6.5.0/bazel650.patch b/24-Q3/bazel/6.5.0/bazel650.patch index d6cb8ef..998fccb 100644 --- a/24-Q3/bazel/6.5.0/bazel650.patch +++ b/24-Q3/bazel/6.5.0/bazel650.patch @@ -10,7 +10,7 @@ diff -urN a/distdir_deps.bzl b/distdir_deps.bzl + "sha256": "6935a1e5af55363e37c5dc5a61bc220f347bbb36839e0e9f96dc1b75d079773c", + "strip_prefix": "java-11-openjdk", + "urls": [ -+ "https://github.com/6eanut/bazel/releases/download/jdk/remotejdk11_linux_riscv64.tar.gz", ++ "https://github.com/6eanut/temp/releases/download/remotejdk11_linux_riscv64.tar.gz/remotejdk11_linux_riscv64.tar.gz", + ], + "used_in": [], + }, @@ -198,7 +198,7 @@ diff -urN a/src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WOR - + name = "remotejdk11_linux_riscv64", + strip_prefix = "java-11-openjdk", -+ urls = ["https://github.com/6eanut/bazel/releases/download/jdk/remotejdk11_linux_riscv64.tar.gz"], ++ urls = ["https://github.com/6eanut/temp/releases/download/remotejdk11_linux_riscv64.tar.gz/remotejdk11_linux_riscv64.tar.gz"], + + target_compatible_with = [ + "@platforms//os:linux", diff --git a/24-Q3/image/ExclusiveOr/1726472839718.png b/24-Q3/image/ExclusiveOr/1726472839718.png new file mode 100644 index 0000000..68a3c62 Binary files /dev/null and b/24-Q3/image/ExclusiveOr/1726472839718.png differ diff --git a/24-Q3/image/ExclusiveOr/1726472844473.png b/24-Q3/image/ExclusiveOr/1726472844473.png new file mode 100644 index 0000000..fd5bcb1 Binary files /dev/null and b/24-Q3/image/ExclusiveOr/1726472844473.png differ diff --git a/README.md b/README.md index fd02d2e..7816216 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # 24-Q3 +[06 Exclusive OR](24-Q3/ExclusiveOr.md) + [05 Install the rpm package to the user path](24-Q3/rpm-user.md) [04 Build Bazel on RISC-V](24-Q3/build-bazel-riscv.md)