自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(47)
  • 收藏
  • 关注

原创 1150. 简单魔板

1150. 简单魔板ConstraintsTime Limit: 1 secs, Memory Limit: 32 MB , Special Judge Description魔板由8个大小相同方块组成,分别用涂上不同颜色,用1到8的数字表示。其初始状态是1 2 3 48 7 6 5对魔板可进行三种基本操作:A操作(上下行互换):8 7 6 51 2

2013-11-16 17:04:11 1150 1

原创 1190. Reduced ID Numbers

1190. Reduced ID NumbersConstraintsTime Limit: 2 secs, Memory Limit: 32 MB DescriptionT. Chur teaches various groups of students at university U. Every U-student has a unique Student Identif

2013-11-04 15:51:44 717

原创 1028. Hanoi Tower Sequence

1028. Hanoi Tower Sequence

2013-10-31 18:52:39 942

原创 1721. Gray code[Special judge]

1721. Gray code[Special judge]   Total:2124Accepted:638Rating:2.7/5.0(12 votes)

2013-03-30 01:41:39 1378

原创 1930. 排序

1930. 排序ConstraintsTime Limit: 1 secs, Memory Limit: 32 MB Description我们都知道,在排序算法中需要进行多次比较。若比较的两个数Ai, Aj(iAj的话,则称作有效比较。给定一个有N个互异元素的整数序列,请使用选择排序对序列进行排序,并输出其有效比较次数。这里假设使用的是标准的排序算法,并且从下标小到大

2013-03-28 22:56:12 848

原创 1052. Candy Sharing Game

1052. Candy Sharing GameConstraintsTime Limit: 1 secs, Memory Limit: 32 MB DescriptionA number of students sit in a circle facing their teacher in the center. Each student initially has an e

2013-03-28 22:00:36 754

原创 1194. Message Flood

1194. Message FloodConstraintsTime Limit: 1 secs, Memory Limit: 32 MB DescriptionWell, how do you feel about mobile phone? Your answer would probably be something like that “It’s so convenie

2013-03-28 17:56:04 755

原创 1608. Digit Counting

1608. Digit CountingConstraintsTime Limit: 1 secs, Memory Limit: 32 MB DescriptionTrung is bored with his mathematics homeworks. He takes a piece of chalk and starts writing a sequence of

2013-03-26 23:00:08 707

原创 2501. 算算式

2501. 算算式ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescription_gXX遇到一个麻烦的式子:S = n1 + n2 + n3 + ...... + nk,已知n、k,求S的值。因为_gXX数学很差,希望你能告诉他答案。但是由于他的数学实在太差了,所以你只需要告诉他S除以9901的余数即可。In

2013-03-25 14:49:48 954 1

原创 2503. 最长字符串

2503. 最长字符串ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescription要求你构造一个由字符’A’,’B’组成的字符串, 满足以下几个条件:1) A的个数2) B的个数3) 连续的A的个数不可以超过maxA.4) 连续的B的个数不可以超过maxB.   5) 这个字符串的长度最长.给你

2013-03-25 14:09:13 831

原创 1723. Reprogramming

1723. ReprogrammingTotal:1127Accepted:470Rating:1.6/5.0(8 votes)

2013-03-25 02:00:59 684

原创 4314. Coprime

4314. CoprimeConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescriptionIn number theory, a branch of mathematics, two integers a and b are said to be coprime or relatively prime if the onl

2013-03-25 01:34:48 712

原创 3912. 计算星期几

3912. 计算星期几ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescription2011年1月1日是星期六. 输入2011年的一个日期,计算这一天是星期几.Input输入的第一行是一个正整数T,表示总共有T组数据.每组数据包括两个正整数m和d,表示输入日期为m月d日. 输入的日期保证合法.Output

2013-03-25 01:24:56 756

原创 2388. What's next?

2388. What's next?ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescriptionAccording to Wikipedia, an arithmetic progression (AP) is a sequence of numbers such that the difference of any

2013-03-25 01:02:45 1073

原创 2312. output “Good!“

2312. output “Good!“ConstraintsTime Limit: 1 secs, Memory Limit: 0.29296875 MBDescriptionoutput "Good!"InputnothingOutput"Good!"Sample OutputGood!Hintif Pascal  140Kif C 28

