|
0
It can.
|
|
0
In D, simplest generalization of fast exponentiation works well: A^(10*x+y) = (A^10)^x * A^y
|
|
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
|
|
0
How do you handle that? I was going to write 3 |
|
+12
Use identity b^(10*x+y) = (b^10)^x * b^y
|
|
0
what about this? 3 3 1 2 400 1 3 100 2 3 100 |
|
0
Why -O for Haskell, and not -O2 ?
|
|
+6
>I wish everyone advance to the first division! That would be rating inflation |
|
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)? |
|
0
You can get another portion by entering number in search...
|
|
0
s/Problem/Task/
|
|
0
Problem just for Perl: download problems statistics from Topcoder and parse it :D
|
|
+12
"There are plans to add Haskell." may be removed
|
|
You say that as though the authors had a definite plan.
|
|
+7
<sarcasm>Check the emails, probably they already offering it</sarcasm>
|
|
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) |
|
0
Don't do that, that leads to precision loss.
|
|
+1
Who has written English text? It is terrible.
|
|
0
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. |
|
-6
if-elseif-else is nothing but just a hint for compiler. In mathematical notation - intended for humans - it is rarely used. |
|
-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) { C was intended for people who are smarter than their compilers. Vice-versa for Java. |
|
0
You said
>I think Java/C# (I don't see much difference between them except speed) What is faster? |
|
0
Which is faster?
|
|
+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. |
|
0
Is it possible to use backlash as escape symbol before dollar? |
|
0
How do you expect me to guess which source code did you write?
|
|
0
How?
|



