Search found 5 matches

by Alansoft
Sun Feb 09, 2003 3:07 am
Forum: C++
Topic: Grow Array Size
Replies: 13
Views: 5918

Only a tip:

[cpp]
char *ptr, str[100] = "abcdefghijklmnopqrstuvwxyz";
ptr = &str[0];
[/cpp]

Is the same of:
[cpp]
char *ptr, str[100] = "abcdefghijklmnopqrstuvwxyz";
ptr = str;
[/cpp]

Please correct me if I'm wrong!
by Alansoft
Sun Feb 09, 2003 2:44 am
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 37471

Also right....

1 2 3 1 seems to be a valid solution... The yellow V icon located at left side of the problem description in the Vol I says that it have a special correction program... So more than one right answer might exists to one input table.
by Alansoft
Sun Feb 09, 2003 2:37 am
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 37471

Very good!

Hey Little Joey, thanks a lot!

That 1 2 1 = [1,2] * [2,1] tip is very good...

Intersting, in the 2nd example, the answer 1 2 4 1 gives 5217.833% :)

Best regards,
by Alansoft
Sun Feb 09, 2003 1:30 am
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 37471

Nobody!?

Hello.

As I see nobody understood the logic too! :( Or I didn't explained well... Please help me! :D

Thanks in advance.
by Alansoft
Mon Feb 03, 2003 11:49 pm
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 37471

P104 - Can't understand the logic

Hello!

I have read the problem 104 but can't understand what's the table logics.

In this sample input:

3
1.2 .89
.88 5.1
1.1 0.15


Now with the diagonal:

3
1.0 1.2 .89
.88 1.0 5.1
1.1 0.15 1.0


The output must be: 1 2 1
But I can't understand where it comes from. What's the multiplication ...

Go to advanced search