- 博客(8)
- 资源 (12)
- 收藏
- 关注
原创 hdu-2205(没做出来,意思理解错了)
<br />#include "stdio.h"#include "string.h"#include "algorithm"int main(){ int k1, k2, len1,len2, i, j,a[27],sum,make; char str1[100002], str2[100002]; while(scanf("%s %s",str1,str2)!=EOF) { k1=k2=0;sum=0;make=0; for(i=0;i<26;i++)
2011-05-31 22:10:00 764
原创 hdu--2203--亲和数(循环a串使包含b串)
<br />#include "stdio.h"#include "string.h"int main(){ int k, len1,len2, i, j, km1,km2; char str1[100002], str2[100002]; while(scanf("%s %s",str1,str2)!=EOF) { k=0; len1=strlen(str1); len2=strlen(str2); if(len1<len2) printf("no/n"
2011-05-31 20:40:00 498
原创 hdu2076--时钟夹角
<br />#include "stdio.h"#include "math.h"int main(){ int h, m, s; int n,th0; double th; scanf("%d",&n); while (n--) { scanf("%d %d %d",&h,&m,&s); th = fabs( (6*m+ (double)s/10)-( (double)(60*m+s)/120+30*(h%12) ) ); if(th>180)
2011-05-31 19:39:00 648
原创 hdu--2080 求角度
<br />#include "stdio.h"#include "math.h"int main(){ double x1,x2,y1,y2,recos,angle1,angle2,cos0,th; int n; scanf("%d/n",&n); while (n--) { scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2); angle1 = x1*x1+y1*y1+x2*x2+y2*y2-((x1-x2)*(x1-x2)+(y
2011-05-31 16:10:00 580
原创 php--简单投票系统
<br />myVote.php<br /><html><head> <title>在线投票系统</title> </head><body><h4 align="center">你最喜欢哪个网站:<form method="post" action="myResultSave.php"><input type="radio" name="chose" value="1">1.校内</br><input type="radio" name="chose" value="2">2.腾讯<
2011-05-25 17:32:00 1578
原创 php--画图
<br /><?phpHeader("Content-Type: image/gif");$im = ImageCreate(230, 200);$red = ImageColorAllocate($im, 255, 0, 0);$black = ImageColorAllocate($im, 0, 0, 0);$green = ImageColorAllocate($im, 0, 255, 0);$white = ImageColorAllocate($im, 255, 255
2011-05-24 17:45:00 475
原创 时间书签--php
<br /><html><head> <title>时间书签 </title></head><body> <H4 align=right> <font size=3 color="blue"> <?php date_default_timezone_set('Aisa/Shanghai'); echo date("l y-m-d h:i:s"); ?></font></H4> <H3 > <font size=4 color="red"> 随着
2011-05-24 15:01:00 624
原创 杨辉三角形
<br /><html><head><title>杨辉三角形</title></head><body><p align=center>输出给定阶数的杨辉三角形:</p><form method="post" action="<?php echo $PHP_SELF; ?>">输入杨辉三角形的阶数 : <input type=text name="givenlines" size=5><input type="Submit" name="submit" value="打印杨辉三
2011-05-24 00:29:00 644
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人