![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
想法
文章平均质量分 79
ZJiaQ1994
这个作者很懒,什么都没留下…
展开
-
2015多校第一场1008 hdu 5295 Unstable
题意:给定AB,BC,CD,DA距离,已经AB的中点E,CD的中点F的距离EF。给出一个合法的A,B,C,D坐标。做法:和题解一样。首先其中B,C两个点的坐标可以自己定,不妨设C为(0,0),B为(BC,0),然后从A点过F作A'令AF=A'F,由于对顶三角形的原因,A'C=AD。由于相似三角形的原因A'B=2*EF,已知两点坐标和三边长,可以求出A'的坐标。然后作点G,令向量GB=向量A'C原创 2015-07-29 20:45:17 · 623 阅读 · 0 评论 -
TC SRM664 DIV1 A
题意:给定x,y,进行k次操作,每次小的那个翻倍,然后大的那个减去小的那个做法:假设x是小的那个x=x*2,y=y+y-(x+y)。所有只需任取一个乘以2^(k)mod(x+y)即可,然后再判断一下最后这个数是不是较小的这个。我就是死在这里。。。。代码就不贴了,太水原创 2015-08-02 16:43:37 · 418 阅读 · 0 评论 -
Codeforces 573D Bear and Cavalry
Would you want to fight against bears riding horses? Me neither.Limak is a grizzly bear. He is general of the dreadful army of Bearland. The most important part of an army is cavalry of course.原创 2015-09-18 20:07:40 · 773 阅读 · 0 评论