TopCoder is a company which administers contests in computer programming. TopCoder hosts fortnightly online algorithm competitions — known as SRMs or "single round matches" — as well as weekly competitions in design and development. The work in design and development produces useful software which ...
0
votes
0answers
3 views
Running Topcoder arena applet behind University firewall
This may not be appropriate forum to ask for it but I'm dying to get a solution. In our University, connections to external IP through the non standard port is blocked as a result of which I can't run ...
-7
votes
0answers
42 views
LinearKingdomParkingLot of TopCoder solution in C++ [on hold]
about the answer
http://community.topcoder.com/stat?c=problem_solution&rm=305511&rd=14283&pm=10982&cr=19849563
I am just wondering why
int ...
-3
votes
1answer
67 views
Why is this C++ code not compiling on TopCoder? [closed]
I don't get why I'm getting this error. I want to proceed with solving this problem but I want to at least get one successful compile before I start doing the dirty work... Anyone know?
...
-2
votes
1answer
68 views
uva onlinejudge vs topcoder
Lately I found a perfect algorithms and data structures learning routine for myself. I usually watch a few videos of Sedgewick, learn a new algorithm, use a uva toolkit to find a problem on uva ...
0
votes
1answer
48 views
How does *max_element() work in this snippet?
int N = 6;
vector< vector<int> > A(N, vector<int>(3));
/* Do operation with A */
cout<<(*max_element(a.begin(),a.end()))[2]<<endl;
I am not sure what does max_element ...
0
votes
2answers
116 views
Creature training Dynamic Programming on TopCoder
I have been trying to solve the following TopCoder problem:
You are playing a strategy game and you wish to train the strongest army for the final fight. There are creatures of N levels in the ...
-2
votes
1answer
49 views
Efficient work with numbers in python [closed]
I am having some troubles with Python.
I'm solving some programming tasks with Python(topcoder, codeforces). And sometimes i need to count something. For example: count substrings in string or ...
1
vote
1answer
86 views
Eclipse creating projects every time to run a single file?
i am a beginner using eclipse CDT.
usually in DEVc++ or other lightweight IDE's we can directly open and edit a single .cpp file from desktop and run it.
on the other hand i cannot find this simple ...
-1
votes
1answer
56 views
UnsealTheSafe(TopCoder): Logic behind Solution
1 2 3
4 5 6
7 8 9
0
A door of a safe is locked by a password. Josh witnessed an employee opening the safe. Here is the information Josh spied.
1.The password is a sequence ...
2
votes
4answers
118 views
why this function is valid to caculate modular pow value?
I have seen this function in SRM 573's solution here:
long modPow(long x, long y)
{
//Caculates x raised to the y-power modulo MOD
//in O(log(y)) time by using repeated squaring
long r = ...
0
votes
2answers
70 views
topcoder arena editor save path?
I'm using kawigiedit in topcoder arena, but I want to save the source code to my workplace path.
I have not found an option in kawigiedit to configure the path to save the code.
Is there any way to ...
0
votes
0answers
42 views
Graph coloring variants
I am preparing for a programming competition and presently looking at graph coloring problems. I know that if the numbers of colors is set to 2, we can find if the graph can be colored such that no ...
1
vote
1answer
174 views
dynamic programming - topcoder
I've been trying out the dp tutorials on Topcoder. One of the problems given for practice was MiniPaint . I think I've got the solution partly- find the minimum no. of mispaints for a given no. of ...
0
votes
1answer
71 views
How many plus signs needed to to get a given sum?
I was doing a problem on topcoder and I came across a DP problem (http://goo.gl/hjeaS)
This should have an efficient dp solution, but I'm stuck. I took an array res[i][j][k] to store the sub ...
1
vote
1answer
137 views
dynamic programming approach in a non-specific direction calculation
I am trying to solve Ball Removal problem on topcoder, pasting the problem statement here as login is required to access this link.
Problem Statement
You have N balls, where N is odd. The ...