Search found 29 matches

by off_algos
Sun Jan 12, 2003 6:29 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 182805

end of input

the input ends with an end of file marker in unix systems its ^d and in dos based systems its ^z if your program terminates at this commands then your TLE is not due to problems in receivng input/output. check if u exceed numerical limits that would make your program run n an infinite loop eg: while...
by off_algos
Sun Jan 12, 2003 6:21 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 182805

YES!
my program gives the following output for ur input set:

Code: Select all

1 1 1
1 2 2
2 2 2
1 3 8
4 4 3
1 5 8
1 10 20
10 1 20
100 200 125
201 210 89
900 1000 174
by off_algos
Sun Jan 12, 2003 6:11 am
Forum: Volume 5 (500-599)
Topic: 591 - Box of Bricks
Replies: 80
Views: 11162

simple

the problem statement asks you to output a blank line after each set of output
by off_algos
Thu Jan 09, 2003 10:47 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 49540

ur program refused to compile in my gcc

you must delete all the unnecesary code and then if you send a clearer code with single line comments then i may be able enough to help you..

if u feel like sending me the .c file that compiled in you compiler heres my mail add:
ak_i6@yahoo.com
by off_algos
Wed Jan 08, 2003 7:02 pm
Forum: Volume 101 (10100-10199)
Topic: 10192 - Vacation
Replies: 58
Views: 14413

i think the judge made a mistake

in the question the soln is obviously the the longest common substring but if i compare { if(strlen(mother)!=strlen(father)) while(1); gives me a timelimit exceeded without it my code is running in 0:00:002 time but produces WA heres is m code can u help me #include <stdio.h> #include <string.h> cha...
by off_algos
Wed Jan 08, 2003 2:22 pm
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 19843

accepted in 0.00.008 sec

thanx i got an AC
actually the prob was i was assuming that equality of sides implied fitting
thanx
by off_algos
Tue Jan 07, 2003 8:33 am
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 19843

well please see this example of card sorting in
DONALD E KNUTH
SORTING AND SEARCHING(vol 3)
sec. 5.2.5 Soring by distribution
by off_algos
Tue Jan 07, 2003 8:29 am
Forum: Volume 5 (500-599)
Topic: 583 - Prime Factors
Replies: 171
Views: 36837

well donot worry too much about a PE
the problem will be counted as solved only
yet,
the problem with ur progrm is that it outputs an extra space
if(a>1){printf("x ");}
when u print the last number u put an extra space
and thats all the mistake that u have done and nothing more
by off_algos
Tue Jan 07, 2003 7:36 am
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 19843

thanx
the idea of lexical sorting by soritng on the last first and then proceeding upwards is correct for sure

id soon write here the reference to this statement

can u still help me
by off_algos
Sun Jan 05, 2003 2:16 pm
Forum: Other words
Topic: to the administrators
Replies: 0
Views: 820

to the administrators

can you add the fields overall rank

and rank of a problem in the online page that gives the users info

would be pretty useful and inspiring
by off_algos
Sun Jan 05, 2003 2:10 pm
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 19843

103 WA!!

in problem 103 i use the following algorithm first i sort the dimensions of all the boxes then i sort the boxes into lexicographic order depending on their dimensions finally i use DP method (similar to that used to find the longest monotonic subsequence) and write the output can u help me why i get...
by off_algos
Sun Jan 05, 2003 1:40 pm
Forum: Volume 5 (500-599)
Topic: 591 - Box of Bricks
Replies: 80
Views: 11162

i think there r two mistakes in ur program 1. when u check for height in your for loop, u dont give chance for the input to contain boxes of height zero hence instead of checking that u must again check i<n 2. in ur code min+=abs(height -rata); is definitely wrong the question asks u to find the num...
by off_algos
Sun Jan 05, 2003 1:27 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 49540

the question specifies that in case of a tie the alphabetically first permutation has to be output
by off_algos
Sat Jan 04, 2003 2:31 pm
Forum: Other words
Topic: time trouble
Replies: 1
Views: 1070

time trouble

can anybody tell me how UTC is related to GMT ??
by off_algos
Sat Jan 04, 2003 2:24 pm
Forum: Other words
Topic: why 0.00.002
Replies: 1
Views: 890

why 0.00.002

even for the simpleproblems that have obvious solutions andwhen my code is tight i get AC only in time 0.00.002
if i pursue my efforts by submitting again and again i end up with a 0 time .does any body else have the same problem

Go to advanced search