I translate my scanty knowledge from c ++ to java . Share the main methods?
For example, in c ++, cin input is used for input, scanf is needed faster, cin + (Sync.tool .....) is needed even faster, and if it is very fast, then read the string and break it bit by bit.
In addition, than to replace the data input while(( c= getchar()) != EOF) . What are the analogues on java and what else can be useful? Here is an example task ( http://codeforces.com/problemset/problem/550/A?locale=ru )