Search found 216 matches

by Moha
Sat Sep 18, 2004 2:51 pm
Forum: Volume 3 (300-399)
Topic: 316 - Stars
Replies: 13
Views: 3374

somthing to consider..

first- you should handle for 1 and 2 star in constellation.
and when number of star in sky is less than constellation.
second - you should handle isomorhism situation for example this one:
4
1 1 1
1 2 1
2 1 1
2 2 1
1
4 Square
1 1
1 2
2 1
2 2
answer should be 1 occurance.
Goodlock!
by Moha
Sat Sep 11, 2004 5:14 pm
Forum: Volume 3 (300-399)
Topic: 313 - Intervals
Replies: 10
Views: 4729

no problem with precision!

In My accepted code I use acos, cos, sin and epsilon is 1e-10 and also using cout.presicion(2) to show the answer. I think it is enough!!.
by Moha
Sat Sep 11, 2004 12:35 am
Forum: Volume 1 (100-199)
Topic: 143 - Orchard Trees
Replies: 90
Views: 11615

It`s unbelievable i have removed these lines [cpp]if (minx<1) minx=1; if (miny<1) miny=1; if (maxx>99) maxx=99; if (maxy>99) maxy=99; [/cpp] from my code , search entire space 100*100 but skip points according to max and min and got accepted! just in 2.47 sec. after many submission!!
by Moha
Wed Sep 08, 2004 7:58 am
Forum: Volume 1 (100-199)
Topic: 143 - Orchard Trees
Replies: 90
Views: 11615

Ha. I have submited my code for this problem so many times but I got just wrong answer I test my code with an accepted code "click xx code" and in 100000 testcase I found just 1 diffrence in this test case: 71.67 88.3 45.02 49.09 98.49 0.1 in this testcase I found 1701 point inside but accepted code...
by Moha
Wed Sep 01, 2004 9:55 am
Forum: Volume 100 (10000-10099)
Topic: 10084 - Hotter Colder
Replies: 2
Views: 2164

Yes when you see 'Same' it means that the space is just a line and therefor it`s area is 0.00 :D
by Moha
Wed Sep 01, 2004 7:02 am
Forum: Volume 103 (10300-10399)
Topic: 10335 - Ray Inside a Polygon
Replies: 17
Views: 3883

Rounding...

I got Accepted after round down X.XX5 to X.XX
I think the main point is rounding floating-point number in this problem!!

Go to advanced search