Search found 42 matches

by Nazmul Quader Zinnuree
Fri Jun 15, 2007 10:51 am
Forum: Volume 101 (10100-10199)
Topic: 10177 - (2/3/4)-D Sqr/Rects/Cubes/Boxes?
Replies: 10
Views: 6249

Hi,

I haven't tried it yet & have no time to have a try. But, have you tried

Code: Select all

1 0 1 0 1 0
for

Code: Select all

0
?

Don't ask me "WHY ?"......

Thanks.
by Nazmul Quader Zinnuree
Wed Sep 13, 2006 10:53 pm
Forum: Volume 100 (10000-10099)
Topic: 10017 - The Never Ending Towers of Hanoi
Replies: 19
Views: 7428

I think, my code works for all the above cases. But gets WA. Where does it fails? #include <stdio.h> int stack[3][100], top[3], m; void push(int i, int v) { stack[i][top[i]++] = v; } int pop(int i) { top[i]--; return stack[i][top[i]]; } void tower_of_hanoi(int n, int s, int t, int d) { int i, j; if ...
by Nazmul Quader Zinnuree
Wed Sep 13, 2006 10:45 pm
Forum: Volume 110 (11000-11099)
Topic: 11087 - Divisibility Testing
Replies: 36
Views: 21621

make the flag array ready for the next input. re - initialize it with 0's
by Nazmul Quader Zinnuree
Tue Sep 12, 2006 3:06 am
Forum: Volume 110 (11000-11099)
Topic: 11082 - Matrix Decompressing
Replies: 28
Views: 14799

Hello Cho,

I have sent my code to you by PM. Coz, your approach seems to be like mine. Would you plz check my code, why I'm getting WA.

Thanks.
by Nazmul Quader Zinnuree
Tue Sep 12, 2006 2:29 am
Forum: Volume 110 (11000-11099)
Topic: 11087 - Divisibility Testing
Replies: 36
Views: 21621

No sorting & no hashing.

I used a flag array to identify duplicates..

Code: Select all

char flag[20000002]
It runs within 0:07.125
by Nazmul Quader Zinnuree
Wed Sep 06, 2006 9:31 am
Forum: Volume 110 (11000-11099)
Topic: 11001 - Necklace
Replies: 38
Views: 21861

I've have used just 'int'

Code: Select all

n = vt / v0 / 2;
if ((vt * n - v0 * n * n) == (vt * (n + 1) - v0 * (n + 1) * (n + 1)))
/*  */
:wink:
by Nazmul Quader Zinnuree
Wed Sep 06, 2006 5:52 am
Forum: Volume 110 (11000-11099)
Topic: 11078 - Open Credit System
Replies: 12
Views: 8157

12 penalties !!!!!!!!!!!! WA, TLE, RTE, RTE, WA, TLE, WA, ........... in EWUIPC, the reason is simple as mentioned above. Killed our time, killed our head, killed our position, killed us..... But we got no clarifications, no corrections, but a potato sample, that was right in all ways. However, the...
by Nazmul Quader Zinnuree
Wed Sep 06, 2006 5:31 am
Forum: Volume 110 (11000-11099)
Topic: 11079 - What's the Time?
Replies: 8
Views: 4639

Thanks Adrian,
I have worked to minimize my time. & now I'm getting WA after 5.660 sec. So, would you please give me some tricky samples?
by Nazmul Quader Zinnuree
Tue Sep 05, 2006 4:39 am
Forum: Volume 110 (11000-11099)
Topic: 11079 - What's the Time?
Replies: 8
Views: 4639

First, I simulate for the first period & for the last period. which loops for at most 30000. I think it must be done. coz, situation may change in every second in a period. Then, if it is possible to reach, then O(1) calculation, to get the time. only three cases may occur: i. reached within the...
by Nazmul Quader Zinnuree
Sat Sep 02, 2006 9:01 pm
Forum: Volume 110 (11000-11099)
Topic: 11079 - What's the Time?
Replies: 8
Views: 4639

11079 - What's the Time?

Input will be terminated with N=0 and K=0.
The people who solved it. did you consider it? The sample does not say so.
How to solve it? I'm getting TLE, but no reason to get it. it may be WA. Someone plz clarify whether it is just some math or anything other to solve it?
by Nazmul Quader Zinnuree
Sat Sep 02, 2006 8:51 pm
Forum: Bugs and suggestions
Topic: A Bangladeshi Contest's problem F testdata.
Replies: 5
Views: 2850

Input will be terminated with N=0 and K=0.
But, the sample does not show it. What will be the right thing?
by Nazmul Quader Zinnuree
Sat Sep 02, 2006 8:09 pm
Forum: Volume 110 (11000-11099)
Topic: 11082 - Matrix Decompressing
Replies: 28
Views: 14799

Shame on you! You can so easily make I/O yourself! Generate random matrices, sum their rows and columns, and you get your input. Checking if the output is correct is a trivial coding exercise, too. Ok, I'm sorry. I knew that. But what to do when all my attempts seems right to me, but not to the jud...
by Nazmul Quader Zinnuree
Sat Sep 02, 2006 5:45 pm
Forum: Volume 110 (11000-11099)
Topic: 11081 - Strings
Replies: 35
Views: 24336

If match(above) then go if not check the second string just the same way
What does it mean ? Would you explain more elaborately.....

what is the output for

Code: Select all

aa aa aa
a a aaa
ab ac abc
Plz, explain with an example.

Thanks.
by Nazmul Quader Zinnuree
Sat Sep 02, 2006 5:34 pm
Forum: Volume 110 (11000-11099)
Topic: 11080 - Place the Guards
Replies: 40
Views: 16993

Input

Code: Select all

5
1 0
2 0
3 2
1 2
2 3
3 3
1 2
2 3
1 3
13 10
0 5
5 4
5 3
5 2
5 1
5 6
7 8
7 9
7 10
7 11
Output

Code: Select all

1
2
1
-1
3
by Nazmul Quader Zinnuree
Sat Sep 02, 2006 5:25 pm
Forum: Volume 110 (11000-11099)
Topic: 11082 - Matrix Decompressing
Replies: 28
Views: 14799

11082 - Matrix Decompressing

Someone give me some I/O, plz

Go to advanced search