自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 JOJ 1240 The Decoder

Write a complete program that will correctly decode a set of characters into a valid message. Your program should read a given file of a simple coded set of characters and print the exact message that

2011-10-26 18:47:04 434

原创 HDU 1028 Ignatius and the Princess III

Problem Description "Well, it seems the first problem is too easy. I will let you know how foolish you are later." feng5166 says. "The second problem is, given an positive integer N, we define an eq

2011-10-26 18:42:47 399

原创 HDU 1360 Spell checker

Problem Description The boss of a firm that you are employed with is dissatisfied with the text processor Word. He wants you to write a bet

2011-10-18 18:24:38 534

原创 HDU 1124 Factorial

Problem Description The most important part of a GSM network is so called Base Transceiver Station (BTS). These transceivers form the areas

2011-10-16 18:59:06 279

原创 辗转相除法求 最大公约数和最小公倍数

#include int main() {   int m,n,r,p,gcd,lcm;   scanf("%d%d",&m,&n);   if(m   p=m*n;   r=m%n;   while(r!=0)   {     m=n;     n=r;

2011-10-13 19:24:00 519

原创 HDU 1017 A Mathematical Curiosity

Problem Description Given two integers n and m, count the number of pairs of integers (a,b) such that 0 This problem contains multiple te

2011-10-13 19:22:39 385

原创 HDU 1236 排名

Problem Description 今天的上机考试虽然有实时的Ranklist,但上面的排名只是根据完成的题数排序,没有考虑 每题的分值,所以并不是最后的排名。给定录取分数线,请你写程序找出最后通过分数线的 考生,并将他们的成绩按降序打印。   Input

2011-10-13 19:03:06 299

原创 杨辉三角

杨辉三角  1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 每组测试实例的输入只含一个正整数n(1 对应每个输入,输出相应层数的杨辉三角,每层整数间用一个空格隔开。   #include using namespac

2011-10-13 19:00:08 273

原创 计算A^B的最后x位数

输入3个整数A,B和x,其中,0 输出A^B结果的最后x位表示的整数 #include #include using namespace std; int main() {  long long a,b,x,add=1,i,l;      //  VC++6

2011-10-13 18:58:59 695

原创 HDU 1013 Digital Roots

Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a singl

2011-10-13 18:54:08 242

原创 HDU 1332 LC-Display

Problem Description A friend of you has just bought a new computer. Until now, the most powerful computer he ever used has been a pocket ca

2011-10-12 21:04:21 796

原创 JOJ 2580 Welcome to JL2009

Answer #include #include using namespace std; int main() {  int n,w,h,i,j,len;  string str;  bool f=0;   while (cin>>n)  {

2011-10-12 19:52:38 322

原创 HDU 1406 完数

Problem Description 完数的定义:如果一个大于1的正整数的所有因子之和等于它的本身,则称这个数是完数,比如6,28都是完数:6=1+2+3;28=1+2+4+7+14。 本题的任务是判断两个正整数之间完数的个数。   Input 输入数据包含多行,第一

2011-10-12 19:08:31 350

原创 HDU 1035 Robot Motion

Problem Description A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is

2011-10-11 21:55:45 322

原创 HDU 1019 Least Common Multiple

Problem Description   The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by

2011-10-10 18:14:47 317

原创 HDU 1048 The Hardest Problem Ever

Problem Description Julius Caesar lived in a time of danger and intrigue. The hardest situation Caesar ever faced was keeping himself ali

2011-10-10 18:05:03 774

原创 HDU 2106 decimal system

Problem Description As we know , we always use the decimal system in our common life, even using the computer. If we want to calculate the

2011-09-18 21:01:29 434

原创 HDU 1061 Rightmost Digit

Problem Description Given a positive integer N, you should output the most right digit of N^N.   Input The input contains several test c

2011-09-18 12:36:54 282

原创 HDU 2095 find your present (2)

Problem Description In the new year party, everybody will get a "special present".Now it's your turn to get your special present, a lot of

2011-09-18 12:01:59 553

原创 HDU 2104 hide handkerchief

Problem Description The Children’s Day has passed for some days .Has you remembered something happened at your childhood? I remembered I of

2011-09-18 10:41:47 1138 2

原创 HDU 1064 Financial Management

Problem Description Larry graduated this year and finally has a job. He’s making a lot of money, but somehow never seems to have enough. La

2011-09-18 10:14:00 352

原创 HDU 1326 Box of Bricks

Problem Description Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different hei

2011-09-15 20:47:56 759

原创 HDU 1170 Balloon Comes!

Problem Description The contest starts now! How excited it is to see balloons floating around. You, one of the best programmers in HDU, can

2011-09-15 19:21:01 380

原创 HDU 1197 Specialized Four-Digit Numbers

Problem Description Find and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals

2011-09-15 18:54:56 1069

原创 HDU 1196 Lowest Bit

Problem Description Given an positive integer A (1 For example, given A = 26, we can write A in binary form as 11010, so the lowest bit o

2011-09-15 18:51:42 688

空空如也

空空如也

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

TA关注的人

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