Search found 112 matches

by epsilon0
Fri May 09, 2003 8:09 am
Forum: Volume 1 (100-199)
Topic: 136 - Ugly Numbers
Replies: 156
Views: 18177

a nice variant of this problem would be to make the number of prime factors variable.
the input would look like:

2
2 3
100

4
3 11 31 37
222

etc...

i'm sure it would heat some brains.
by epsilon0
Mon Mar 17, 2003 7:01 pm
Forum: Volume 104 (10400-10499)
Topic: 10426 - Knights' Nightmare
Replies: 17
Views: 7741

nevermind

nevermind

i just go accepted PE.
found my error: i wrote several times
stuff.i * land_Nrow + stuff.j
instead of
stuff.i * land_Ncol + stuff.j
by epsilon0
Mon Mar 17, 2003 6:50 pm
Forum: Volume 104 (10400-10499)
Topic: 10426 - Knights' Nightmare
Replies: 17
Views: 7741

10426

please help me i don't know why this is wrong: (give me some test cases at least if you don't feel like reading the code) [c]/* @JUDGE_ID: ??????? 10426 C Knights' Nightmare */ #include <stdio.h> #include <stdlib.h> #define MAXSIZE 16 #define MONSTERSSQUARE (n_jmp)(~0 - 1) #define EMPTY (n_jmp)(~0) ...
by epsilon0
Fri Feb 28, 2003 10:30 am
Forum: Volume 1 (100-199)
Topic: 121 - Pipe Fitters
Replies: 36
Views: 2464

who said skew patterns had different number of pipes on each row?
ie:
OO
.O.
OO

i think

.OO
OO.
.OO

is a perfectly cool skew pattern.

try it with a box 2.9 x 2.9 i think it should give you
6 skew
and not
5 skew, like your program seems to do... (i didn't check)

hope this helps
by epsilon0
Sun Feb 09, 2003 8:28 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 38224

it sucks to be insane, better find another hobby :P
by epsilon0
Mon Feb 03, 2003 12:55 pm
Forum: Volume 1 (100-199)
Topic: 128 - Software CRC
Replies: 62
Views: 7448

end of lines seem to be \r\n on my linux box.
removing the \r gives different results. (correct ones).
by epsilon0
Mon Feb 03, 2003 12:54 pm
Forum: Volume 1 (100-199)
Topic: 114 - Simulation Wizardry
Replies: 80
Views: 7572

are you sure? if i do this my program gives wrong answers.
by epsilon0
Mon Feb 03, 2003 11:31 am
Forum: Volume 1 (100-199)
Topic: 114 - Simulation Wizardry
Replies: 80
Views: 7572

i still have TLE. here is my source code now: note that coordinates in my program go from 0 ot m-1 and 0 to n-1. also i assumed walls were within the grid. ie playground 4x4 means only 2x2 "non-wall" positions. [c]#include <stdio.h> #include <stdlib.h> #define MMAX 51 #define NMAX 51 #define NOBUMP ...
by epsilon0
Mon Feb 03, 2003 11:03 am
Forum: Volume 1 (100-199)
Topic: 114 - Simulation Wizardry
Replies: 80
Views: 7572

i had a table offset problem. i corrected it, but it's still time limit :(
by epsilon0
Mon Feb 03, 2003 10:53 am
Forum: Volume 1 (100-199)
Topic: 114 - Simulation Wizardry
Replies: 80
Views: 7572

i need help on this problem as well. my code works well on the judge's input. but it gives me a TIME LIMIT. i don't see why. this problem has a low complexity. here's my program: [c]#include <stdio.h> #include <stdlib.h> #define MMAX 51 #define NMAX 51 #define NOBUMP -1 int grid[MMAX][NMAX]; int m,n...
by epsilon0
Sun Feb 02, 2003 3:30 pm
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 21992

hello nghiank. sorry, i'm too tired now to read and understand your pascal program. here is some help: if the input is: 5 3 1 2 4 5 2 1 4 3 5 3 1 2 4 5 you copy the first line "as is" in a table, let's call it "trans" trans = { 3 1 2 4 5 } in the example. then you copy each following line like this:...
by epsilon0
Sun Feb 02, 2003 2:20 pm
Forum: Volume 1 (100-199)
Topic: 128 - Software CRC
Replies: 62
Views: 7448

128 Software CRC

is there any trick in this problem? end of lines are \r\n right? i don't get it. [c]#include <stdio.h> #include <stdlib.h> #define GGG 34943 void print(int val) { printf("%02X %02X\n",val>>8, val - ((val >> 8) << 8)); } char solve() { char c; int reminder = 0; int checksum; scanf("%c",&c); if (c == ...
by epsilon0
Sun Feb 02, 2003 12:58 pm
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 21992

ok just got accepted, sorry for the trouble, but i keep thinking the problem statement is unclear.
by epsilon0
Sun Feb 02, 2003 12:42 pm
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 21992

nevermind. i got it. but it wasn't clearly explained. the correct ordering is 2 3 1 4 doesn't mean event 2 is the first in chronological order. but first event in the list in second in chronological order. so the student would write 2 3 1 4 on his copy but the correct order of the events is 3 1 2 4....
by epsilon0
Sun Feb 02, 2003 12:28 pm
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 21992

i don't see.

please make yourself more clear

Go to advanced search