Search found 94 matches

by the LA-Z-BOy
Tue Jun 17, 2003 1:45 pm
Forum: Volume 4 (400-499)
Topic: 476 - Points in Figures: Rectangles
Replies: 87
Views: 8179

why not?
by the LA-Z-BOy
Tue Jun 17, 2003 1:14 pm
Forum: Volume 5 (500-599)
Topic: 537 - Artificial Intelligence?
Replies: 76
Views: 11286

hi zzyhly, no problem with your code... use float instead of long double you'll get accepted... but if you want to get accepted with long double then you have to use printf %Lf, not %lf ... if(fi==1&&fu==1) { printf("Problem #%d\n",count); printf("P=%.2LfW\n\n",i*u); } if(fi==1&&fp==1) { printf("Pro...
by the LA-Z-BOy
Sun Jun 15, 2003 12:30 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 59386

:o :o :o strange! :o :o :o
did you submit this code to Online Judge? :(
it's all OKAY to get AC.
by the LA-Z-BOy
Sun Jun 15, 2003 12:02 pm
Forum: Volume 5 (500-599)
Topic: 594 - One Little, Two Little, Three Little Endians
Replies: 46
Views: 13750

well, unions might be a better solution for this problem, but nothing wrong with `reversing each 8 bit block' and i wonder why should it not be working when x is smaller than 0... when i first solved this problem i used similar approach... long endianSolBits(long x){ long temp = 0; // variable to ho...
by the LA-Z-BOy
Sat Jun 14, 2003 8:58 am
Forum: Volume 105 (10500-10599)
Topic: 10509 - R U Kidding Mr. Feynman?
Replies: 41
Views: 13783

here's a tip from my team mate:
use double instead of long double.
you might get ac, tell us if you still got problem.
Greetings...
by the LA-Z-BOy
Sat Jun 14, 2003 8:10 am
Forum: Off topic (General chit-chat)
Topic: How old are you? Statistics.
Replies: 121
Views: 177605

hi, i'm Istiaque Ahmed Dolar, 20. registered in June 2002, started submitting in July 2002. just crossed 400 and i've solved most of the easy ones of this site, now it's tough going :(
i love this site :D
by the LA-Z-BOy
Tue Jun 10, 2003 1:48 pm
Forum: Volume 102 (10200-10299)
Topic: 10279 - Mine Sweeper
Replies: 102
Views: 28912

hey, don't you think your input and output buffers are smaller than needed? char input[10][10] , click[10][10] , output[10][10] ; input is supposed to be <=10 lines and <=10 chars at each line. so your buffer should be 1 char bigger than now...(to hold the terminating '\0')... char input[10][11] , c...
by the LA-Z-BOy
Mon Jun 09, 2003 9:24 am
Forum: Volume 102 (10200-10299)
Topic: 10279 - Mine Sweeper
Replies: 102
Views: 28912

to almost human: Is that mean if a mine has been touched, we only have to output the map contains asteriks and periods ... ???? nop. the problem statement says: Your output should represent the board, with each position filled in appropriately. Positions that have been touched and do not contain a m...
by the LA-Z-BOy
Mon Jun 09, 2003 8:48 am
Forum: Volume 4 (400-499)
Topic: 439 - Knight Moves
Replies: 33
Views: 11238

A square is a string consisting of a letter (a-h) representing the column and a digit (1-8 ) representing the row on the chessboard. i don't think you considered this, you thought squares should be denoted as a0, a1....a7. but in fact it's not. squares are denoted from a1, a2 .... a8. so you need m...
by the LA-Z-BOy
Thu Jun 05, 2003 10:52 pm
Forum: Volume 103 (10300-10399)
Topic: 10393 - The One-Handed Typist
Replies: 40
Views: 11247

Are you guessing that F and N are on a line and the handicap list are on the second line for each Test Cases..? This might not be true, because when i considered this i got WA. Anyway if so, then the input might look like this

Code: Select all

5 5
6
7 8
9 10
the
stewardesses
have
funny
hair
by the LA-Z-BOy
Thu Jun 05, 2003 6:19 pm
Forum: Volume 4 (400-499)
Topic: 433 - Bank (Not Quite O.C.R.)
Replies: 18
Views: 2786

So if more than one digit is garbled, such number never be correct (excluding case in which are more than one way to create correct number - it's ambiguous ). it seems unclear to me... i just know one thing about garbled ones.. whenever more than one garbled digits, the number case must be failure ...
by the LA-Z-BOy
Wed Jun 04, 2003 2:52 pm
Forum: Volume 4 (400-499)
Topic: 433 - Bank (Not Quite O.C.R.)
Replies: 18
Views: 2786

at most one digit is garbled do you consider this case? that means if more than one digits are garbled then failure , if exactly one digit is garbled then try to change the garbled digit only, don't touch the ungarbled ones, if no digits are garbled then try every digit with every possible outcome ...
by the LA-Z-BOy
Mon Jun 02, 2003 12:43 pm
Forum: Volume 4 (400-499)
Topic: 464 - Sentence/Phrase Generator
Replies: 11
Views: 2041

are you printing extra space characters? before printing each words i print a space character except for the first one where i decide this by a flag. before processing every input line i set the flag on... and if the flag is on then i set it off and don't write any space, else write a space. it seem...
by the LA-Z-BOy
Tue May 20, 2003 5:12 pm
Forum: Volume 4 (400-499)
Topic: 429 - Word Transformation
Replies: 82
Views: 17891

oh sorry, i missed that.
by the LA-Z-BOy
Tue May 20, 2003 9:19 am
Forum: Volume 4 (400-499)
Topic: 429 - Word Transformation
Replies: 82
Views: 17891

your floyd algorithm is wrong here...the intermediate node selection loop (k=0; k<... in your code) should be the outer most loop and also you are not creating new paths where direct edge is not possible. so modifying a little your floyd algo should be ok[cpp]void floyd() { int i,j,k; for (k=0;k<n;k...

Go to advanced search