mirror of
https://github.com/krahets/hello-algo.git
synced 2026-11-04 12:12:45 +08:00
Retranslate the complete Japanese online edition from Chinese (#2008)
* Retranslate the complete Japanese online edition from Chinese * Fit Japanese homepage labels and localize heading permalinks * Point Japanese contribution instructions to the Japanese preview * Replace locale conditionals with multilingual UI tables
This commit is contained in:
@@ -26,7 +26,7 @@ int mulHash(string key) {
|
||||
return (int)hash;
|
||||
}
|
||||
|
||||
/* XOR ハッシュ */
|
||||
/* 排他的論理和ハッシュ */
|
||||
int xorHash(string key) {
|
||||
int hash = 0;
|
||||
const int MODULUS = 1000000007;
|
||||
@@ -46,21 +46,21 @@ int rotHash(string key) {
|
||||
return (int)hash;
|
||||
}
|
||||
|
||||
/* Driver Code */
|
||||
/* 実行用コード */
|
||||
int main() {
|
||||
string key = "Hello アルゴリズム";
|
||||
string key = "Hello 算法";
|
||||
|
||||
int hash = addHash(key);
|
||||
cout << "加算ハッシュ値は " << hash << endl;
|
||||
cout << "加算ハッシュの値は " << hash << endl;
|
||||
|
||||
hash = mulHash(key);
|
||||
cout << "乗算ハッシュ値は " << hash << endl;
|
||||
cout << "乗算ハッシュの値は " << hash << endl;
|
||||
|
||||
hash = xorHash(key);
|
||||
cout << "XORハッシュ値は " << hash << endl;
|
||||
cout << "排他的論理和ハッシュの値は " << hash << endl;
|
||||
|
||||
hash = rotHash(key);
|
||||
cout << "回転ハッシュ値は " << hash << endl;
|
||||
cout << "回転ハッシュの値は " << hash << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user