Chinaunix首页 | 论坛 | 博客
  • 博客访问: 143436
  • 博文数量: 48
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 135
  • 用 户 组: 普通用户
  • 注册时间: 2012-08-18 14:46
个人简介

多多学习,多多交流

文章分类
文章存档

2016年(1)

2015年(23)

2014年(24)

我的朋友

发布时间:2015-02-07 16:51:47

本题要注意的是:实际显示的是Pi+1的斐波那契值,所以二维行数需要在1000的基础上再加1,本质上是大数相加,源代码如下:/* *  hdoj for 1715 * */#include <stdio.h>#include <string.h>#define VALUE_SIZE  1000void reveValue(char *value){    int strLen = strlen(value).........【阅读全文】

阅读(449) | 评论(0) | 转发(0)

发布时间:2014-09-28 14:08:28

这道题目注意两点:1.0的时候需要输出2.输出的格式只需要每一块有一个换行,当然,最后一个值之后就不需要换行了题目地址为:http://acm.hdu.edu.cn/showproblem.php?pid=1047/* * acm for 1047 * * */#include <stdio.h>#include <string.h>#define MAXLEN  100/* * reversi.........【阅读全文】

阅读(581) | 评论(0) | 转发(0)

发布时间:2014-07-02 15:13:29

还是大数相加,这题稍微复杂点,代码如下:#include <stdio.h>#include <string.h>#define NUM 400int main(int argc,char *argv[]){    char A[NUM],B[NUM],temp[NUM + 1],tempA[NUM],tempB[NUM];    char *locPoint_A = NULL;    char *locPoint_B = NULL;    in.........【阅读全文】

阅读(417) | 评论(0) | 转发(0)

发布时间:2014-05-16 18:09:58

    打算做一点算法专题训练,先从大数处理开始,HDOJ 1042的求N!,N的范围为0到10000,源代码如下:    #include #include #define MAX_NUM 50000int main(int argc,char *argv[]){    int i,j,N,cnt = 1,plus_one_flag,num;  &.........【阅读全文】

阅读(632) | 评论(0) | 转发(0)

发布时间:2014-04-19 21:40:14

    hdoj 1013的题目,当初选这道题是因为把它分到了简单题目这一类,不过还是提交了三次才正确,囧。。。,需要注意的是这个题目的整数可能会很大,所以先得用字符串处理,题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1013    源代码如下:    #include ......【阅读全文】

阅读(422) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册