#include <stdio.h>
#include <string.h>
unsigned long long HashBrown(const char *s) {
unsigned long long h = 0;
for (int i = 0; s[i] != '\0'; i++) {
h = h * 100 + (s[i] - 'A' + 1);
}
return h;
}
int main() {
char input[100];
unsigned long long result = HashBrown(input);
printf("HashBrown result: %llu\n", result
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCnVuc2lnbmVkIGxvbmcgbG9uZyBIYXNoQnJvd24oY29uc3QgY2hhciAqcykgewogICAgdW5zaWduZWQgbG9uZyBsb25nIGggPSAwOwogICAgZm9yIChpbnQgaSA9IDA7IHNbaV0gIT0gJ1wwJzsgaSsrKSB7CiAgICAgICAgaCA9IGggKiAxMDAgKyAoc1tpXSAtICdBJyArIDEpOwogICAgfQogICAgcmV0dXJuIGg7Cn0KCmludCBtYWluKCkgewogICAgY2hhciBpbnB1dFsxMDBdOwogICAgcHJpbnRmKCJFbnRlciBhIHN0cmluZzogIik7CiAgICBzY2FuZigiJXMiLCBpbnB1dCk7CiAgICAKICAgIHVuc2lnbmVkIGxvbmcgbG9uZyByZXN1bHQgPSBIYXNoQnJvd24oaW5wdXQpOwogICAgcHJpbnRmKCJIYXNoQnJvd24gcmVzdWx0OiAlbGx1XG4iLCByZXN1bHQpOwogICAgCiAgICByZXR1cm4gMDsKfQ==