2013-03-25 00:44:23 1238

原创 3498. 分解质因数

3498. 分解质因数ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescription对于输入的整数n,将其分解成若干个素数的乘积.Input第一行是一个整数T,表示总共有T组数据.接下来的T行,每行有一个整数n(2).Output对于每行的整数n,按从小到大的顺序输出素因子,每个素因子后面有一个空格.

2013-03-24 23:50:20 1018

原创 4186. Matrix Addition

4186. Matrix AdditionConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescriptionGiven two n*n matrices, A and B, compute the sum C=A+B.InputThere are multiples test cases. Each case is:

2013-03-24 03:10:14 814

原创 3836. 计算组合数

3836. 计算组合数ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescription从n个不同物品中选出m个的选法总数用组合数C(n, m)来表示. 已知n和m,求C(n, m)的值.Input输入包含多组测试数据.输入的每行是两个整数n和m(0).m和n都为0时表示输入结束.Output输出的每

2013-03-24 03:00:45 672

原创 3835. 计算三角形的周长

3835. 计算三角形的周长ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescription在平面直角坐标系中,给出三角形三个顶点的坐标,求三角形的周长.Input第一行是一个整数T,表示总共有T组数据.接下来的T行,每行有6个实数x1, y1, x2, y2, x3, y3,表示三角形三个顶点的坐标.Ou

2013-03-24 02:43:25 770

原创 3734. rawMo

3734. rawMoConstraintsTime Limit: 1 secs, Memory Limit: 256 MBInput22 1Output22给跪,希望后面看到这个题目的不要被坑。// Problem#: 3734// Submission#: 1984659// The source code is licensed under Cre

2013-03-24 02:35:52 701

原创 3725. 陶陶考试

3725. 陶陶考试ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescription 陶陶正在进行考试,他做题时习惯从最难的题目开始做起。试卷上每道题目的难度都用一个整数来表示,他需要从中找到最难的题目的难度。Input 有很多测试样例,每个测试样例用两行表示,第一行表示试卷上多少道题目(假设为n道)。下一行包含n

2013-03-24 02:27:09 710

原创 3718. 批改作业

3718. 批改作业ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescription Ta批改完作业后,需要统计每个人的得分。假设一个班级有n个人,每份作业有m道题目,TA每道题目单独给一个分数,一个人的最终分数是他所做的所有题目的平均分。程序要求输出每个人的最终分数,并输出作业中分数不及格(低于60分)的人数。Inp

2013-03-24 02:20:40 918

原创 3712. Matrix multiplication

3712. Matrix multiplicationConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescriptionGiven two n*n matrices, A and B, computes its matrices multiplication C=A∙B.InputThere are multiple

2013-03-24 02:05:24 672

原创 3499. 分数统计

3499. 分数统计ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescription某校举行歌手大赛. 大赛设m位评委,每位评委都会给参赛歌手打分,每个分数都在0~100的范围内. 统计分数的规则是去掉一个最高分和一个最低分,取剩下分数的平均值. 编写程序完成分数统计.Input第一行是一个整数T,表示总共有T组数

2013-03-24 01:49:53 686

原创 4427. Greatest Common Divisors

4427. Greatest Common DivisorsConstraintsTime Limit: 5 secs, Memory Limit: 256 MBDescriptionA common divisor for two positive numbers is a number which both numbers are divisible by. It's easy

2013-03-24 01:38:07 623

原创 3980. 二进制转十进制

3980. 二进制转十进制ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescription输入一个非负的二进制整数,将其转为十进制.Input输入的第一行是一个整数T,表示总共有T组数据.接下来的T行,每行是一组数据,每组数据是一个只包含字符0和1的字符串,代表待转换的二进制数,字符串的长度不大于31.Ou

2013-03-24 01:26:12 706

原创 4188. 进制转换

