Good evening… (good?)
There were difficulties with the round, for which I apologize. During the contest I was able to partially locate the troubles, I hope we’ll fix them soon. Apparently, there were two troubles: 1) site didn’t respond, 2) for hacking attempts occurred inappropriate message that hacking is already taken. We will investigate it. Thank you for your patience.
So we decided to do it unrated.
I added work to the next round, the more so because I'm going to be its author:)
MikeMirzayanov
By following your link , I got this http://www.codeforces.com/blog/entry/417?locale=ru , I will now use Visual C++.
No need of C and C++(gnu) altogether.
Is %s also a problem?
Because this code passed on MS C++ but not on GNU .
PROBLEM B.
#include<vector>
#include<map>
#include<iostream>
#include<algorithm>
#include<stdio.h>
using namespace std;
int main()
{
map<char,long long int> c;
long long int ans;
long long int i;
char s[100001];
scanf("%s",s);
i=0;
while(s[i]!='\0')
{
c[s[i]]++;
i++;
}
ans=0;
for(i=0;i<c.size();i++)
{
ans+=c[i]*(c[i]-1)+c[i];
}
cout<<ans;
scanf("%*d");
return 0;
}
It was like waiting in queue trying to refresh the page in hope to see when I get a chance to submit, in the end I got two problems solved (I came to know what problem E was only after the contest got over!), I think codeforces is getting too popular and there is something participants should do, like donate some amount to you so you can buy a new server?
This was my best performance on Codeforces and now its unrated.. :(