Re-translate the Japanese version (#1871)

* Retranslate Japanese docs with GPT-5.4

* Retranslate Japanese code with GPT-5.4
This commit is contained in:
Yudong Jin
2026-03-30 07:30:15 +08:00
committed by GitHub
parent fe6443235b
commit d7b2277d2b
1444 changed files with 83312 additions and 8363 deletions

View File

@@ -6,7 +6,7 @@ Author: krahets (krahets@163.com)
def add_hash(key: str) -> int:
"""ハッシュ"""
"""ハッシュ"""
hash = 0
modulus = 1000000007
for c in key:
@@ -15,7 +15,7 @@ def add_hash(key: str) -> int:
def mul_hash(key: str) -> int:
"""ハッシュ"""
"""ハッシュ"""
hash = 0
modulus = 1000000007
for c in key:
@@ -24,7 +24,7 @@ def mul_hash(key: str) -> int:
def xor_hash(key: str) -> int:
"""XORハッシュ"""
"""XOR ハッシュ"""
hash = 0
modulus = 1000000007
for c in key:
@@ -43,16 +43,16 @@ def rot_hash(key: str) -> int:
"""Driver Code"""
if __name__ == "__main__":
key = "Hello algorithm"
key = "Hello アルゴリズム"
hash = add_hash(key)
print(f"ハッシュ値は {hash}")
print(f"ハッシュ値は {hash}")
hash = mul_hash(key)
print(f"ハッシュ値は {hash}")
print(f"ハッシュ値は {hash}")
hash = xor_hash(key)
print(f"XORハッシュ値は {hash}")
print(f"XOR ハッシュ値は {hash}")
hash = rot_hash(key)
print(f"回転ハッシュ値は {hash}")
print(f"回転ハッシュ値は {hash}")