## Search found 104 matches

Fri Nov 09, 2007 7:10 am
Forum: Volume 101 (10100-10199)
Topic: 10187 - From Dusk Till Dawn
Replies: 50
Views: 17214

I am trying to solve this problem using the following approach: 1. For each route (city1 city2 departure_time travelling_time): a) if departure_time lies between 18 and 24, departure_time -= 18 b) if departure_time lies between 1 and 6, departure_time += 6 c) else ignore route. after these steps the...
Mon Nov 13, 2006 7:14 am
Forum: Volume 111 (11100-11199)
Topic: 11147 - KuPellaKeS BST
Replies: 12
Views: 4443
If a node has a right child, all values in the right subtree are strictly greater than the value of the node itself.

So you can't have -1 as root and then -1 in it's right subtree.
Sun Nov 12, 2006 4:35 am
Forum: Volume 111 (11100-11199)
Topic: 11140 - Little Ali's Little Brother!
Replies: 28
Views: 13837
Hello, sorry for posting my code but I have tested all these cases and they are fine. Any help will be just great!

Code: Select all

``Cut after AC.``
Best regards,

Yandry.

Maybe the test case that showed me my mistake could help somebody, this is it:

Code: Select all

``````1
3 3 1
**.
**.
**.
3 3
.**
***
...``````
Fri May 19, 2006 12:04 am
Forum: Volume 4 (400-499)
Topic: 468 - Key to Success
Replies: 33
Views: 3974
Can somebody give me some I/O that does not work with my code..., I guess I am confused because I can't find my mistake, I am always getting WA...

Code: Select all

``````Cut after AC
``````

Yandry.
Thu May 11, 2006 5:41 am
Forum: Volume 5 (500-599)
Topic: 574 - Sum It Up
Replies: 46
Views: 13544
Thu May 11, 2006 5:38 am
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 18744
d31mOZ wrote:The last output don't should be:

for ---> as..
this --->..sa

???????
Yes you are right acorrding to my AC program
Thu May 11, 2006 5:33 am
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 18744
Try to increase your array size, I used 10000000 chars but I guess 1000000 will do..., good luck,

Yandry.
Sun May 07, 2006 5:44 pm
Forum: Volume 4 (400-499)
Topic: 443 - Humble Numbers
Replies: 82
Views: 6563
Try this input:

Code: Select all

``````4121
0``````

Code: Select all

``The 4121st humble number is 268738560.``
My AC program output:

Code: Select all

``The 4121st humble number is 268435456.``
Good luck...
Sat May 06, 2006 7:56 pm
Forum: Volume 101 (10100-10199)
Topic: 10102 - The path in the colored field
Replies: 34
Views: 12785
Try the following test case:

Code: Select all

``````3
111
111
333
``````
My AC program output:

Code: Select all

``2``

Code: Select all

``````63
``````
Hope this helps
Sat May 06, 2006 3:57 am
Forum: Volume 110 (11000-11099)
Topic: 11015 - 05-2 Rendezvous
Replies: 48
Views: 16417
(1^2 - 1) / 2 == 0

Maybe that could happen, btw i used while n > 0
Sat Mar 25, 2006 5:24 pm
Forum: Volume 110 (11000-11099)
Topic: 11000 - Bee
Replies: 25
Views: 11884
Actually I've got Accepted using unsigned int
Mon Feb 27, 2006 12:28 am
Forum: Volume 109 (10900-10999)
Topic: 10999 - Crabbles
Replies: 26
Views: 13673
I am getting WA with my code, could someone give me test cases or at least a counterexample?, 10x in advance,

Yandry.

Code: Select all

``````cut after i found my silly mistake
``````
Mon Jan 30, 2006 5:02 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 23039
The output you posted here is not real, at least it's not given by the program you posted :o , I tried the following test case: 100 0 your output: 100! = 97 48 24 16 9 7 5 5 4 3 3 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 correct output: 100! = 97 48 24 16 9 7 5 5 4 3 3 2 2 2 2 1 1 1 1 1 1 1 1 1 1 forget about ...
Mon Jan 30, 2006 4:31 am
Forum: C++
Topic: Compile error, can someone have a look?
Replies: 6
Views: 2706
Here are your errors according to my compiler(g++): laputa.cc:5: error: `main' must return `int' laputa.cc: In function `int main(...)': laputa.cc:16: error: `findrank' undeclared (first use this function) laputa.cc:16: error: (Each undeclared identifier is reported only once for each function it ap...
Sat Jan 28, 2006 6:36 pm
Forum: Volume 104 (10400-10499)
Topic: 10443 - Rock
Replies: 26
Views: 3588
After day #1:

Code: Select all

``````RRSP
RSPR
SPRS
``````
After day #2:

Code: Select all

``````RRRS
RRSP
RSPR
``````
good luck..., Yandry.