知行合一

BUILD YOUR WORLD

uva_213_Message Deocding

刘汝佳的解法思路: 定义一个8行258(1<<8)列的全局整形数组,用于存放原始的密码。 方法:编写一个函数,用getchar()将读到字符以整形的形式储存到数组中 然后编写一个函数读长度,根据这个输出数组中的值代码:#include <stdio.h> #inclu...

2015-03-15 17:01:26

阅读数:210

评论数:0

uva_133_The Dole Queue

思路:记录下总的人数,每次走人时都减去,作为大循环的条件,当总人数为0的时候跳出循环;大循环内套两个循环,一个顺时针走,一个逆时针最后输出即可 代码:#include <stdio.h> #include <stdlib.h> #include <string.h&...

2015-02-09 18:16:06

阅读数:212

评论数:0

uva_1339_Ancient Cipher

第四章第一道= =

2015-02-05 22:50:27

阅读数:320

评论数:0

uva_1584_Circular Sequence

Some DNA sequences exist in circular forms as in the following figure, which shows a circular sequence ``CGAGTCAGCT", that is, the last symbol `...

2015-02-03 21:51:06

阅读数:325

评论数:0

uva_1583_Digit Generator

For a positive integer N , the digit-sum of N is defined as the sum of N itself and its digits. When M is the digitsum of N , we call N a generator...

2015-02-03 10:41:01

阅读数:219

评论数:0

uva_1587_BOX

Ivan works at a factory that produces heavy machinery. He has a simple job -- he knocks up wooden boxes of different sizes to pack machinery for deli...

2015-01-30 17:49:49

阅读数:428

评论数:0

uva_202_Repeating Decimals

第一个一遍就AC的题 T T

2015-01-28 21:41:27

阅读数:308

评论数:0

uva_1368_DNA

Figure 1. Description DNA (Deoxyribonucleic Acid) is the molecule which contains the genetic instructions. It consists of four different nucleotide...

2015-01-27 20:44:35

阅读数:237

评论数:0

uva_232_ Crossword Answers

Discription     A crossword puzzle consists of a rectangular grid of black and white squares and two lists of definitions (or descriptions).     One ...

2015-01-27 18:19:19

阅读数:245

评论数:0

uva_1585_Score

There is anobjective test result such as ``OOXXOXXOOO". An `O' means a correct answerof a problem and an `X' means a wrong answer. The score of ...

2015-01-25 08:55:51

阅读数:295

评论数:0

uva_145_Periodic Strings

A character string is said to have period k if it can be formed by concatenating one or more repetitions of another string of length k. For example, ...

2015-01-24 22:59:25

阅读数:259

评论数:0

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