4188. 进制转换ConstraintsTime Limit: 1 secs, Memory Limit: 256 MB Description输入一个非负的十进制整数,将其转为二进制.Input输入的第一行是一个整数T,表示总共有T组数据.接下来的T行,每行是一组数据,每组数据是一个待转换的十进制整数n(0 Output对于每个十

2013-03-24 01:03:39 1132

原创 4312. A + B

4312. A + BConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescriptionInput two integers a and b, output reverse(a)+reverse(b). reverse(a) is a new number reverse from a. For example , reve

2013-03-23 23:36:39 630

原创 3496. 鸡兔同笼

3496. 鸡兔同笼ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescription一个笼中有x只鸡和y只兔(x和y可以为0). 它们总共有m个头和n只脚(0 Input有多组输入数据. 输入数据的每行是两个整数m和n. m和n都为0表示输入结束(不需要处理这一行).Output对于每组输入数据,输出x和y

2013-03-23 22:36:35 737

原创 2369. Nim-B Sum

2369. Nim-B SumConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescriptionNote: This problem has nothing to do with siting sewage plants, power lines or wind farms. NIM is an ambigram.

2013-03-23 21:57:26 1191

原创 2368. Penney Game

2368. Penney GameConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescriptionPenney's game is a simple game typically played by two players. One version of the game calls for each player t

2013-03-23 13:45:50 1390

原创 2075. 2.2 Computing the volume of a cylinder

2075. 2.2 Computing the volume of a cylinderConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescriptionWrite a program that reads in the radius and length of a cylinder and computes volume

2013-03-23 12:12:29 824

原创 2005. Lovely Number

2005. Lovely NumberConstraintsTime Limit: 1 secs, Memory Limit: 64 MBDescriptionEvery time after got a solution from kevin, ivan repeats again and again,"Are there any better ones?". It seems

2013-03-23 01:31:00 549

原创 2000. Toy Shopping

2000. Toy ShoppingConstraintsTime Limit: 1 secs, Memory Limit: 64 MBDescriptionBessie wants some toys. She's been saving her allowance for years, and has an incredibly huge stash. However, she

2013-03-22 18:32:32 821

原创 2001. Scavenger Hunt

2001. Scavenger HuntConstraintsTime Limit: 1 secs, Memory Limit: 64 MBDescriptionFarmer John has scattered treats for Bessie at special places in the pasture. Since everyone knows that smart c

2013-03-22 14:34:28 633

原创 1145. 校门外的树

1145. 校门外的树ConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescription某校大门外长度为L的马路上有一排树,每两棵相邻的树之间的间隔都是1米。我们可以把马路看成一个数轴,马路的一端在数轴0的位置,另一端在L的位置;数轴上的每个整数点,即0,1,2,……,L,都种有一棵树。由于马路上有一些区域要用来建地铁。这

2013-03-22 10:26:36 642

原创 1119. Factstone Benchmark

1119. Factstone BenchmarkConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionAmtel has announced that it will release a 128-bit computer chip by 2010, a 256-bit computer by 2020, and

2013-03-22 00:21:01 566

原创 1144. 陶陶摘苹果

1144. 陶陶摘苹果ConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescription陶陶家的院子里有一棵苹果树,每到秋天树上就会结出10个苹果。苹果成熟的时候,陶陶就会跑去摘苹果。陶陶有个30厘米高的板凳,当她不能直接用手摘到苹果的时候,就会踩到板凳上再试试。现在已知10个苹果到地面的高度,以及陶陶把手伸直的时候能够达

2013-03-21 22:32:53 741

原创 1147. 谁拿了最多奖学金

1147. 谁拿了最多奖学金ConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescription某校的惯例是在每学期的期末考试之后发放奖学金。发放的奖学金共有五种,获取的条件各自不同:  1)      院士奖学金,每人8000元,期末平均成绩高于80分(>80),并且在本学期内发表1篇或1篇以上论文的学生均可获得;

2013-03-21 22:30:01 659

原创 1293. 3n+1数链问题

1293. 3n+1数链问题ConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescription在计算机科学上,有很多类问题是无法解决的,我们称之为不可解决问题。然而,在很多情况我们并不知道哪一类问题可以解决,那一类问题不可解决。现在我们就有这样一个问题,问题如下: 1.       输入一个正整数n;2.

2013-03-21 22:27:45 940

空空如也

空空如也

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

TA关注的人

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