[C++] [SPOJ] Tablica