Search found 57 matches

by Adil
Tue Oct 29, 2002 8:55 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 39600

hello there moni. read the problem statement VERY carefully. it says All illegal commands should be ignored and should have no affect on the configuration of blocks. and then There will be no syntactically incorrect commands. it's a good idea to assume that the judge will give illegal commands, whic...
by Adil
Tue Oct 29, 2002 8:35 pm
Forum: Volume 1 (100-199)
Topic: 151 - Power Crisis
Replies: 56
Views: 5017

i can try.

if m = 1, consider when N is 14. you cut the power off like 1,2,.. thus you cut off the power of 13 before 14. but you are supposed to cut off the power of 13 only after all the other areas have been cut-off.

hope this helps.
by Adil
Mon Oct 28, 2002 12:45 pm
Forum: C
Topic: Scan of input file ....
Replies: 14
Views: 11440

hello ec3_limz. you could use:
[c]i = 0;
while(sscanf(line, "%d %[^\0]", &d[i++], line) == 2);
[/c] instead of
[c]
for (int i = 0; sscanf(line, "%d", &d) == 1; i++);
[/c]

there of course are other ways. hope this helps.
by Adil
Sun Oct 27, 2002 9:03 pm
Forum: Volume 103 (10300-10399)
Topic: 10385 - Duathlon
Replies: 16
Views: 7150

how about brute force?
by Adil
Sat Oct 26, 2002 10:42 pm
Forum: Volume 103 (10300-10399)
Topic: 10332 - The Absent Minded Professor
Replies: 22
Views: 6292

Code converted from JAVA to C

hello there cothevacothe. i guess this is what you wanted. as you can see, i have tried to convert your JAVA prog to C prog. it compiles fine, and gives correct result for the sample inputs of this prob. but cheak it first for your sample inputs before submitting. i have just converted from JAVA to ...
by Adil
Tue Oct 22, 2002 7:22 pm
Forum: Volume 6 (600-699)
Topic: 615 - Is It A Tree?
Replies: 71
Views: 23539

hello there hank. i got this prob AC, and it has not been rejected yet. my prog gives your input to be a tree, and i agree with the result.
by Adil
Tue Oct 08, 2002 10:53 pm
Forum: Java
Topic: Compiler error!
Replies: 3
Views: 2413

hello there. opening files is not allowed by the online judge. all the input/output is done to the standard i/o device. so you better remove this line:

Code: Select all

System.setIn(new FileInputStream(new File("p187.in")));
best of luck.
by Adil
Sun Oct 06, 2002 12:22 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 39600

hello there. didn't fine why your prog got runtime-error. but your prog isn't correct any way. test this input: 10 move 9 over 9 move 8 over 9 move 7 over 9 move 6 onto 7 move 3 over 8 move 0 onto 8 move 2 over 13 move 2 over 10 move 4 over 7 move 6 over 7 move 1 onto 12 move 1 over 9 quit fix the p...
by Adil
Thu Oct 03, 2002 12:37 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 184370

hello there fOOd_aCe. about your code,
initialize n=0 at the start, and of course, put a comma between &i[n] and &j[n].
by Adil
Tue Oct 01, 2002 7:14 pm
Forum: Volume 103 (10300-10399)
Topic: 10309 - Turn the Lights Off
Replies: 19
Views: 8870

hey man, thanx a lot. :D
by Adil
Sun Sep 29, 2002 12:44 pm
Forum: Volume 103 (10300-10399)
Topic: 10309 - Turn the Lights Off
Replies: 19
Views: 8870

10309

Any hint for 10309 ["Turn the Lights Off"] would help.

thanx
by Adil
Sun Sep 29, 2002 12:21 pm
Forum: Volume 1 (100-199)
Topic: 135 - No Rectangles
Replies: 24
Views: 4617

Any hint on 135["No Rectangles"]?

hello there guys, any hint on how to solve 135 ["No Rectangles"] would help.

thanx

Go to advanced search