Search found 6 matches
- Wed Jan 04, 2006 8:51 pm
- Forum: Volume 1 (100-199)
- Topic: 104 - Arbitrage
- Replies: 223
- Views: 37233
- Wed Jan 04, 2006 7:18 pm
- Forum: Volume 1 (100-199)
- Topic: 104 - Arbitrage
- Replies: 223
- Views: 37233
[104] Help to understand
The example #1:
Giving anwer is 1-2-1, the profit is 1.2*0.88=1.056-1.0$
But why the sequence 1-2-3-1 is wrong? The profit in this case is 1.2*5.1*1.1=6.732-1.0$
Where I am wrong?
Giving anwer is 1-2-1, the profit is 1.2*0.88=1.056-1.0$
But why the sequence 1-2-3-1 is wrong? The profit in this case is 1.2*5.1*1.1=6.732-1.0$
Where I am wrong?
- Thu Dec 29, 2005 9:24 am
- Forum: Algorithms
- Topic: complexity problem
- Replies: 2
- Views: 1588
what is θ(n)? - possible it means infinitesimal function when n tend to infinity? Then our function F(n) = 3*F(n-1)+h(n) = 3*(3*F(n-2)+h(n-1)) = ... = 3^n+h(n)+3*h(n-1)+...+h(0). And if h(n) is a infinitesimal function then product and sum of terminal number of them is a infinitesimal function too ...
- Wed Dec 28, 2005 6:59 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108667
The problem: output format.
There should be one line of output for each block position (i.e., n lines of output where n is the integer on the first line of input).
Because of this, i thought, that there shouldn't be the '\n' symbol after the last position.
But you were right, when recommend me to ...
There should be one line of output for each block position (i.e., n lines of output where n is the integer on the first line of input).
Because of this, i thought, that there shouldn't be the '\n' symbol after the last position.
But you were right, when recommend me to ...
- Wed Dec 28, 2005 4:09 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108667
- Wed Dec 28, 2005 10:16 am
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 108667
[101] Presentation error
Where? I tried to find... But it wasn't successful :(
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#define NMax 25
struct block
{
int N;
block *next, *prev;
};
// this function printing the world
void PrintWorld(block **world, int ...
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#define NMax 25
struct block
{
int N;
block *next, *prev;
};
// this function printing the world
void PrintWorld(block **world, int ...