描述 Given the coordinates of the vertices of a triangle,And a point. You just need to judge whether the point is in the Triangle. 输入 The input contains several test cases. For each test case, only line contains eight integer numbers , describing the c…
Pie Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12138 Accepted Submission(s): 4280 Problem Description My birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I…
This article is made by Jason-Cow.Welcome to reprint.But please post the writer's address. http://www.cnblogs.com/JasonCow/ LA2218 && vijos1087铁人三项 描述 所有运动员的3个项目的速度都是已知的.裁判可以任意规定每一个项目的路程长度,并且每个项目的长度均为正数. 正因为裁判拥有如此大的权力,所以有些运动员会贿赂裁判,让他规定对自己有利的各项目的路程…
Code: #include<bits/stdc++.h> #define N 100006 #define M 205 #define ll long long #define setIO(s) freopen(s".in","r",stdin) using namespace std; int n,k,a[N],q[N]; ll s[N],f[N],g[N]; double slope(int i,int j) { if(s[i]==s[j]) re…