基础
文章平均质量分 71
殷华
跪着跪着就跪成大神了
展开
-
C++中基本数据类型字节数及取值范围
机器字长:是指计算机进行一次整数运算所能处理的二进制数据的位数(整数运算即定点整数运算)。机器字长也就是运算器进行定点数运算的字长,通常也是CPU内部数据通路的宽度。现在一般为32位即4个字节,也有64位和16位的。 算术类型的存储空间按照机器而定。一般,short类型为半个机器字长,int为一个机器字长,long为1或2个机器字长,float为一个机器字长,double为两个字,转载 2013-11-03 15:49:14 · 1067 阅读 · 1 评论 -
Codeforces Round #221 (Div. 2) A. Lever
A. Levertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have a description of a lever as string s. We'l原创 2013-12-25 00:10:01 · 725 阅读 · 0 评论 -
Codeforces Round #221 (Div. 2) B. I.O.U.
B. I.O.U.time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputImagine that there is a group of three friends: A,原创 2013-12-25 00:28:40 · 910 阅读 · 0 评论 -
Codeforces Round #224 (Div. 2) A - Ksenia and Pan Scales
A. Ksenia and Pan Scalestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputKsenia has ordinary pan scales and原创 2014-01-18 13:26:45 · 663 阅读 · 0 评论 -
编程挑战赛之 二十进制数的加法
上面是题目要求以及界面题目并不难,一般多调试几遍都可以做出来算是对我C++能力的入门级检测吧自己做的几个测试案例都可以过提交上去不行,可能是代码格式不对实在不理解calcute("Test","Test")和return"Test"是什么意思百度了代码格式也没有搜到下午在认真找一下吧比较恶心的事题目只能提交一次。。。贴上我的代码:#i原创 2014-01-23 11:52:38 · 706 阅读 · 0 评论 -
Codeforces Round #226 (Div. 2) A. Bear and Raspberry
A. Bear and Raspberrytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe bear decided to store some raspber原创 2014-01-25 01:35:59 · 823 阅读 · 0 评论 -
Codeforces Round #226 (Div. 2) C. Bear and Prime Numbers
C. Bear and Prime Numberstime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputRecently, the bear started studyi原创 2014-01-25 01:56:31 · 1181 阅读 · 0 评论 -
Codeforces Round #226 (Div. 2) B. Bear and Strings
B. Bear and Stringstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe bear has a string s = s1s2... s|s| (原创 2014-01-25 01:46:07 · 1014 阅读 · 0 评论 -
Codeforces Round #225 (Div. 2) A.Coder
A. Codertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIahub likes chess very much. He even invented a new原创 2014-01-21 01:35:22 · 755 阅读 · 0 评论 -
Codeforces Round #225 (Div. 2) B. Multitasking
B. Multitaskingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIahub wants to enhance his multitasking abil原创 2014-01-21 10:39:24 · 858 阅读 · 2 评论 -
Codeforces Round #225 (Div. 2) C. Milking cows
C. Milking cowstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIahub helps his grandfather at the farm. Tod原创 2014-01-21 10:25:16 · 989 阅读 · 0 评论 -
Codeforces Round #228 (Div. 2) B. Fox and Cross
B. Fox and Crosstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFox Ciel has a board with n rows and n colu原创 2014-02-04 01:32:46 · 787 阅读 · 0 评论 -
Codeforces Round #228 (Div. 2) A. Fox and Number Game
A. Fox and Number Gametime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFox Ciel is playing a game with numbe原创 2014-02-04 01:29:06 · 929 阅读 · 0 评论 -
(国外大学作业解答)Java assignment1
第一节Java语言课从老师那里拷来的国外大学07年Java作业,虽然是07年的,但感觉真心水平很高而且很有益于培养初学者的兴趣,这点不得不佩服外国人,文档、代码注释虽然都是英文但都是很基础的英文,只要愿意认真思考并且有C语言基础,相信大多数人都可以做出来的,下面言归正传:为了做这份作业,早上七起床,八点左右开始做,到中午十一点多做到第七题,之后便困在第七题那里4个多小时,晚上终于算是勉原创 2014-02-20 20:28:20 · 1488 阅读 · 0 评论 -
Codeforces Round #229 (Div. 2) A. Inna and Alarm Clock
A. Inna and Alarm Clocktime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputInna loves sleeping very much, so sh原创 2014-02-12 13:21:55 · 624 阅读 · 0 评论 -
Codeforces Round #229 (Div. 2) B. Inna, Dima and Song
B. Inna, Dima and Songtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputInna is a great piano player and Dima原创 2014-02-12 13:29:35 · 882 阅读 · 0 评论 -
Codeforces Round #229 (Div. 2) C. Inna and Candy Boxes
C. Inna and Candy Boxestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputInna loves sweets very much. She has原创 2014-02-12 14:11:00 · 744 阅读 · 0 评论 -
Codeforces Round #233 (Div. 2) B. Red and Blue Balls
B. Red and Blue Ballstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputUser ainta has a stack of n red and bl原创 2014-03-02 01:43:26 · 1438 阅读 · 0 评论 -
Codeforces Round #233 (Div. 2) A. Pages
A. Pagestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputUser ainta is making a web site. This time he is go原创 2014-03-02 01:40:02 · 644 阅读 · 0 评论 -
Codeforces Round #235 (Div. 2)B. Sereja and Contests
B. Sereja and Conteststime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSereja is a coder and he likes to tak原创 2014-03-11 01:33:17 · 1038 阅读 · 0 评论 -
Codeforces Round #235 (Div. 2) A. Vanya and Cards
A. Vanya and Cardstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVanya loves playing. He even has a specia原创 2014-03-11 01:26:49 · 760 阅读 · 0 评论 -
Codeforces Round #235 (Div. 2)C. Team
C. Teamtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputNow it's time of Olympiads. Vanya and Egor decided t原创 2014-03-11 21:45:51 · 554 阅读 · 0 评论 -
UVa 401 - Palindromes
Palindromes A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when the原创 2014-03-13 22:27:07 · 394 阅读 · 0 评论 -
UVa 10300 - Ecological Premium
Problem AEcological PremiumInput: standard inputOutput: standard outputTime Limit: 1 secondMemory Limit: 32 MBGerman farmers are given a premium depending on the conditions at their farmya原创 2014-03-13 21:36:31 · 408 阅读 · 0 评论 -
UVa 10010 - Where's Waldorf?
Where's Waldorf? Given a m by n grid of letters, ( ), and a list of words, find the location in the grid at which the word can be found. A word matches a straight, uninterrupted line o原创 2014-03-14 19:19:25 · 507 阅读 · 0 评论 -
UVa 10361 - Automatic Poetry
Problem IAutomatic PoetryInput: standard inputOutput: standard outputTime Limit: 2 secondsMemory Limit: 32 MB “Oh God”, Lara Croft exclaims, “it’s one of these dumb riddles again!”原创 2014-03-14 20:24:53 · 425 阅读 · 0 评论 -
UVa 537 - Artificial Intelligence?
Artificial Intelligence? Physics teachers in high school often think that problems given as text are more demanding than pure computations. After all, the pupils have to read and understan原创 2014-03-15 09:19:09 · 743 阅读 · 0 评论 -
UVa 644 - Immediate Decodability
Immediate Decodability An 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 pro原创 2014-03-16 08:58:30 · 478 阅读 · 0 评论 -
UVa 10878 - Decode the tape
Problem ADecode the tapeTime Limit: 1 second"Machines take me by surprise with great frequency."Alan TuringYour boss has just unearthed a roll of old computer tapes. The tape原创 2014-03-15 12:30:07 · 408 阅读 · 0 评论 -
UVa 424 - Integer Inquiry
Integer Inquiry One 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 tho原创 2014-03-16 20:46:40 · 746 阅读 · 0 评论 -
UVa 409 - Excuses, Excuses!
Excuses, Excuses! Judge 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 li原创 2014-03-15 11:39:51 · 541 阅读 · 0 评论 -
UVa 10115 - Automatic Editing
Problem E: Automatic EditingSource file:autoedit.{c, cpp, java, pas}Input file:autoedit.inOutput file:autoedit.outText-processing tools like awk and sed allow you原创 2014-03-16 09:01:01 · 466 阅读 · 0 评论 -
Codeforces Round #236 (Div. 2) A. Nuts
A. Nutstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have a nuts and lots of boxes. The boxes have a原创 2014-03-17 01:22:11 · 686 阅读 · 0 评论 -
Codeforces Round #236 (Div. 2)C. Searching for Graph
C. Searching for Graphtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet's call an undirected graph of n v原创 2014-03-18 09:31:13 · 813 阅读 · 0 评论 -
Codeforces Round #236 (Div. 2) B. Trees in a Row
B. Trees in a Rowtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Queen of England has n trees growing i原创 2014-03-17 01:26:20 · 886 阅读 · 0 评论 -
UVA 113 Power of Cryptography
Power of Cryptography BackgroundCurrent work in cryptography involves (among other things) large prime numbers and computing powers of numbers modulo functions of these primes. W原创 2013-11-03 19:53:17 · 733 阅读 · 0 评论 -
UVA 621 Secret Research
Secret Research At a certain laboratory results of secret research are thoroughly encrypted. A result of a single experiment is stored as an information of its completion:`posi原创 2013-11-03 19:56:10 · 557 阅读 · 0 评论 -
UVA 573 The Snail
The Snail A snail is at the bottom of a 6-foot well and wants to climb to the top. The snail can climb 3 feet while the sun is up, but slides down 1 foot at night while sleeping. The sna原创 2013-11-05 20:18:50 · 390 阅读 · 0 评论 -
UVA 10499 The Land of Justice
Problem HThe Land of JusticeInput: standard inputOutput: standard outputTime Limit: 4 secondsIn the Land of Justice the selling price of everything is fixed all over the country. Nobody原创 2013-11-05 20:40:07 · 584 阅读 · 0 评论 -
UVa 10790 How Many Points of Intersection?
How Many Points of Intersection? We have two rows. There are a dots on the top row and b dots on the bottom row. We draw line segments connecting every dot on the top row with every dot原创 2013-11-06 18:15:54 · 560 阅读 · 0 评论