Search found 216 matches

by Moha
Thu Dec 06, 2007 1:11 am
Forum: C++
Topic: How to single 8 bit Varialbles Store in Single Bytes
Replies: 3
Views: 2300

Of course it should be. It is one of the advantages of C. But pay attention the size of num struct is not 1byte. it is 4bytes.
by Moha
Thu Dec 06, 2007 12:58 am
Forum: C
Topic: stack / heap size limit
Replies: 3
Views: 7417

Re: stack / heap size limit

I wanted to inquirea that is it possible to get a Runtime Error because of a big stack size. Yes, there is no actual limitation between the difference segments of a code, so increasing in stack unreasonably would corrupt another segment (it depends on the OS). If so what is the limit; how much stac...
by Moha
Wed Oct 03, 2007 11:41 pm
Forum: C++
Topic: Always WA, even with correct output... (what am I missing?)
Replies: 6
Views: 3589

Actually it depends of the problem statement. As far as I remember, every problem which wants the output in one line, you should print an end of line after each testcase.

By the way, I don't remember a problem which doesn't want a newline.
by Moha
Wed Oct 03, 2007 12:17 pm
Forum: C++
Topic: Always WA, even with correct output... (what am I missing?)
Replies: 6
Views: 3589

Obviously returning nothing was incorrect. Also there is no difference between "return" from main and exit. I suggest you believe in Judge and test your program. All of us has seen some weird WAs but after testing our source code we finally found the problem is in our codes not the judge.
by Moha
Mon Sep 24, 2007 8:39 pm
Forum: Algorithms
Topic: Need expert's view for geometry algos.
Replies: 23
Views: 9375

6.Minimum circle enclosing n points->O(nlog n)+O(h^3),where h is the number of points on convex-hull. O(n) is optimal for this problem, but for all purposes, O(n log n) using furthest point voronoi diagram is sufficient. The center will be either a vertex or on an edge of the diagram. Does it mean ...
by Moha
Mon Sep 24, 2007 2:50 pm
Forum: Algorithms
Topic: Need expert's view for geometry algos.
Replies: 23
Views: 9375

137 mf has described it.
688 Is a simple sweepline problem.
691 I tried it two years ago, but in vain. (may be the precision?!)
10084 needs clipping. since the polygon is convex, the clipping is very simple.
10095 I don't know, even I haven't read it before. I should think!
by Moha
Mon Sep 24, 2007 8:25 am
Forum: Algorithms
Topic: Need expert's view for geometry algos.
Replies: 23
Views: 9375

Your knowledge about some geometrical algorithm is good but you have to know that writing an geometrical program is not just knowledge, You should learn how your code covers all of the special cases which happen in almost of geometry problems. In the other words you have to have a good insight for s...
by Moha
Sat Sep 22, 2007 9:28 am
Forum: Bugs and suggestions
Topic: Problem solvers's e-mail
Replies: 1
Views: 1523

Problem solvers's e-mail

The e-mail address does not appear in the profile. Why? What if we want to send an e-mail to somebody. I think there should be an option for each one to select if he wants his e-mail appears in the profile.
by Moha
Thu Sep 20, 2007 7:13 am
Forum: Volume 1 (100-199)
Topic: 187 - Transaction Processing
Replies: 18
Views: 4633

Diffrence between cout/printf?

To day I saw a very strange thing. I had gotten PE in 186,187. I didn't know what to do to correct them. But today I changed output part of code into famous printf(It was in C++) code and my code got AC. Here is my old version of output for 187: cout.setf(ios::fixed|ios::showpoint); cout.precision(2...
by Moha
Wed Sep 19, 2007 2:17 am
Forum: Volume 5 (500-599)
Topic: 554 - Caesar Cypher
Replies: 27
Views: 10545

I followed the jurajz's hint and I got it. So according to jurajz`s instructions, we can reason this problem's judge-data is not correct. Because why we should eliminate trailing spaces? problem statement says we should divide the output into some lines which no one of them should be bigger than 60 ...
by Moha
Wed Sep 19, 2007 1:24 am
Forum: Volume 7 (700-799)
Topic: 782 - Contour Painting
Replies: 53
Views: 22106

Yes, thank you very much. I got it. The point is we shouldn't print the trailing space even it exists in the input.
by Moha
Tue Sep 18, 2007 9:49 pm
Forum: Volume 7 (700-799)
Topic: 782 - Contour Painting
Replies: 53
Views: 22106

Thank you very much for your help. Because the problem statement says we should print the output in the same format as the input, I thought this line should be removed.
by Moha
Tue Sep 18, 2007 8:10 am
Forum: Volume 7 (700-799)
Topic: 782 - Contour Painting
Replies: 53
Views: 22106

Could anybody test these inputs? I am getting PE. ^ is end of line. Inputs: 8 XXXXXXXXXXXX X X X X X X X X XXXXX X X X X X X * X X X X XXXXX X X X X X X X X XXXXXXXXXXXX __________ XXX X X * X __________ * __________ XXXXXXXXXX X X X XXXXXX X X X * X X XXXXXXXXXX __________ XXXXXXXXXXXXX X X * XXXXX...
by Moha
Sun Sep 16, 2007 12:34 am
Forum: Bugs and suggestions
Topic: Some Suggestions
Replies: 13
Views: 4089

Is any issue still to be answered? May I close the topic? The first post in this topic was made some suggestions. I don't know way this topic has been changed it course. It should have followed by some relevant posts. Anyway, I have another suggestion. Since most of us work with problem number inst...
by Moha
Wed Sep 12, 2007 11:08 pm
Forum: Volume 109 (10900-10999)
Topic: 10975 - Dueue's Quiz
Replies: 39
Views: 16500

The inputs are correct. Also your point is correct, because you should throw away the words bigger than 100! You should deduce it from the problem description.

Go to advanced search