/******************************************************* * Copyright (C) 2015 Haotian Wu * * This file is the solution to the question: * https://www.hackerrank.com/challenges/gem-stones * * Redistribution and use in source and binary forms are permitted. *******************************************************/ #include #include #include #include #include #include #include using namespace std; int main() { // Just hash! char str[101]; int _hash[100][26]; int n; scanf("%d",&n); memset(_hash,0,sizeof(_hash)); for (int i=0;i