
几何
wang_hoho
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #432 (Div. 2) - B - Arpa and an exam about geometry
B. Arpa and an exam about geometrytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputArpa is taking a geometr原创 2017-09-05 09:46:09 · 366 阅读 · 0 评论 -
16 多校 10 - B - Hard problem (HDU - 5858 )
推公式 角a是突破点。用余弦公式就可以求出a的余弦值了。 1、求s2(较容易) 就是扇形减去两个三角形的面积。用S = 0.5*a*b*sinc就可以求出三角形的面积。扇形面积是 S = 0.5 * a * r * r 。求出s2后就可以用小圆内扇形面积减去s2 ,就得到一半的阴影面积了。#include<iostream>#include<stdio.h>#include<m原创 2017-07-20 22:39:47 · 1489 阅读 · 0 评论 -
17 多校 - 2 - 1011 - Regular polygon (HDU - 6055)
Regular polygonTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 122 Accepted Submission(s): 45Problem DescriptionOn a two-dime原创 2017-07-27 18:17:21 · 213 阅读 · 0 评论 -
ZOJ - 4041 - Chasing(数学)
ZOJ - 4041 - Chasing题意:在 Y 轴左半边有两个人 A,B,他们的位置分别为 (XA,YA), (XB,YB)已知 B 的速度为 A 的 k 倍判断 B 能否在A到达 Y 轴前抓住 A 题解:即判断Y轴上是否存在一点P使得 PB/PA >= k设P为(0, YA+a)则PA = sqrt(XA^2 + a^2) , PB = sqrt(...原创 2018-07-20 15:56:05 · 627 阅读 · 0 评论 -
Codeforces Problem - 101C - Vectors(数学)
At a geometry lesson Gerald was given a task: to get vector B out of vector A. Besides, the teacher permitted him to perform the following operations with vector А:Turn the vector by 90 degrees c...原创 2018-04-13 14:00:49 · 387 阅读 · 0 评论