摘要: 三角形面积时间限制:3000 ms | 内存限制:65535 KB难度:2描述 给你三个点,表示一个三角形的三个顶点,现你的任务是求出该三角形的面积输入每行是一组测试数据,有6个整数x1,y1,x2,y2,x3,y3分别表示三个点的横纵坐标。(坐标值都在0到10000之间) 输入0 0 0 0 0 ... 阅读全文
posted @ 2015-12-19 20:38 tt香薷 阅读(120) 评论(0) 推荐(0)
摘要: 输入不受限制用欧几里得的辗转相除求最大公约数加公倍数。#include#includeusing namespace std;void yue(int a,int b){ int temp=b; while(temp>0) { temp=a%b; a=b... 阅读全文
posted @ 2015-12-19 19:57 tt香薷 阅读(222) 评论(0) 推荐(0)