posts - 21,  comments - 9,  trackbacks - 0
这是道简单题。关键是理解好s的意思。
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
 int n;
 cin>>n;
 while(n--)
 {
  double a,b,c;
  cin>>a>>b>>c;
  double k=asin((b/2+c/2)/(a/2-b/2));
  cout<<int(3.141592/k)<<endl;
 }
 return 0;
}
posted on 2010-08-16 10:41 崔佳星 阅读(83) 评论(0)  编辑 收藏 引用
<2025年4月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

常用链接

留言簿(1)

随笔分类

随笔档案

文章分类

文章档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