Date: 2013-12-22 22:51:14
I've got it!
int cnt[MAXN] -> ll cnt[MAXN];
the tests could add 10^6 * 10^5 to the cnt[x] that would overflow the int limit ...
| 22.10.12 - The problems from the Southern Subregional Programming Contest 2012 added to the problemset archive (542 - 553). |
22.10.12 - After the start of the contest the statements in PDF will be available by the link.
23.10.11 - The problems from the Southern Subregional Programming Contest 2011 added to the problemset archive (530 - 541).