- 博客(26)
- 资源 (1)
- 收藏
- 关注
原创 Number Sequence
http://poj.org/problem?id=1019DescriptionA single positive integer i is given. Write a program to find the digit located in the positi
2011-09-27 17:58:23 505
原创 氢气球
描述 Ten mathematicians are flying on a balloon over the Pacific ocean. When they are crossing the equator they decide to celebrate this eve
2011-09-27 09:59:44 811
原创 树状数组&&Color the ball
http://acm.hdu.edu.cn/webcontest/contest_showproblem.php?pid=1003&ojid=0&cid=601&hide=0N个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a Input
2011-09-25 12:56:35 637
原创 扩展欧几里得&&青蛙的约会
http://acm.hdu.edu.cn/webcontest/contest_showproblem.php?cid=601&pid=1010&ojid=1两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它
2011-09-25 11:31:37 826
原创 欧拉函数的应用&&Relatives
http://acm.hdu.edu.cn/webcontest/contest_showproblem.php?cid=601&pid=1009&ojid=1Problem DescriptionGiven n, a positive integer, how ma
2011-09-24 09:33:08 602
原创 The 36th ACM/ICPC Asia Regional Dalian Site —— Online Contest &&Dave
Problem DescriptionRecently, Dave is boring, so he often walks around. He finds that some places are too crowded, for example, the ground.
2011-09-23 19:25:11 717
原创 The 36th ACM/ICPC Asia Regional Dalian Site —— Online Contest &&To Miss Our Children Time
http://acm.hdu.edu.cn/showproblem.php?pid=4001Problem DescriptionDo you remember our children time? When we are children, we are interes
2011-09-22 19:37:05 867
原创 c++&&map函数
c++ Map是STL的一个关联容器,它提供一对一(其中第一个可以称为关键字,每个关键字只能在map中出现一次,第二个可能称为该关键字的值)的数据处理能力,由于这个特性,它完成有可能在我们处理一对一数据的时候,在编程上提供快速通道。这里说下map内部数据的组织,map内
2011-09-22 18:15:40 470
原创 The 36th ACM/ICPC Asia Regional Dalian Site —— Online Contest &&The Frog's Games
http://acm.hdu.edu.cn/showproblem.php?pid=4004Problem DescriptionThe annual Games in frogs' kingdom started again. The most famous g
2011-09-22 18:01:10 531
原创 The 36th ACM/ICPC Asia Regional Dalian Site —— Online Contest &&The kth great number
http://acm.hdu.edu.cn/showproblem.php?pid=4006Problem DescriptionXiao Ming and Xiao Bao are playing a simple Numbers game. In a roun
2011-09-22 11:38:10 630
原创 确定比赛名次 &&杭电ACM集训队训练赛题
http://acm.hdu.edu.cn/showproblem.php?pid=1285Problem Description有N个比赛队(1Input输入有若干组,每组中的第一行为二个数N(1Output给出一个符合要求的排名
2011-09-22 10:56:41 782
原创 拓扑&&reward
http://acm.hdu.edu.cn/showproblem.php?pid=2647Problem DescriptionDandelion's uncle is a boss of a factory. As the spring festival is
2011-09-21 21:26:56 458
原创 The 36th ACM/ICPC Asia Regional Dalian Site —— Online Contest Find the maximum
http://acm.hdu.edu.cn/showproblem.php?pid=4002Problem DescriptionEuler's Totient function, φ (n) [sometimes called the phi function], is
2011-09-21 14:58:08 505
原创 亲和串
http://acm.hdu.edu.cn/showproblem.php?pid=2203Problem Description人随着岁数的增长是越大越聪明还是越大越笨,这是一个值得全世界科学家思考的问题,同样的问题Eddy也一直在思考,因为他在很小的时候就知道
2011-09-21 13:25:49 583
原创 某种序列
描述 数列A满足An = An-1 + An-2 + An-3, n >= 3 编写程序,给定A0, A1 和 A2, 计算A99 输入包含多行数据 每行数据包含3个整数A0, A1, A2 (0 数据以EOF结束 输出 对于输入的每一行输出A99的值 样
2011-09-21 11:23:42 520
原创 棋盘覆盖问题
描述 在一个2k×2k(1k×2k未被覆盖过的方格,求需要类似图2方格总的个数s。如k=1时,s=1;k=2时,s=5 输入第一行m表示有m组测试数据; 每一组测试数据的第一行有一个整数数k; 输出 输出所需个数s; 样例输入
2011-09-21 11:03:43 667
原创 大数相加
描述 I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.A,B must be positive.
2011-09-21 10:37:46 395
原创 大数阶乘
描述 我们都知道如何计算一个数的阶乘,可是,如果这个数很大呢,我们该如何去计算它并输出它? 输入 输入一个整数m(0输出 输出m的阶乘,并在输出结束之后输入一个换行符 样例输入 50样例输出 3041409320171337804361
2011-09-20 21:56:19 498
原创 比大小
描述 给你两个很大的数,你能不能判断出他们两个数的大小呢?比如123456789123456789要大于-123456输入 每组测试数据占一行,输入两个不超过1000位的10进制整数a,b数据保证输入的a,b没有前缀的0。如果输入0 0表示输入结束
2011-09-20 18:37:37 566
原创 高精度幂
描述 对数值很大、精度很高的数进行高精度计算是一类十分常见的问题。比如,对国债进行计算就是属于这类问题。 现在要你解决的问题是:对一个实数R( 0.0 输入 输入有多行,每行有两个数R和n,空格分开。R的数字位数不超过10位。 输出 对于每组输入,要求输出
2011-09-20 16:55:12 506
原创 c++学习。。。
c++: 一个思想:面向对象(opp)。二个概念:类和对象。三个特征:封装,继承,派生。继承:public,protect,privatepublic:派生类对象可以访问父类的公有有和保护部分不能访问私有。protect:派生类对象可以访问父类的公有和保护
2011-09-20 13:01:01 381
原创 线段树应用
I Hate ItTime Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10802 Accepted Submi
2011-09-20 10:59:59 493
原创 TwiceString
Problem Statement You are given a string s. Return the shortest string which contains s as a contiguous substring twice.Note
2011-09-15 13:20:56 418
原创 DFS Tempter of the Bone
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 26365 Accepted Submission(s): 7218P
2011-09-12 15:29:14 414
原创 用位运算解决进制转化问题
Same binary weight时间限制:300 ms | 内存限制:65535 KB难度:3描述The binary weight of a positive integer is the number of 1's in its bina
2011-09-12 14:43:40 399
原创 搜索
连连看:Problem Description“连连看”相信很多人都玩过。没玩过也没关系,下面我给大家介绍一下游戏规则:在一个棋盘中,放了很多的棋子。如果某两个相同的棋子,可以通过一条线连起来(这条线不能经过其它棋子),而且线的转折次数不超过两次,那么这两个棋子就可以
2011-09-10 14:17:01 347
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人