Comments
It can.
In D, simplest generalization of fast exponentiation works well: A^(10*x+y) = (A^10)^x * A^y
On brainailCodeforces Beta Round #17, 23 months ago
0
In case above Kruskal takes edges with weights 100 and 200, resp. so node 3 has 2 supervisors, and the correct answer is 600
On brainailCodeforces Beta Round #17, 23 months ago
0

How do you handle that? I was going to write

3
3 2 1
3
1 2 400
1 3 200
2 3 100

On brainailCodeforces Beta Round #17, 23 months ago
+12
Use identity b^(10*x+y) = (b^10)^x * b^y
On brainailCodeforces Beta Round #17, 23 months ago
0

what about this?

3

3 2 1
3
1 2 400
1 3 100
2 3 100

Why -O for Haskell, and not -O2 ?
On RADCodeforces Beta Round #16 (Div. 2), 23 months ago
+6

>I wish everyone advance to the first division!

That would be rating inflation 

On adamaxCodeforces FAQ, 2 years ago
0

Wrong.

Q2. How do I read/write 64bit integers in C (GNU/ mingw)?

Q3. How do I read/write 64bit integers in C (MSVC)?

Q4. How do I read/write 64bit integers in C++?
You can get another portion by entering number in search...
s/Problem/Task/
Problem just for Perl: download problems statistics from Topcoder and parse it :D 
"There are plans to add Haskell." may be removed
On satoshiideleted, 2 years ago
0
You say that as though the authors had a definite plan.
<sarcasm>Check the emails, probably they already offering it</sarcasm>
On vdmedragonA little geometry, 2 years ago
0

It had better been multiplication :)

Suppose that segment lies on X axis and point is offset from segment by small value 'eps'. When one finds AC using

sqrt(dx^2+dy^2)

following occurs

sqrt (large_value^2 + eps^2)

On vdmedragonA little geometry, 2 years ago
0
Don't do that, that leads to precision loss.
On fedor.birjukovChoosing the weapon., 2 years ago
+1
Who has written English text? It is terrible.

1. Is a very bad idea because contest problems have very little to do with programming language being used.

I propose that borrowing project Euler's idea is more sensible than 1,2.

On fedor.birjukovChoosing the weapon., 2 years ago
-6

if-elseif-else is nothing but just a hint for compiler.

In mathematical notation - intended for humans - it is rarely used.


On fedor.birjukovChoosing the weapon., 2 years ago
-1

allowing to read from uninitialized variables? why would a language allow that?

Sometimes compiler is unable to determine if reading from uninit var will occur.

int foo(int arg) {
    int[] x;
    if(arg<0) return -1;
    if(arg==0) x = new int[1];
    if(arg>0) x = new int[2];
    x[0]++; // Bogus error here

C was intended for people who are smarter than their compilers. Vice-versa for Java.

On fedor.birjukovChoosing the weapon., 2 years ago
0
You said
>I think Java/C# (I don't see much difference between them except speed)
What is faster?
On fedor.birjukovChoosing the weapon., 2 years ago
0
Which is faster?
On fedor.birjukovChoosing the weapon., 2 years ago
+3

Java was *NOT* inherited from C++. It was only marketed as remake of C++ because there were many C++ coders around. C is the divergence point between Java and C++.

and, from here: http://norvig.com/java-lisp.html

The variance for Java was lower than for C or C++. (Cynics could say that Java forces you to write uniformly slow programs.)

So blame the language, not coders. We know many clever people use Java. It would be a lot of good Java apps if it was possible to write them.

About C# : At times, I look at some stats at Topcoder and it looks like picking C# in Topcoder algorithm seems to be superior over C++ and Java. (which, on other hand, might be not statistically significant because sample size is too small and biased because *you-know-who* uses C#).

Maybe Topcoder doesn't gives away stats per languages to avoid holy wars :D

VB.NET is just C# with syntax inherited from VB to ease porting of VB apps. So there is no reason to even think about VB.NET.

On NerevarTeX formulas in the text, 2 years ago
0

Is it possible to use backlash as escape symbol before dollar?

How do you expect me to guess which source code did you write?
How?