Hello!
Tired to rest? Your help is needed.
During the period from December 31 until today I have made many changes in the Codeforces. The changes affected only the interior, so you will not notice any change in the user interface. Nevertheless, during this time was changed about 150 project files, database schema, some principles of data storage. In short, after all this, I'm not sure that everything works as expected (although, of course, I spent time on testing). For this reason I decided to organize Codeforces Testing Round #1, which will unrated and his only goal - a comprehensive testing of the project in conditions close to the real contest.
It will be three problems (possibly well-known, folklore), but I hope it will be pleasure to solve them.
Thanks for the help to Artem Rakhov, Maria Belova, and Max Ivanov
MikeMirzayanov.
UPD: Thanks to all. The round finished. We didn't notice any bugs. Write suggestions and opinions in the comments.
and I would like to do some comments:
some time ago, when I entered in a ended contest and check MY SUBMISSIONS there were two columns: my submissions and my contest submissions but now there appear my submissions twice..
and I would like to see the search bar againg, because sometimes I see a nice post but when I try to find it again I can't .
Of course it's risky to solve common contest problems in interpreted languages: a few million simple operations could easily time out.
System says "time limit exceeded on test 18". There is only one loop and it is to input numbers that's all.
Plus one loop from 1 to 3, which does not add much time..
import java.util.*;
public class T1 {
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int a[]=new int[4];
for(int i=0;i<n;i++){
a[sc.nextInt()]++;
}
int max=-2;
for(int i=1;i<=3;i++){
if(a[i]>max)
max=a[i];
}
System.out.println(n-max);
}//main
}//class
Use BufferedReader+StringTokenizer+Integer.parseInt instead.
For private messages - yes.
For threads - probably shouldn't.
The page display just "RPC call for action failed."
Is it bug?
RPC call for action failed.
Would anyone be willing to have a look at my code and show me what I am doing wrong?