using System; public class Test { public static int EasyHash(string s) { ulong strHash = 0; const int multiplier = 37; for (int i = 0; i < s.Length; i++) { unchecked { strHash = (strHash * multiplier) + s[i]; } } return (int)(strHash % 100); } public static void Main() { Console.WriteLine(EasyHash("àèìòù Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world!")); } }