摘要: 真蛋疼,简简单单的一个水题WA了3次,给正方形的相对的两个点坐标,求另两个点坐标,主要是没想清楚,以为fabs就行,fabs求的可能是与所求点轴对称的点。。。#include <iostream>#include <cstdio>#include <cmath>using namespace std;double xx1, xx2, yy1, yy2, xx, yy;int main(){ while(scanf("%lf%lf%lf%lf", &xx1, &yy1, &xx2, &yy2)!=EOF) { 阅读全文
posted @ 2011-05-12 20:21 KOKO's 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 刘汝佳分类第一题,用map处理的刚看了看别人怎么处理的,发现了一种映不错的射方法:char m[40] = "A###3##HIL#JM#O###2TUVWXY5#1SE#Z##8#";大概就这样401 1 #include <iostream> 2 #include <map> 3 #include <cstdio> 4 #include <cstring> 5 #include <string> 6 #include <cmath> 7 using namespace std; 8 9 char s 阅读全文
posted @ 2011-05-12 00:05 KOKO's 阅读(179) 评论(0) 推荐(0) 编辑