杭电problem2066 Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other) Total Submission(s) : 27 Accepted Submission(s) : 6 Font: Times New Roman | Verdana | Georgia Problem Description 虽然草儿是个路痴(就是在杭电待了一年多,居然还会在校园里迷路的人,汗~),但是…
#include<iostream> #include<stdio.h> #include<math.h> #include<vector> using namespace std; struct e{ int next,c; }; vector<e> edge[]; ]; ]; int main (){ int n,m; && m!=){ int a,b,c; e temp; //初始化 ;i<=n;i++){ edge[…
http://poj.org/problem?id=3463 Sightseeing Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 7252 Accepted: 2581 Description Tour operator Your Personal Holiday organises guided bus trips across the Benelux. Every day the bus moves from…
今天笔试遇到一个代码题,要求写一个开平方算法,回来发现了雷神之锤里的一段神代码: float Q_rsqrt( float number ) { long i; float x2, y; const float threehalfs = 1.5F; x2 = number * 0.5F; y = number; i = * ( long * ) &y; // evil floating point bit level hacking i = ); // what the fuck? y = *…