## Search found 44 matches

Sun Apr 02, 2006 4:15 am
Forum: Volume 4 (400-499)
Topic: 408 - Uniform Generator
Replies: 48
Views: 4116
unless you can make a faster form of seed=(seed+x)%y or can correlate the inputs to possible output...i dont hink you can decrease the time too much as for each mod value, it'll have to parse the whole 0-mod once one possible improvement is checking if gcd of step and mod is 1 fastest way for this w...
Thu Mar 30, 2006 4:43 pm
Forum: Bugs and suggestions
Topic: updating profile error
Replies: 1
Views: 2017

### updating profile error

i get this when i try to upload a pic from my comp as avatar Warning: copy(./images/avatars/43850786442bee7b21617.jpg): failed to open stream: Permission denied in /var/www/htdocs/board/includes/usercp_avatar.php on line 286 Warning: Cannot modify header information - headers already sent by (output...
Thu Mar 30, 2006 4:40 pm
Forum: Algorithms
Topic: The Best LCS!
Replies: 6
Views: 1888
isnt the best way to find longest common substring with dymanic programming?
Thu Mar 30, 2006 4:29 pm
Forum: Algorithms
Topic: nesting boxes
Replies: 5
Views: 1750
ill take a look at warshall

whats LIS??
Wed Mar 29, 2006 7:25 pm
Forum: Algorithms
Topic: nesting boxes
Replies: 5
Views: 1750

### nesting boxes

the question is we are given a number of boxes(length and width given) box1 can be nested in box2 if l2>l1 and w2>w1 we keep nesting boxes till no other box fits in any other and this is the number we want any tips on how to do this? ex...we have 4 boxes (10,10),(5,5),(1,1),(1,11)...the answer we ge...
Mon Jan 30, 2006 12:53 pm
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 25041
i guessed the fault was ther since problem was with 97+ only...juggled a few things and works now
thanks
Mon Jan 30, 2006 10:46 am
Forum: Other words
Topic: debuggers
Replies: 1
Views: 1470

### debuggers

ive been sweating over problem 160 for a while now and keep getting a floating point exception normal exceution and putting in printf lines in the loops arnt helping me find out where exactly the exception is taking place why suggestions what debuggers i can use and how easy is it to use them? (text...
Mon Jan 30, 2006 8:17 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 25041
eeeh?! i ran it with you input and i got this (copy pasted from my putty window) is this compiler dependent error? [root@nehru ~]# ./a.out <in3 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 [root@nehru ~]# cat in3 100 0 [root@nehru ~]# 98! is also working fine 98! = 95 46 22 16 8 7 5 ...
Sun Jan 29, 2006 9:37 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 25041
help needed with my code it gives no extra lines that i can see #include<stdio.h> int main() { hmm } [root@nehru ~]# ./a.out <in1 2! = 1 10! = 8 4 2 1 32! = 31 14 7 4 2 2 1 1 1 1 1 45! = 41 21 10 6 4 3 2 2 1 1 1 1 1 1 52! = 49 23 12 8 4 4 3 2 2 1 1 1 1 1 1 64! = 63 30 14 10 5 4 3 3 2 2 2 1 1 1 1 1 1...
Thu Dec 08, 2005 3:45 am
Forum: Algorithms
Topic: factorials
Replies: 7
Views: 1548
horners?
Wed Dec 07, 2005 3:12 pm
Forum: Off topic (General chit-chat)
Topic: CSE course
Replies: 10
Views: 3644
we had a data structures course in out 2nd sem but that didnt help much here
in my 7th sem(2 sems/tear), i did an algo course which taught me mainly knapsack/basic path finding(prim/kruskal)
yet to do any problems regarding those
Tue Dec 06, 2005 6:31 pm
Forum: Volume 1 (100-199)
Topic: 190 - Circle Through Three Points
Replies: 126
Views: 20119

### 190 wa

where am i going wrong or gimma an input that doesn work #include<math.h> #include<stdio.h> int main() { double con,cenx,ceny,rad,ax,ay,bx,by,cx,cy,mab,mac,p1,q1,r1,p2,q2,r2; int sx,sy,sc; while(scanf("%lf %lf %lf %lf %lf %lf",&ax,&ay,&bx,&by,&cx,&cy)==6) { sx=0,sy=0,sc=0; mab=(by-ay)/(bx-ax); mac=(...
Tue Dec 06, 2005 1:50 pm
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 28021
i need help...dunno why im getting WA #include<stdio.h> int main() { int ht,h[10000],right=0,a,t=0,l[10000],r[10000]; for(a=0;a<10000;a++) h[a]=0; while(scanf("%d %d %d",&l[t],&ht,&r[t])==3) { if(l[t]>right) right=l[t]; if(r[t]>right) right=r[t]; for(a=l[t];a<r[t];a++) if(h[a]<ht) h[a]=ht; t++; } ht...
Mon Dec 05, 2005 3:34 am
Forum: Volume 2 (200-299)
Topic: 264 - Count on Cantor
Replies: 47
Views: 13752
i have a presentation error problem the question states there shouldnt be a newline after the last input here is my output [root@nehru nukem]# ./a.out <in TERM 3 IS 2/1 TERM 7 IS 1/4 TERM 14 IS 2/4 TERM 1231 IS 6/45 TERM 52 IS 7/4[root@nehru nukem]# each line goes to a new line except the last line ...
Wed Nov 30, 2005 10:09 pm
Forum: Volume 102 (10200-10299)
Topic: 10215 - The Largest/Smallest Box ...
Replies: 55
Views: 29585
bleh...finally got it accepted
the program works only with double
float gives the 3rd decimal place rounding off error
does this tell us double is more accurate than float? (even when talking about the 3rd decimal point?)