这次写这个旋转向量法,完全就是套公式x'=xsina-ysina;y'=xsina+ycosa;但是我还是做得很磕磕碰碰,每次输出,把需要的数据输入要结构体或者数组里面都是件难事,让我葛优瘫一下,但是,这次主要还是数学题目所以好理解也好做,不过要注意输出的条件,当y不等输出y小的,否则输出x小的。当 ...
分类:
其他好文 时间:
2016-07-21 17:43:36
阅读次数:
117
L - Points on Cycle Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u L - Points on Cycle Description There is a cycle with its cen ...
分类:
其他好文 时间:
2016-07-21 17:30:44
阅读次数:
165
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. Given n points on a 2D plane, find the maximum num ...
分类:
其他好文 时间:
2016-07-21 06:23:32
阅读次数:
114
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Description There is a cycle with its center on the origin. Now give you a point ...
分类:
其他好文 时间:
2016-07-20 21:10:00
阅读次数:
141
一个简单的几何题,自己在纸上列出方程解出结果的表达式,再用程序表达出来就行了。 大致题意:一个圆心在原点的圆,半径未知,现在给你圆上的一点,让你在这个圆上找到另外两点,使得这三点构成的三角形的周长最长。 样例输入:(第一行为一个整数N,表示后面有N组案例,每个案例给出一组圆上点的坐标) 2 1.50 ...
分类:
其他好文 时间:
2016-07-19 20:40:13
阅读次数:
168
题意:给定 n 数,让你交换最多1次,求满足 ai = i的元素个数。 析:很简单么,只要暴力一遍就OK了,先把符合的扫出来,然后再想,最多只能交换一次,也就是说最多也就是加两个,然后一个的判,注意数组越界。 代码如下: ...
分类:
其他好文 时间:
2016-07-19 09:18:48
阅读次数:
173
Score : 200 points Problem Statement Snuke is having a barbeque party. At the party, he will make N servings of Skewer Meal. Example of a serving of S ...
分类:
其他好文 时间:
2016-07-17 13:14:32
阅读次数:
190
I'm trying to add DLLRegisterServer and DLLUnregisterServer entry points to an existing DLL that is exporting other functions. I have the olectl.h hea... ...
分类:
其他好文 时间:
2016-07-13 13:43:10
阅读次数:
150
《Jess In Action》58页,这样说?argv:In the body of a defadvice call, the variable ?argv is special: It points to the actual function call being executed。 并给出 ...
分类:
其他好文 时间:
2016-07-10 18:22:35
阅读次数:
150