Search found 5 matches

by zhangfei
Tue Aug 10, 2010 3:57 am
Forum: Volume 5 (500-599)
Topic: 548 - Tree
Replies: 23
Views: 11056

Re: 548 getting TLE

I got a RE , because I just use a string that has 11,000 elements. The problem says: there are 10,000 nodes .So your string may has 6 times elements.
by zhangfei
Mon Aug 02, 2010 2:44 pm
Forum: Volume 101 (10100-10199)
Topic: 10112 - Myacm Triangles
Replies: 13
Views: 5707

Re: 10112 - Myacm Triangles

Use absolute when calculate the area!
by zhangfei
Mon Aug 02, 2010 12:41 pm
Forum: Volume 3 (300-399)
Topic: 375 - Inscribed Circles and Isosceles Triangles
Replies: 19
Views: 2882

375

The PI uses asin(1.0)*2 instead of 3.14159265 for the precision.Pay attention to the precision when you will add all radius of circle. Here is my AC code. #include <stdio.h> #include <math.h> #define PI asin(1.0)*2 int main() { #ifndef ONLINE_JUDGE freopen("in.txt","r",stdin); #endif int nCase; doub...
by zhangfei
Sat Jul 31, 2010 12:57 pm
Forum: Volume 101 (10100-10199)
Topic: 10177 - (2/3/4)-D Sqr/Rects/Cubes/Boxes?
Replies: 10
Views: 5110

Re: 10177 - (2/3/4)-D Sqr/Rects/Cubes/Boxes?

I have writen down an AC code for this problem. And got a another WA one. But I compared the two 101 outputs, all of them are same. But the second code got WA. Why ?Here I put the second code, anybody can help me? #include <stdio.h> #include <math.h> int main() { #ifndef ONLINE_JUDGE freopen("in.txt...
by zhangfei
Thu Jul 29, 2010 2:22 pm
Forum: Volume 101 (10100-10199)
Topic: 10194 - Football (aka Soccer)
Replies: 119
Views: 38232

10194 - Football (aka Soccer)

???????????????????????????????????????????????????????????????????????WA??????????????????????????????AC???????? #include <iostream> #include <cstring> #include <algorithm> using namespace std; struct Team { char name[33]; char NAME[33]; int earn; int game; int win; int tie; int loss; int gd; int ...

Go to advanced search