Search found 15 matches

by [_TANG_]
Fri Nov 18, 2005 7:15 pm
Forum: Volume 108 (10800-10899)
Topic: 10887 - Concatenation of Languages
Replies: 49
Views: 18955

Strange :-?

Hello, I've a strange problem, when I debug my code with an input containing empty strings (hardcoded) its output is correct but if I try to run my code at console like this: code.exe < input.txt > output.txt Doesn't recognize the empty string ... I think is because of this: cin >> A >> B; if(A && B...
by [_TANG_]
Fri Nov 18, 2005 12:16 am
Forum: Volume 108 (10800-10899)
Topic: 10887 - Concatenation of Languages
Replies: 49
Views: 18955

10887 - Don't understand

Hi,

Can anyone tell me why does the input:

Code: Select all

1
3 3
a

b
a

b
outputs:

Code: Select all

Case 1: 7
Think that's why I can't get AC ... :cry: ... My code output is 6
by [_TANG_]
Tue May 31, 2005 5:13 pm
Forum: Volume 103 (10300-10399)
Topic: 10338 - Mischievous Children
Replies: 56
Views: 20608

Thnx sumankar I found my mistake ... a hidden one! ... Now I've got AC : :D
by [_TANG_]
Tue May 31, 2005 4:42 pm
Forum: Volume 1 (100-199)
Topic: 147 - Dollars
Replies: 233
Views: 22462

Thnx ... I've restructured my algo because of this

:wink:
by [_TANG_]
Tue May 31, 2005 3:50 pm
Forum: Volume 103 (10300-10399)
Topic: 10338 - Mischievous Children
Replies: 56
Views: 20608

Mmmm ... sumankar tell me if I'm wrong, I used long long int because of this: Note that 12! is the largest factorial that can fit into an unsigned long int I understand that there will be words of length larger than 12 but smaller than 21 ... and long long int can handle 20! isn't it? Other doubt I ...
by [_TANG_]
Tue May 31, 2005 1:06 am
Forum: Volume 103 (10300-10399)
Topic: 10338 - Mischievous Children
Replies: 56
Views: 20608

Help plz!

Maybe I'm calculating the formula in wrong way .... I calculate this N! / [fact(any letter repited) * fact(...)] And all mi I/O tests are right .... Input: 6 WEDDING HAPPY ADAM ABABAAAAAAAAAAAAAAAA A MULTIPLICATION Output: Data set 1: 2520 Data set 2: 60 Data set 3: 12 Data set 4: 190 Data set 5: 1 ...
by [_TANG_]
Thu May 19, 2005 4:55 pm
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 44918

Nevermind

Thnx a lot sumankar.

I reviewed all my code, my mistake was that I forgot 0! and that was my error I was looking for resultados[-1], now I've got AC ... :lol:

A silly mistake :oops:


___________________
[_TANG_]
by [_TANG_]
Thu May 19, 2005 4:36 pm
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 44918

Thnx sumankar, I've already change my precalculation to 1000! using DP, but I'm still having the same error.

I've another question ... is there NEGATIVE factorials?, maybe my mistake is something like that

Do you have some critical I/O?
_____________
[_TANG_]
by [_TANG_]
Wed May 18, 2005 10:00 pm
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 44918

623 -> 500! Plz help ... ='(

Hi, I've solved this problem, here in my PC works fine I test it on LINUX (Red hat 9) and on Borland C++ compiler even UNIX ( at my job ... ;) ) and it's OK, but when I send my code to be judged always return the message "Runtime Error (SIGSEGV)" invalid memory reference ... I don't know why it runs...
by [_TANG_]
Mon May 16, 2005 10:01 pm
Forum: Volume 4 (400-499)
Topic: 446 - Kibbles "n" Bits "n" Bits "n" Bits
Replies: 50
Views: 4970

446 - WA!!

Hello, I solved this problem and all I/O test I've seen in all posts are OK in my program, But I can't get AC .... Can any one give me some criticals I/O for this problem? ... :cry: Here's my code, am I missing something? #include <iostream.h> #include <math.h> #include <string.h> #include <ctype.h>...
by [_TANG_]
Thu May 12, 2005 5:08 pm
Forum: Volume 108 (10800-10899)
Topic: 10848 - Make Palindrome Checker
Replies: 26
Views: 15032

Thnx

Thnx dumb dan ... I got AC after that tip

:D
_______________
[_TANG_]
by [_TANG_]
Thu May 12, 2005 4:27 pm
Forum: Volume 108 (10800-10899)
Topic: 10848 - Make Palindrome Checker
Replies: 26
Views: 15032

if the 2
by [_TANG_]
Thu May 12, 2005 12:54 am
Forum: Volume 108 (10800-10899)
Topic: 10848 - Make Palindrome Checker
Replies: 26
Views: 15032

Question

If P1 is false, then all the next conditions are false too?

I can't get AC ... :cry: ... I've fix all bugs I thought and my code crash all the time.

Can anyone help me?

thnx
____________
[_TANG_]
by [_TANG_]
Tue May 10, 2005 7:54 pm
Forum: Volume 103 (10300-10399)
Topic: 10338 - Mischievous Children
Replies: 56
Views: 20608

10338 - critical I/O, always WA

I've solve this problem, all my I/O tests are OK (I used a calculator) ... Can anyone give me a critical I/O to test my code?

Thnx! :cry:
by [_TANG_]
Tue May 10, 2005 4:49 pm
Forum: Volume 5 (500-599)
Topic: 584 - Bowling
Replies: 10
Views: 6109

No critical I/O

leonardooo, there's no critical I/O for this problem it's only a simulation problem just remember after strike -> score += (10 + next 2 rolls) after spare -> score += (10 + next roll) no spare && no strike -> score += (roll1 + roll2) always be 2 rolls ahead the frame you're calculating ... :wink: .....

Go to advanced search