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 ...
Search found 15 matches
- Fri Nov 18, 2005 7:15 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10887 - Concatenation of Languages
- Replies: 49
- Views: 27083
- Fri Nov 18, 2005 12:16 am
- Forum: Volume 108 (10800-10899)
- Topic: 10887 - Concatenation of Languages
- Replies: 49
- Views: 27083
10887 - Don't understand
Hi,
Can anyone tell me why does the input:
outputs:
Think that's why I can't get AC ...
... My code output is 6
Can anyone tell me why does the input:
Code: Select all
1
3 3
a
b
a
b
Code: Select all
Case 1: 7

- Tue May 31, 2005 5:13 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31471
- Tue May 31, 2005 4:42 pm
- Forum: Volume 1 (100-199)
- Topic: 147 - Dollars
- Replies: 233
- Views: 50997
- Tue May 31, 2005 3:50 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31471
- Tue May 31, 2005 1:06 am
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31471
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 ...
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 ...
- Thu May 19, 2005 4:55 pm
- Forum: Volume 6 (600-699)
- Topic: 623 - 500!
- Replies: 187
- Views: 71648
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 ...
A silly mistake
___________________
[_TANG_]
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 ...

A silly mistake

___________________
[_TANG_]
- Thu May 19, 2005 4:36 pm
- Forum: Volume 6 (600-699)
- Topic: 623 - 500!
- Replies: 187
- Views: 71648
- Wed May 18, 2005 10:00 pm
- Forum: Volume 6 (600-699)
- Topic: 623 - 500!
- Replies: 187
- Views: 71648
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 ...
- Mon May 16, 2005 10:01 pm
- Forum: Volume 4 (400-499)
- Topic: 446 - Kibbles "n" Bits "n" Bits "n" Bits
- Replies: 50
- Views: 11489
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 ...
Here's my code, am I missing something?
#include <iostream.h>
#include <math.h>
#include <string.h>
#include ...
- Thu May 12, 2005 5:08 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10848 - Make Palindrome Checker
- Replies: 26
- Views: 19134
Thnx
Thnx dumb dan ... I got AC after that tip
_______________
[_TANG_]

_______________
[_TANG_]
- Thu May 12, 2005 4:27 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10848 - Make Palindrome Checker
- Replies: 26
- Views: 19134
- Thu May 12, 2005 12:54 am
- Forum: Volume 108 (10800-10899)
- Topic: 10848 - Make Palindrome Checker
- Replies: 26
- Views: 19134
Question
If P1 is false, then all the next conditions are false too?
I can't get AC ...
... I've fix all bugs I thought and my code crash all the time.
Can anyone help me?
thnx
____________
[_TANG_]
I can't get AC ...

Can anyone help me?
thnx
____________
[_TANG_]
- Tue May 10, 2005 7:54 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10338 - Mischievous Children
- Replies: 56
- Views: 31471
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!
Thnx!

- Tue May 10, 2005 4:49 pm
- Forum: Volume 5 (500-599)
- Topic: 584 - Bowling
- Replies: 10
- Views: 8569
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 ...
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 ...