UVaOj
文章平均质量分 74
驭气乘风
技术宅
展开
-
UVaOJ 143 Orchard Trees
题目大意:果园里的树排列成矩阵,它们的x和y坐标均是1~99的整数。输入若干三角形,依次统计每一个三角形内部和边界上共有多少棵树。这个题目似乎与高中的解析几何几何有关系,但是若把它当做解析几何来做,就会在无形中增加题目的难度。换个思路,假设三角形ABC,若一个点O在三角形ABC中,则必有S-ABC=S-OAB+S-OAC+S-OBC,变成面积关系即可。 1 #include 2原创 2013-09-21 11:34:47 · 548 阅读 · 0 评论 -
UVaOJ 490 Rotating Sentences
In ``Rotating Sentences,'' you are asked to rotate a series of input sentences 90 degrees clockwise. So instead of displaying the input sentences from left to right and top to bottom, your program wil原创 2013-09-21 13:36:32 · 578 阅读 · 0 评论 -
UVaOJ
#include #include #include using namespace std;struct node{ int r,c;}matrix[200];char s[1000];int main(){ int n,i,sum; char ch; scanf("%d",&n); node temp,temp2; bo原创 2013-10-11 22:04:44 · 1216 阅读 · 0 评论