海岛Blog

海是无垠的,岛在海中是独立的,有一片自己的天空

排序:
默认
按更新时间
按访问量

UVA10922 2 the 9s【大数模除+进制】

A well-known trick to know if an integer N is a multiple of nine is to compute the sum S of its digits. If S is a multiple of nine, then so is N. Thi...

2018-05-03 08:48:37

阅读数:48

评论数:0

UVA10931 Parity【进制】

We define the parity of an integer n as the sum of the bits in binary representation computed modulo two. As an example, the number 21 = 101012 has t...

2018-05-03 07:57:49

阅读数:41

评论数:0

UVALive6222 Unhappy Numbers【数学】(RE)

Numbers have feelings too! For any positive integer, take the sum of the squares of each of its digits, and add them together. Take the result, and d...

2018-04-25 09:07:31

阅读数:125

评论数:0

UVALive8091 Happy Number【数学】

Consider the following function f defined for any natural number n:f(n) is the number obtained by summing up the squares of the digits of n in decima...

2018-04-25 06:48:43

阅读数:35

评论数:0

UVA10591 Happy Number【数学】

Let the sum of the square of the digits of a positive integer S0 be represented by S1. In a similar way, let the sum of the squares of the digits of ...

2018-04-25 06:32:23

阅读数:33

评论数:0

POJ1565 ZOJ1712 UVA575 UVALive5320 Skew Binary【进制】

Skew BinaryTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 11253 Accepted: 7165DescriptionWhen a number is expressed in decimal, the kth di...

2018-04-08 23:28:02

阅读数:78

评论数:0

UVA355 UVALive5249 The Bases Are Loaded【进制】

Write a program to convert a whole number specified in any base (2..16) to a whole number in any other base (2..16). “Digits” above 9 are represented...

2018-02-19 07:16:49

阅读数:199

评论数:0

UVA944 Happy Numbers【数学】

Let the sum of the squares of the digits of a positive integer s0 be represented by s1. In a similar way, let the sum of the squares of the digits of...

2018-02-17 23:11:02

阅读数:217

评论数:0

UVA343 UVALive5451 What Base Is This?【进制】

In positional notation we know the position of a digit indicates the weight of that digit toward the value of a number. For example, in the base 10 n...

2018-02-17 08:18:06

阅读数:254

评论数:0

UVA12068 UVALive3288 Harmonic Mean【分数】

The harmonic mean (HN ) of N numbers a1, a2, a3 . . . aN−1, aNis defined as below:So the harmonic mean of four numbers a, b, c, d is defined asIn thi...

2018-02-11 08:11:48

阅读数:122

评论数:0

UVA10019 Funny Encryption Method【进制】

A student from ITESM Campus Monterrey plays with a new encryption method for numbers. Thesemethod consist of the following steps:Steps : Example  1. ...

2018-02-08 07:26:22

阅读数:86

评论数:0

POJ1152 UVA10093 An Easy Problem!【进制】

An Easy Problem! Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 9273   Accepted: 2378 Description Have you heard the fact &a...

2018-02-07 08:39:38

阅读数:149

评论数:0

UVA10473 Simple Base Conversion【进制转换】

In this problem you are asked to write a simplebase conversion program. You will be givena hexadecimal or decimal integer number as input.You will ha...

2018-01-20 21:00:11

阅读数:128

评论数:0

HDU3346 Lucky Number【进制】

Lucky Number Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3583    Accepted Submission(s...

2018-01-16 22:43:01

阅读数:120

评论数:0

POJ1331 UVALive2526 Multiply【暴力+进制】

Multiply Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 5943   Accepted: 3084 Description 6*9 = 42" ...

2017-12-27 06:42:41

阅读数:323

评论数:0

UVALive3199 Specialized Four-Digit Numbers【进制】

Find and list numbers in decimal notation that have the property that the sum of its digits equals thesum of its digits when represented in hexadecim...

2017-12-04 00:10:29

阅读数:206

评论数:0

POJ2196 HDU1197 ZOJ2405 Specialized Four-Digit Numbers【进制+水题】

Specialized Four-Digit Numbers Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 8413   Accepted: 6126 Description Find and lis...

2017-12-04 00:02:25

阅读数:351

评论数:0

POJ2562 UVA10035 ZOJ1874 Primary Arithmetic【进制+进位】

Primary Arithmetic Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 11711   Accepted: 4289 Description Children are taught to ...

2017-08-30 23:17:57

阅读数:368

评论数:0

HDU5670 Machine【进制】

MachineTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1586    Accepted Submission(s): 708Pro...

2017-07-01 10:44:52

阅读数:453

评论数:0

UVa834 Continued Fractions【连分数】

问题链接:UVa834 Continued Fractions。 问题简述:参见上述链接。 问题分析: 这是一个分数转换为连分数的问题。 需要了解和掌握有关连分数的概念与表示方式,可以查看中英文版的维基百科的“连分数”。 剩下的就是简单的分数计算问题了。 程序说明: 需要考虑特例的情况,例...

2017-05-24 09:20:02

阅读数:330

评论数:0

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