章鱼鱼的ACM
码龄12年
关注
提问 私信
  • 博客:59,065
    59,065
    总访问量
  • 120
    原创
  • 2,319,745
    排名
  • 9
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:湖北省
  • 加入CSDN时间: 2013-05-10
博客简介:

章鱼鱼的ACM之路

查看详细资料
个人成就
  • 获得6次点赞
  • 内容获得6次评论
  • 获得15次收藏
  • 博客总排名2,319,745名
创作历程
  • 4篇
    2018年
  • 117篇
    2014年
成就勋章
创作活动更多

王者杯·14天创作挑战营·第2期

这是一个以写作博客为目的的创作活动,旨在鼓励码龄大于4年的博主们挖掘自己的创作潜能,展现自己的写作才华。如果你是一位热爱写作的、想要展现自己创作才华的小伙伴,那么,快来参加吧!我们一起发掘写作的魅力,书写出属于我们的故事。 注: 1、参赛者可以进入活动群进行交流、分享创作心得,互相鼓励与支持(开卷),答疑及活动群请见https://bbs.csdn.net/topics/619735097 2、文章质量分查询:https://www.csdn.net/qc 我们诚挚邀请你们参加为期14天的创作挑战赛!

62人参与 去参加
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

Number Sequence

Problem Description A number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are to calculate the value of f(n). Input The input co...
原创
发布博客 2018.04.02 ·
382 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Max Sum

Problem Description Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequence is 6 + (-1) + 5 + ...
原创
发布博客 2018.04.02 ·
218 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Let the Balloon Rise

Problem Description Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. When the contest is...
原创
发布博客 2018.03.29 ·
284 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

A + B Problem II

重新从简单的练手Problem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. Input The first line of the input contains an integer T(1<=T...
原创
发布博客 2018.03.29 ·
193 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

网页开发Myeclipse+MySQL流程

1、  数据库设计建立crud.student数据库表:图1 数据库表你可以使用如下语句创建该库表: [sql] view plaincopycreate database if not exists `crud`;  USE `crud`;  DROP TABLE IF EXISTS `student`;  CREATE TABLE `studen
原创
发布博客 2014.12.04 ·
720 阅读 ·
0 点赞 ·
0 评论 ·
3 收藏

拓扑排序 2892. Task

Peter is very interested in Artificial Intelligence. His teacher leaves him several problems. Since he is not very familiar with the subject, he will read some necessary information to complete the ta
原创
发布博客 2014.09.10 ·
503 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

4043. Magic Pen 6

In HIT, many people have a magic pen. Lilu0355 has a magic pen, darkgt has a magic pen, discover has a magic pen. Recently, Timer also got a magic pen from seniors.At the end of this term, teacher
原创
发布博客 2014.09.09 ·
376 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1022. Packets

A factory produces products packed in square packets of the same height h and of the sizes 1x1, 2x2, 3x3, 4x4, 5x5, 6x6. These products are always delivered to customers in the square parcels of the s
原创
发布博客 2014.09.08 ·
417 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1908. Automatic Editing

Text-processing tools like awk and sed allow you to automatically perform a sequence of editing operations based on a script. For this problem we consider the specific case in which we want to perform
原创
发布博客 2014.09.08 ·
430 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

2647. Printer Queue

The only printer in the computer science students' union is experiencing an extremely heavy workload. Sometimes there are a hundred jobs in the printer queue and you may have to wait for hours to ge
原创
发布博客 2014.09.08 ·
524 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

4003. I-number

The I-number of x is defined to be an integer y, which satisfied the the conditions below:1. y>x;2. the sum of each digit of y(under base 10) is the multiple of 10;3. among all integers that sat
原创
发布博客 2014.09.07 ·
322 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

3856. Rob

10 years ago, the students in Ant's primary school were often robbed by a bad guy on their way back home after school. Ant was so worried about this and he always tried to go back home as quickly as h
原创
发布博客 2014.09.07 ·
353 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

3823. Divisible Subsquences

题目大意:给定一个数和一个序列  计算这个序列中有多少个子序列的和是这个数的倍数。思路:a[i]+a[i+1]+..+a[j] = s[j]-s[i],如果要和是其倍数, 则表示s[j]-s[i]能够整除那个数,只要s[j]和s[i]对那个数的余数相同就可以了啊,所以,将各个和按余数分堆!! 每个堆选择两个出来,即(n*n-1)/2;ps: 余数分堆很常用!!  序列为两个相减也很常用!!
原创
发布博客 2014.09.07 ·
411 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

2547. Subsequence

终于知道错哪儿了。。。。刚开始用for循环,
原创
发布博客 2014.09.01 ·
316 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1525. One Person "The Price is Right"

题目大意:每个人允许猜 G 次,有 L 生命线。猜低或猜高了,耗费一次猜得机会,猜高了,还             会浪费一生命线。   先从搜索考虑。设f(g,l)表示有g次机会,l条生命线时可以猜到的最大价格范围。      那么,f(g,l)应该由三段范围组成:猜低了,用剩下的机会还能猜出f(g-1,l)范围的价格;     猜得正好,可以猜出1个
原创
发布博客 2014.09.01 ·
672 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

1909. Robot Motion

A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The possible instructions areN north (up the pag
原创
发布博客 2014.09.01 ·
350 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

2219. A famous math puzzle

¡题目描述:¡有n个壶,和无穷多的水.每次我们只能:¡1.把其中一个壶灌满.¡2.把其中一个壶倒空.¡3.把一个壶中的水倒入另一个壶中,直到一个壶为空或者另一个壶已经满了为止.¡给定一个体积W,问能否经过若干次倒水后使得最终有一个壶中只剩下W升水?如果能,输出”YES”,否则输出”NO”
原创
发布博客 2014.09.01 ·
374 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1105. Word Index

Encoding schemes are often used in situations requiring encryption or information storage/transmission economy. Here, we develop a simple encoding scheme that encodes particular types of words with fi
原创
发布博客 2014.08.31 ·
501 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

2908. Annoying painting tool

水题题目 Maybe you wonder what an annoying painting tool is? First of all, the painting tool we speak of supports only black and white. Therefore, a picture consists of a rectangular area of pixel
原创
发布博客 2014.08.31 ·
428 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

dijstra算法 2870. The K-th City

这题的题意为求
原创
发布博客 2014.08.30 ·
597 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多