自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 资源 (2)
  • 收藏
  • 关注

原创 括号配对问题

#include#includeint main(){ int n,t,low,high,i; char a[10000],s[10000]; scanf("%d",&n); while(n--) { scanf("%s",a); t=strlen(a); low=0; high=0; for(i=0;i<t;i++) { switch(a[i])

2014-11-27 21:24:42 537

原创 开方数

描述 现在给你两个数 n 和 p ,让你求出 p 的开 n 次方。输入每组数据包含两个数n和p。当n和p都为0时表示输入结束。(1输出对于每个输出对用输出开方后的结果k(结果小于10^9)。样例输入2 163 277 43571861840213822045440 0样例输出431234#include#include int

2014-11-27 21:03:28 506

原创 A+B Problem II

描述 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.输入The first line of the input contains an integer T(1<=T<=20

2014-11-27 20:28:21 360

原创 大数阶乘

描述 我们都知道如何计算一个数的阶乘,可是,如果这个数很大呢,我们该如何去计算它并输出它?输入输入一个整数m(0输出输出m的阶乘,并在输出结束之后输入一个换行符样例输入50样例输出30414093201713378043612608166064768844377641568960512000000000000#includeusing n

2014-11-27 20:24:14 506

原创 Exponentiation

DescriptionProblems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many

2014-11-26 21:26:12 474

原创 If We Were a Child Again

DescriptionThe Problem The first project for the poor student was to make a calculator that can just perform the basic arithmetic operations. But like many other university students he d

2014-11-25 21:26:56 549

原创 Product(大数相乘)

DescriptionThe problem is to multiply two integers X, Y. (0InputThe input will consist of a set of pairs of lines. Each line in pair contains one multiplyer.OutputFor

2014-11-25 11:32:41 632 2

原创 Integer Inquiry(大数相加)

DescriptionOne of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explored taking various sums of those numbers.

2014-11-25 11:30:54 465

原创 去掉双斜杠注释

Description将C程序代码中的双斜杠注释去掉。Input输入数据中含有一些符合C++语法的代码行。需要说明的是,为了方便编程,规定双斜杠注释内容不含有双引号,源程序中没空行。Output输出不含有双斜杠注释的C++代码,除了注释代码之外,原语句行格式不变。Sample Input//==

2014-11-23 20:23:14 4977

原创 Immediate Decodability

DescriptionAn encoding of a set of symbols is said to be immediately decodable if no code for one symbol is the prefix of a code for another symbol. We will assume for this problem that all code

2014-11-23 20:11:32 574

原创 单词翻转

Description输入一个句子(一行),将句子中的每一个单词翻转后输出Input输入有多行,每行不超过500个字符。单词之间以空格、逗号、双引号、分号、句号隔开。Output翻转每一个单词后的字符串Sample Inputhello worldab cd efSample Outputolleh

2014-11-23 19:49:53 1014

原创 Keywords Search

Descriptionn the modern time, Search engine came into the life of everybody like Google, Baidu, etc. Wiskey also wants to bring this feature to his image retrieval system. Every image have a

2014-11-23 19:38:27 646

原创 A + B

Description读入两个小于10000的正整数A和B,计算A+B.需要注意的是:A和B的每一位数字由对应的英文单词给出.Input测试输入包含若干测试用例,每个测试用例占一行,格式为"A + B =",相邻两字符串有一个空格间隔.当A和B同时为0时输入结束,相应的结果不要输出.Output对每个测试用例输出1行,即A+

2014-11-23 19:03:33 461

原创 Andy's First Dictionary

DescriptionAndy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of words that he knows is, well, not quite enough. Instead of think

2014-11-20 21:45:26 733

原创 Problem B: Excuses, Excuses!

DescriptionJudge Ito is having a problem with people subpoenaed for jury duty giving rather lame excuses in order to avoid serving. In order to reduce the amount of time required listening to go

2014-11-20 21:41:03 567

原创 Problem A: Artificial Intelligence?

#include#includeint main(){ int n,t,i,k=1,x; double P,U,I,b; char a[1000]; scanf("%d",&n); getchar(); x=n; while(n--) { P=0; U=0; I=0; gets(a); t=strlen(a); for(i=0;i<t;i++)

2014-11-20 21:38:00 745

模仿Windows下画板的程序设计

模仿Windows下画板的程序设计,包含着大量的基本功能,如图形的各种实现以及一些图片变换的功能。。。十分有益于学习

2017-11-02

空空如也

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

TA关注的人

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