自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (1)
  • 收藏
  • 关注

原创 Moving Tables

唉,因为对P的定义没搞清楚,导致一直wa....以为在后面有一个将面对面的房间号变换统一,P可能会到达201,只定义200个是不够的。。。。还好找出来了,一个半小时啊,差点儿就要放弃了。。这题我的思路就是将每个房间都进行标记,每次路过那个房间都记一次数,这样最后计数最大的那个房间所记的数就可以标记我们所用时间的长短了。在这次AC中,我最大的收获是学会使用了两个函数。

2013-12-12 15:20:55 683

原创 Fibonacci数列的计算和转换

#include#define N 30int i=0;int a[N];int fun(int first, int second, int num){ int temp; a[i] = first; a[i+1] = second; while(num --) { ++i; a[i+1] = a[i-1] +

2013-12-08 21:27:01 553

原创 字符串反向输出

#include#include#define N 100int main(){ char a[N], b[N]; int len, i = 0; scanf("%s", a); len = strlen(a); b[len] = '\0'; while(len--) { b[i] = a[len];

2013-12-08 21:24:16 464

原创 Vowel Counting

搞清楚元音字母有:a e i o u 即可。#include#includeint main(){ char a[50]; int N; int len, i; while(scanf("%d", &N)!=EOF) { while(N--) { scanf("%s", a);

2013-12-07 13:53:58 426

原创 Identity Card

感觉直接字符匹配就可以了。#include#includechar area(char a, char b){ char c; switch(a) { case '3': if(b == '3') c = 'Z'; if(b == '1') c = 'S'; br

2013-12-07 13:36:00 8643

原创 decimal system

这一题的重点有2个, 一个是将字符转化为int, 其次是将数字串计算为十进制数。下面是实现的代码。#include#include#define N 1000int main(){ char a[N]; //存储输入的字符串 int n[N]; int m, i, j, b, form; long sum; while(scanf("

2013-12-07 12:52:40 397

原创 Higher Math

求个最大边,然后根据直角三角形两边平方和等于第三边的平方,即可确定这是个直角三角形。#includeint main(){ int a,b,c,temp,N; int i=1; while(scanf("%d", &N)!=EOF) { while(N--) { scanf("%d %d %d"

2013-12-06 20:53:33 405

原创 The Seven Percent Solution

想复杂了。。。 #include #include #define M 80 int main() { char a[M]; int i; while(gets(a)) { if(a[0] == '#') break; for(i=0;(

2013-12-06 16:51:54 685

原创 Rightmost Digit

#includeint fun(a){ int c, n; c = a%10; switch(c) { case 0: case 1: case 5: case 6: case 9: n = c; break; case

2013-12-05 11:36:26 445

原创 An Easy Task

#includeint main(){ int Y, N, M; scanf("%d", &M); while(M--) { scanf("%d %d", &Y, &N); if(N10000) break; if(!((Y%4 == 0)&&(Y%100 != 0) || (Y%400 == 0)))

2013-12-04 17:01:14 376

原创 Box of Bricks

#includeint main(){ int M, num, m, j=1; int a[51]; int i, avg; while((scanf("%d", &M)!= EOF) && M) { num = 0; m = 0; for(i=0; i<M; i++){ scanf("%d", &a[i]); m += a[i]; } avg = m/M; for(i=0; i avg) num

2013-12-04 15:07:26 390

原创 诗后杂谈

阅尽天涯离别苦,不道归来,零落花如许。花底相看无一语,绿窗春与天俱莫。 待把相思灯下诉,一缕新欢,旧恨千千缕。最是人间留不住,朱颜辞镜花辞树。— —《蝶恋花》王国维    人间悲苦    离别苦    相逢亦苦    光阴荡去容颜    一分重逢难敌十分久别    行至天涯    看尽万般风情    重归故地    故人已飘零如落花随水

2013-07-15 23:47:07 328

原创 poj.org pro 1003 hangover

/*poj.org pro 1003author: bubbledate: 2013-7-15*/#includeint main(){double sum;int n;double len;while(scanf("%lf",&sum)!=EOF&&sum!=0.00){   n=1;        len=0.00;        do{

2013-07-15 19:38:20 396

原创 poj.org Pro 1004

/* poj.org problem 1004 finacial managementauthor: bubbledate: 2013-7-15*/#includeint main(){    float a[12],m=0.0,n=0.0;    int i;    for(i=0;i        scanf("%f",&a[i]);        n=

2013-07-15 11:04:07 435

计算机密码学

密码学,第三版,卢开澄。 清华出版社。信息安全专业参考书。

2012-11-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除