Search found 57 matches

by Adil
Sat Mar 29, 2003 5:26 pm
Forum: Off topic (General chit-chat)
Topic: ***!!! PLEASE STOP IT !!!***
Replies: 12
Views: 5868

It is often said that history repeats itself. I agree with Derk. and i think that's what we witness today. history repeating itself. another Hitler killing innocent people in the name of PEACE. As a human being, I feel as though I have a responsibilty to all human beings -- not just those in my own...
by Adil
Tue Mar 18, 2003 7:15 am
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 39587

hello. unsing delete will cause runtime-error, if you are "delete"ing something that doesn't exist. i had to learn it the hard-way. it might be easier to point the mistake out from the code. not using delete can cause the program to run out of memory. so it's a good idea to know when and how to use ...
by Adil
Mon Mar 17, 2003 1:51 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 31984

hello. this part of your code seems to be a little off the track. while(1) { if(frst[i]==scnd[j]) { cnt++;j++;break;} j++; } the loop should continue only until the end of the second string has been reached. hope this helps. another thing: declaring large size arrays (in this case, your input string...
by Adil
Sun Mar 16, 2003 9:48 pm
Forum: Volume 7 (700-799)
Topic: 782 - Contour Painting
Replies: 53
Views: 22155

hello.

what should be the output of the following input?

Code: Select all

1
XXXXXXXXXXXXX
X       X  *
XXXXXXXXXXXXXXX
____
thanx.
by Adil
Sun Mar 16, 2003 7:03 pm
Forum: Volume 100 (10000-10099)
Topic: 10055 - Hashmat the Brave Warrior
Replies: 166
Views: 46411

hello.

by the statement, the problemsetter means that the smaller of the inputs (when they are not equal) is always the number of hashmat's soldiers. so you have to decide which input indicates the number of hashmat's soldiers. (this, however is not really needed to solve this prob)
by Adil
Thu Mar 13, 2003 3:15 pm
Forum: Volume 104 (10400-10499)
Topic: 10481 - The Gift Wrappers of Hollywood
Replies: 14
Views: 4068

hello there. this is not about this particular problem, it is about this kind of problem. personally, i like this kind of problems (not that i am good at solving these problems). it requires quite good and clear knowledge of geometry and often involves solving equations (if you successfully manage t...
by Adil
Thu Mar 13, 2003 3:10 am
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 39378

hello.

the problem-statement states that only the alphabetic characters have values. so if you get any other character, then ASCII code for that character should NOT be added.

if you haven't got AC yet, hope this helps.
by Adil
Thu Mar 13, 2003 2:35 am
Forum: Volume 104 (10400-10499)
Topic: 10467 - Parse Tree
Replies: 4
Views: 2006

if you notice carefully, the problem-statement and your statement imply the same format. if you print "="s over the immediate children, it will automatically cover the whole subtree expanding from it. and the problem also requires the leaves to be printed in specific columns (where no two leaves can...
by Adil
Fri Nov 08, 2002 12:32 pm
Forum: Volume 4 (400-499)
Topic: 440 - Eeny Meeny Moo
Replies: 18
Views: 1829

shouldn't it be[cpp]while(cin >> numCities && numCities != 0) [/cpp]in stead of[cpp]while(cin >> numCities != 0) [/cpp]
?
by Adil
Fri Nov 08, 2002 1:06 am
Forum: Volume 103 (10300-10399)
Topic: 10395 - Titans in Danger
Replies: 18
Views: 3252

yes. that's the case. i was getting WA because i was going the wrong way, and that made me look for holes in the problem-statements. :lol: anyways, no complaints anymore, i've got AC [ all the thanx to Adrian ]
by Adil
Thu Nov 07, 2002 9:02 pm
Forum: Volume 103 (10300-10399)
Topic: 10395 - Titans in Danger
Replies: 18
Views: 3252

there aren't any duplicate characters? the following program shouldn't get Run-Time error unless there's duplicate characters in the input. and guess what, it does get Runtime Error (SIGSEGV) for 10395. [c]#include <stdio.h> char str[100]; void main() { while(gets(str)) { char *s = str, *t; while(*s...
by Adil
Thu Nov 07, 2002 7:51 pm
Forum: Volume 103 (10300-10399)
Topic: 10395 - Titans in Danger
Replies: 18
Views: 3252

to those who got AC, what's the output for "aab" and "aabb"?

mine gives:

aab
baa
aba

......and

aabb
baab
abab
bbaa
abba
baba
by Adil
Thu Nov 07, 2002 6:55 pm
Forum: Volume 103 (10300-10399)
Topic: 10395 - Titans in Danger
Replies: 18
Views: 3252

10395 - Titans in Danger

hello there. 10395 problem states: No two Titans will have the same initial character in the name but i cheaked it, and there seems to be multiple occurances of the same character in the input. the problem statement should probably be changed, or the judge input should be changed. i might be wrong, ...
by Adil
Thu Nov 07, 2002 1:49 am
Forum: Volume 104 (10400-10499)
Topic: 10402 - Triangle Covering
Replies: 37
Views: 5724

hello there.

i think P1 and P2 are PITL. might it be that the middle square doesn't intersect the lower two squares on the border of the triangle? but in that case, the problem statement is partially-wrong i guess. :-?
by Adil
Tue Nov 05, 2002 11:30 pm
Forum: Volume 104 (10400-10499)
Topic: 10402 - Triangle Covering
Replies: 37
Views: 5724

hello guys.

from the symmetry, we can deduce that P3 is the mid-point. now, let A and B be the end-points of the line of P3. so we have,

AP3 = r / sin(60 deg) ==> where r is the side of the squares

thus, AB = 2 * r / sin(60 deg)

hope i am correct, and hope this helps.

Go to advanced search