Search found 12 matches

by joebin
Thu Aug 16, 2007 10:05 am
Forum: Volume 4 (400-499)
Topic: 481 - What Goes Up
Replies: 82
Views: 13801

thx!! Jan ! i got AC .
that idea is too great .
it saves helf of the run time .
:D
by joebin
Tue Aug 14, 2007 11:28 am
Forum: Volume 4 (400-499)
Topic: 481 - What Goes Up
Replies: 82
Views: 13801

TLE -- because your program isn't fast enough. Generate an input with 100000 random numbers, and you'll see why. You have to find a better algorithm, or use some clever data structure to speed up yours. could you give me some idea about 481 ? THX!! following is my code . i have the same problem . #...
by joebin
Mon Apr 16, 2007 7:09 am
Forum: Volume 1 (100-199)
Topic: 118 - Mutant Flatworld Explorers
Replies: 68
Views: 9158

i tried above all , but i got WA , either. following is my code : #include<iostream> using namespace std; int main( int argc, char * argv[] ) { int a,i,j,m,n,l[51][51],x,y,p[4]={1,1,-1,-1}; char k,d[4]={'N','E','S','W'},t[100]; cin >>m>>n; for(i=0;i<=m;i++) for(j=0;j<=n;j++) l[i][j]=1; while(cin >>x...
by joebin
Thu Mar 01, 2007 7:08 am
Forum: Volume 3 (300-399)
Topic: 357 - Let Me Count The Ways
Replies: 90
Views: 7340

long long array[30001];
int main{......}
just try it !!
by joebin
Tue Feb 13, 2007 5:59 am
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 17163

[CORRECT!!] (intput) 100 90 100 50 99 40 100 6 20 5 18 6 0 0 (output) 1591253560 445776180 445776180 1192052400 15504 18564 (THE TEST DATA WHICH SOMEBODY TOLD ME IS CORRECT) 8)[/quote] I have a problem ! I used calculator to count c(100,90) and c(100,50). I found that c(100,90) < c(100,50) , but you...
by joebin
Tue Feb 13, 2007 5:58 am
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 17163

[CORRECT!!] (intput) 100 90 100 50 99 40 100 6 20 5 18 6 0 0 (output) 1591253560 445776180 445776180 1192052400 15504 18564 (THE TEST DATA WHICH SOMEBODY TOLD ME IS CORRECT) 8)[/quote] I have a problem ! I used calculator to count c(100,90) and c(100,50). I found that c(100,90) < c(100,50) , but you...
by joebin
Thu Jan 11, 2007 6:22 am
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 21916

thanx a lot !!
by joebin
Wed Jan 10, 2007 4:31 pm
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 21916

Please note that what is given in the input is the position of the i-th event in the chronological order, for example, in your input: 10 3 1 2 4 9 5 10 6 8 7 2 10 1 3 8 4 9 5 7 6 that means that in the correct order, event 1 is in the 3rd position, event 2 is in the first position..., like this: 2 ...
by joebin
Sat Jan 06, 2007 11:22 am
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 43559

Mm......
not at all
because my english is not good
maybe i misunderstood your reply
sorry!!
by joebin
Fri Jan 05, 2007 6:49 am
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 43559

remove

sorry!!
by joebin
Thu Jan 04, 2007 2:27 pm
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 43559

thx!!

Now i got AC !!
by joebin
Sat Dec 30, 2006 3:00 pm
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 43559

623 Got RE?

my program ran correctly in Borland C++ BuilderX 1.0 and got the right ans.

I doubt if acm can't use dynamic memory allocation.

or how to declare a 2570x1001 two-dimension array?

Go to advanced search