Search found 25 matches

by txandi
Sun Oct 10, 2004 5:59 pm
Forum: Volume 3 (300-399)
Topic: 357 - Let Me Count The Ways
Replies: 90
Views: 6791

Now my program gets AC, but I think OJ should avoid confusing inputs, like 0 in this case... I've wasted a lot of time looking for bugs in my code.

Anyway, thanks a lot!
by txandi
Sat Oct 09, 2004 10:19 pm
Forum: Volume 3 (300-399)
Topic: 357 - Let Me Count The Ways
Replies: 90
Views: 6791

357 - Let Me Count The Ways

I can't understand. I get AC in 147 but WA in 357 and both problems are almost the same. I need some help. Can anybody check my code? [cpp]#include <iostream> #define MAX 31000 using namespace std; int coin[5]={50,25,10,5,1}; int main() { long long int total[MAX+1]; total[0]=1; for(int i=0;i<5;i++) ...
by txandi
Sat Aug 14, 2004 12:33 am
Forum: Volume 4 (400-499)
Topic: 499 - What's The Frequency, Kenneth?
Replies: 93
Views: 9898

499 - WA

:evil: I hate problems like this one... too easy... :evil: I'm getting WA all the time... and I can't understand why. There must be a tricky input... I've 2 questions: 1. Does the last line of input finish with '\n' or just with feof ??? 2. What we are suposed to do if there is a blank line or a lin...
by txandi
Sun Apr 18, 2004 12:01 pm
Forum: Volume 101 (10100-10199)
Topic: 10109 - Solving Systems of Linear Equations
Replies: 18
Views: 8658

10109

I can't find out what's wrong in my program... I've tried lots of different inputs and all the outputs where ok. But I'm getting WA :cry: My method: Gauss elimination. After reading the problem again, I've noticed that: You may assume each of the numerator and denominator part will not exceed the li...
by txandi
Thu Mar 25, 2004 7:25 pm
Forum: Volume 5 (500-599)
Topic: 578 - Polygon Puzzler
Replies: 6
Views: 2952

578 - WA

Can anyone give me some correct inputs/outputs to check my code?
I'm sure I get WA due to precision errors :-?
thanks!
by txandi
Sat Mar 06, 2004 10:17 pm
Forum: Volume 3 (300-399)
Topic: 346 - Getting Chorded
Replies: 19
Views: 4275

346 - WA

I need some help, please... I get WA again and again... is my code wrong?? [c]#include <stdio.h> int chord_to_num(char a, char b) { int num=0; if(a<96) num=a-'A'; else num=a-'a'; if(num==1) num++; else if(num==2) num++; else if(num==3) num=num+2; else if(num==4) num=num+3; else if(num==5) num=num+3;...
by txandi
Sat Mar 06, 2004 4:49 pm
Forum: Volume 5 (500-599)
Topic: 572 - Oil Deposits
Replies: 39
Views: 15754

Sorry... The problem that doesn't work is 572, not 512!
by txandi
Sat Mar 06, 2004 1:35 am
Forum: Volume 5 (500-599)
Topic: 572 - Oil Deposits
Replies: 39
Views: 15754

512 - Time Limit Exceeded

I can't understand... in my pc my program works fast, it has no problem in solving a 100x100 matrix. Surprisingly it doen't seem be as fast for the judge-online.

What can I do? If checked all "while"'s and "for"'s... and I'm sure they are ok.

Any idea?

Thanks in advance
by txandi
Tue Mar 02, 2004 10:05 pm
Forum: Volume 102 (10200-10299)
Topic: 10208 - Liar or Not Liar that is the...
Replies: 13
Views: 2849

It works, the side can be 0!!!

Thanks!
by txandi
Sun Feb 29, 2004 2:21 am
Forum: Volume 102 (10200-10299)
Topic: 10208 - Liar or Not Liar that is the...
Replies: 13
Views: 2849

10208 - WA

I can't find out what's wrong in my program... it seems to work well but when I summit it, I get WA :( Can anyone give some inputs/outputs to check if my program is correct? Thanks for all! PD: I'm new here... Can I send my code to someone in order to check if it's ok? Or can anyone tell me what I h...

Go to advanced search