I got Denial of Judgement as the verdict for 5346681, while solving Sereja and Anagrams (Codeforces Round 215 (Div. 1)). Is it because I declared an int array of size 10^9-1 ? The program is giving me the correct output on my computer, though compilation takes a slightly longer time (about 1.5 — 2 seconds).
Your code consumpt 1525.8 MB RAM, it exceeded memory limit of the problem. (memory limit per test: 256 megabytes)
Ok, thank you!
You can use map stl